process.schema.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "process.json 输出格式",
  4. "type": "object",
  5. "required": ["requirement", "clusters-boundary"],
  6. "properties": {
  7. "requirement": { "type": "string", "minLength": 1 },
  8. "clusters-boundary": {
  9. "type": "array",
  10. "minItems": 1,
  11. "items": {
  12. "type": "object",
  13. "required": ["cluster_id-ref", "cluster_name-ref", "工序步骤-boundary", "关联案例-boundary"],
  14. "properties": {
  15. "cluster_id-ref": { "type": "string", "minLength": 1 },
  16. "cluster_name-ref": { "type": "string", "minLength": 1 },
  17. "工序步骤-boundary": {
  18. "type": "array",
  19. "minItems": 1,
  20. "items": {
  21. "type": "object",
  22. "required": ["步骤序号-ref", "步骤描述-ref"],
  23. "properties": {
  24. "步骤序号-ref": { "type": "integer", "minimum": 1 },
  25. "步骤描述-ref": { "type": "string", "minLength": 1 }
  26. }
  27. }
  28. },
  29. "关联案例-boundary": {
  30. "type": "array",
  31. "minItems": 1,
  32. "items": { "type": "string", "pattern": "^[a-z]+_[A-Za-z0-9_-]+$" }
  33. },
  34. "score-ref": { "type": "number", "minimum": 0, "maximum": 1 },
  35. "explanation": { "type": "string", "minLength": 1 }
  36. }
  37. }
  38. }
  39. }
  40. }