{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "apply_to_grounding_capability_output", "type": "object", "required": ["capability"], "additionalProperties": false, "definitions": { "apply_to_item": { "type": "object", "required": [ "category_id", "category_path", "rationale", "body_excerpt", "body_excerpt_note", "body_excerpt_type" ], "additionalProperties": false, "properties": { "category_id": { "type": "integer" }, "category_path": { "type": "string", "minLength": 1 }, "element": { "type": ["string", "null"] }, "rationale": { "type": "string", "minLength": 1 }, "body_excerpt": { "type": "string" }, "body_excerpt_note": { "type": "string" }, "body_excerpt_type": { "type": "string" } } }, "suggest_apply_to_item": { "type": "object", "required": [ "source_type", "path", "rationale", "body_excerpt", "body_excerpt_note", "body_excerpt_type" ], "additionalProperties": false, "properties": { "source_type": { "type": "string", "enum": ["实质", "形式"] }, "path": { "type": "string", "minLength": 1 }, "rationale": { "type": "string", "minLength": 1 }, "body_excerpt": { "type": "string" }, "body_excerpt_note": { "type": "string" }, "body_excerpt_type": { "type": "string" } } } }, "properties": { "capability": { "type": "array", "items": { "type": "object", "required": ["capability_id", "apply_to", "suggest_apply_to"], "additionalProperties": false, "properties": { "capability_id": { "type": "string", "pattern": "^c_w[0-9]+_(s[0-9]+_[0-9]+|standalone_[0-9]+)$" }, "suggest_apply_to": { "type": "array", "maxItems": 3, "items": { "$ref": "#/definitions/suggest_apply_to_item" } }, "apply_to": { "type": "object", "required": ["实质", "形式"], "additionalProperties": false, "properties": { "实质": { "type": "array", "maxItems": 3, "items": { "$ref": "#/definitions/apply_to_item" } }, "形式": { "type": "array", "maxItems": 3, "items": { "$ref": "#/definitions/apply_to_item" } } } } } } } } }