process_cluster.schema.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "process_cluster_output",
  4. "type": "object",
  5. "required": [
  6. "clusters-boundary"
  7. ],
  8. "properties": {
  9. "clusters-boundary": {
  10. "type": "array",
  11. "minItems": 1,
  12. "items": {
  13. "type": "object",
  14. "required": [
  15. "id-ref",
  16. "name-ref",
  17. "description",
  18. "modality",
  19. "steps-boundary"
  20. ],
  21. "properties": {
  22. "id-ref": {
  23. "type": "string",
  24. "pattern": "^cluster-[A-Za-z0-9_-]+$"
  25. },
  26. "name-ref": {
  27. "type": "string",
  28. "minLength": 1
  29. },
  30. "description": {
  31. "type": "string",
  32. "minLength": 1
  33. },
  34. "modality": {
  35. "type": "string",
  36. "enum": [
  37. "图文",
  38. "视频"
  39. ]
  40. },
  41. "why": {
  42. "type": [
  43. "string",
  44. "null"
  45. ]
  46. },
  47. "boundaries": {
  48. "type": [
  49. "string",
  50. "null"
  51. ]
  52. },
  53. "steps-boundary": {
  54. "type": "array",
  55. "minItems": 1,
  56. "items": {
  57. "type": "object",
  58. "required": [
  59. "order-ref",
  60. "type-ref",
  61. "description"
  62. ],
  63. "properties": {
  64. "order-ref": {
  65. "type": "integer",
  66. "minimum": 1
  67. },
  68. "type-ref": {
  69. "type": "string",
  70. "enum": [
  71. "capability",
  72. "sub_strategy",
  73. "human_review"
  74. ]
  75. },
  76. "description": {
  77. "type": "string",
  78. "minLength": 1
  79. },
  80. "body": {
  81. "type": [
  82. "string",
  83. "null"
  84. ]
  85. },
  86. "inputs-boundary": {
  87. "type": "object"
  88. },
  89. "outputs-boundary": {
  90. "type": "object"
  91. },
  92. "optional": {
  93. "type": "boolean"
  94. }
  95. }
  96. }
  97. },
  98. "case_references-boundary": {
  99. "type": "array",
  100. "minItems": 1,
  101. "items": {
  102. "type": "string",
  103. "pattern": "^[a-z]+_[A-Za-z0-9_-]+$"
  104. }
  105. }
  106. }
  107. }
  108. }
  109. }
  110. }