| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "capabilities.json 输出格式",
- "type": "object",
- "required": ["requirement", "capabilities-boundary"],
- "properties": {
- "requirement": { "type": "string", "minLength": 1 },
- "capabilities-boundary": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "object",
- "required": ["id-ref", "name-ref", "description-ref", "case_references-boundary"],
- "properties": {
- "id-ref": { "type": "string", "minLength": 1 },
- "name-ref": { "type": "string", "minLength": 1 },
- "description-ref": { "type": "string", "minLength": 1 },
- "case_references-boundary": {
- "type": "array",
- "minItems": 1,
- "items": { "type": "string", "pattern": "^[a-z]+_[A-Za-z0-9_-]+$" }
- },
- "enriched_details-boundary": {
- "oneOf": [
- { "type": "null" },
- {
- "type": "object",
- "required": ["name-ref", "description-ref", "method", "effects-boundary", "body", "inputs", "outputs"],
- "properties": {
- "name-ref": { "type": "string", "minLength": 1 },
- "description-ref": { "type": "string", "minLength": 1 },
- "method": { "type": "string", "minLength": 1 },
- "effects-boundary": { "type": "array", "items": { "type": "string" } },
- "failure_modes": { "type": "string" },
- "inputs": { "type": "object" },
- "outputs": { "type": "object" },
- "body": { "type": "string", "minLength": 1 },
- "visual_notes": { "type": "string" }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
|