| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- {
- "$schema": "http://json-schema.org/draft-07/schema#",
- "title": "case_detailed.json 输出格式",
- "type": "object",
- "required": ["total-ref", "success-ref", "failed-ref", "cases-boundary"],
- "properties": {
- "total-ref": { "type": "integer", "minimum": 0 },
- "success-ref": { "type": "integer", "minimum": 0 },
- "failed-ref": { "type": "integer", "minimum": 0 },
- "cases-boundary": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "object",
- "required": ["platform-ref", "channel_content_id-ref", "source_url-ref", "title", "workflow-boundary"],
- "properties": {
- "case_id-ref": { "type": "string", "pattern": "^[a-z]+_[A-Za-z0-9_-]+$" },
- "case_file": { "type": "string" },
- "platform-ref": { "type": "string", "minLength": 1 },
- "channel_content_id-ref": { "type": ["string", "integer"] },
- "source_url-ref": { "type": "string", "minLength": 1 },
- "title": { "type": "string", "minLength": 1 },
- "workflow-boundary": {
- "oneOf": [
- { "type": "null" },
- {
- "type": "object",
- "required": ["id-ref", "name-ref", "description", "modality", "steps-boundary"],
- "properties": {
- "id-ref": { "type": "string", "pattern": "^strategy-[A-Za-z0-9_-]+$" },
- "name-ref": { "type": "string", "minLength": 1 },
- "description": { "type": "string", "minLength": 1 },
- "modality": { "type": "string", "enum": ["图文", "视频"] },
- "inputs": { "type": ["object", "null"] },
- "outputs": { "type": ["object", "null"] },
- "why": { "type": ["string", "null"] },
- "boundaries": { "type": ["string", "null"] },
- "steps-boundary": {
- "type": "array",
- "minItems": 1,
- "items": {
- "type": "object",
- "required": ["order-ref", "type-ref", "description-ref"],
- "properties": {
- "order-ref": { "type": "integer", "minimum": 1 },
- "type-ref": { "type": "string", "enum": ["capability", "sub_strategy", "human_review", "conditional"] },
- "description-ref": { "type": "string", "minLength": 1 },
- "why": { "type": ["string", "null"] },
- "body": { "type": ["string", "null"] },
- "inputs": { "type": ["object", "null"] },
- "outputs": { "type": ["object", "null"] },
- "optional": { "type": "boolean" }
- }
- }
- }
- }
- }
- ]
- }
- }
- }
- }
- }
- }
|