process_cluster.schema.json 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "process_cluster_output",
  4. "type": "object",
  5. "required": ["clusters-boundary"],
  6. "properties": {
  7. "clusters-boundary": {
  8. "type": "array",
  9. "minItems": 1,
  10. "items": {
  11. "type": "object",
  12. "required": ["id-ref", "name-ref", "description", "modality", "steps-boundary", "case_references-boundary"],
  13. "properties": {
  14. "id-ref": { "type": "string", "pattern": "^cluster-[A-Za-z0-9_-]+$" },
  15. "name-ref": { "type": "string", "minLength": 1 },
  16. "description": { "type": "string", "minLength": 1 },
  17. "modality": { "type": "string", "enum": ["图文", "视频"] },
  18. "inputs": { "type": ["object", "null"] },
  19. "outputs": { "type": ["object", "null"] },
  20. "why": { "type": ["string", "null"] },
  21. "boundaries": { "type": ["string", "null"] },
  22. "steps-boundary": {
  23. "type": "array",
  24. "minItems": 1,
  25. "items": {
  26. "type": "object",
  27. "required": ["order-ref", "type-ref", "description-ref"],
  28. "properties": {
  29. "order-ref": { "type": "integer", "minimum": 1 },
  30. "type-ref": { "type": "string", "enum": ["capability", "sub_strategy", "human_review", "conditional"] },
  31. "description-ref": { "type": "string", "minLength": 1 },
  32. "why": { "type": ["string", "null"] },
  33. "body": { "type": ["string", "null"] },
  34. "inputs": { "type": "object" },
  35. "outputs": { "type": "object" },
  36. "optional": { "type": "boolean" }
  37. }
  38. }
  39. },
  40. "case_references-boundary": {
  41. "type": "array",
  42. "minItems": 1,
  43. "items": { "type": "string", "pattern": "^[a-z]+_[A-Za-z0-9_-]+$" }
  44. }
  45. }
  46. }
  47. }
  48. }
  49. }