apply_to_grounding_capability.schema.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. "definitions": {
  8. "apply_to_item": {
  9. "type": "object",
  10. "required": [
  11. "category_id",
  12. "category_path",
  13. "rationale",
  14. "body_excerpt",
  15. "body_excerpt_note",
  16. "body_excerpt_type"
  17. ],
  18. "additionalProperties": false,
  19. "properties": {
  20. "category_id": { "type": "integer" },
  21. "category_path": { "type": "string", "minLength": 1 },
  22. "element": { "type": ["string", "null"] },
  23. "rationale": { "type": "string", "minLength": 1 },
  24. "body_excerpt": { "type": "string" },
  25. "body_excerpt_note": { "type": "string" },
  26. "body_excerpt_type": { "type": "string" }
  27. }
  28. },
  29. "suggest_apply_to_item": {
  30. "type": "object",
  31. "required": [
  32. "source_type",
  33. "path",
  34. "rationale",
  35. "body_excerpt",
  36. "body_excerpt_note",
  37. "body_excerpt_type"
  38. ],
  39. "additionalProperties": false,
  40. "properties": {
  41. "source_type": { "type": "string", "enum": ["实质", "形式"] },
  42. "path": { "type": "string", "minLength": 1 },
  43. "rationale": { "type": "string", "minLength": 1 },
  44. "body_excerpt": { "type": "string" },
  45. "body_excerpt_note": { "type": "string" },
  46. "body_excerpt_type": { "type": "string" }
  47. }
  48. }
  49. },
  50. "properties": {
  51. "capability": {
  52. "type": "array",
  53. "items": {
  54. "type": "object",
  55. "required": ["capability_id", "apply_to", "suggest_apply_to"],
  56. "additionalProperties": false,
  57. "properties": {
  58. "capability_id": {
  59. "type": "string",
  60. "pattern": "^c_w[0-9]+_(s[0-9]+_[0-9]+|standalone_[0-9]+)$"
  61. },
  62. "suggest_apply_to": {
  63. "type": "array",
  64. "maxItems": 3,
  65. "items": { "$ref": "#/definitions/suggest_apply_to_item" }
  66. },
  67. "apply_to": {
  68. "type": "object",
  69. "required": ["实质", "形式"],
  70. "additionalProperties": false,
  71. "properties": {
  72. "实质": {
  73. "type": "array",
  74. "maxItems": 3,
  75. "items": { "$ref": "#/definitions/apply_to_item" }
  76. },
  77. "形式": {
  78. "type": "array",
  79. "maxItems": 3,
  80. "items": { "$ref": "#/definitions/apply_to_item" }
  81. }
  82. }
  83. }
  84. }
  85. }
  86. }
  87. }
  88. }