apply_to_grounding_capability.schema.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "apply_to_grounding_capability_output",
  4. "type": "object",
  5. "required": ["capability"],
  6. "additionalProperties": false,
  7. "properties": {
  8. "capability": {
  9. "type": "array",
  10. "items": {
  11. "type": "object",
  12. "required": ["capability_id", "apply_to", "suggest_apply_to"],
  13. "additionalProperties": false,
  14. "properties": {
  15. "capability_id": { "type": "string", "pattern": "^c_(s[0-9]+_[0-9]+|standalone_[0-9]+)$" },
  16. "suggest_apply_to": { "type": "string", "minLength": 1 },
  17. "apply_to": {
  18. "type": "object",
  19. "required": ["实质", "形式"],
  20. "additionalProperties": false,
  21. "properties": {
  22. "实质": {
  23. "type": "array",
  24. "items": {
  25. "type": "object",
  26. "required": ["category_id", "category_path", "rationale", "body_excerpt"],
  27. "additionalProperties": false,
  28. "properties": {
  29. "category_id": { "type": "integer" },
  30. "category_path": { "type": "string", "minLength": 1 },
  31. "element": { "type": ["string", "null"] },
  32. "rationale": { "type": "string", "minLength": 1 },
  33. "body_excerpt": { "type": "string", "minLength": 1 }
  34. }
  35. }
  36. },
  37. "形式": {
  38. "type": "array",
  39. "items": {
  40. "type": "object",
  41. "required": ["category_id", "category_path", "rationale", "body_excerpt"],
  42. "additionalProperties": false,
  43. "properties": {
  44. "category_id": { "type": "integer" },
  45. "category_path": { "type": "string", "minLength": 1 },
  46. "element": { "type": ["string", "null"] },
  47. "rationale": { "type": "string", "minLength": 1 },
  48. "body_excerpt": { "type": "string", "minLength": 1 }
  49. }
  50. }
  51. }
  52. }
  53. }
  54. }
  55. }
  56. }
  57. }
  58. }