Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

120 строки
2.7KB

  1. ---
  2. $schema: "https://json-schema.org/draft-04/schema"
  3. id: "https://stsci.edu/schemas/yaml-schema/draft-01"
  4. title:
  5. YAML Schema
  6. type: object
  7. properties:
  8. version:
  9. type: string
  10. points:
  11. $ref: '#/components/schemas/points'
  12. panels:
  13. type: object
  14. additionalProperties:
  15. type: object
  16. properties:
  17. allowances:
  18. type: object
  19. properties:
  20. hem:
  21. type: string
  22. seam:
  23. type: string
  24. points:
  25. $ref: '#/components/schemas/points'
  26. lines:
  27. type: array
  28. items:
  29. $ref: '#/components/schemas/line'
  30. information:
  31. allOf:
  32. - $ref: '#/components/schemas/point'
  33. - type: object
  34. properties:
  35. anchor:
  36. type: string
  37. enum: [top, center, bottom, left, right]
  38. components:
  39. schemas:
  40. point:
  41. type: object
  42. properties:
  43. position:
  44. $ref: '#/components/schemas/position'
  45. relativeTo:
  46. $ref: '#/components/schemas/pointID'
  47. polar:
  48. $ref: '#/components/schemas/polar'
  49. description:
  50. type: string
  51. between:
  52. $ref: '#/components/schemas/between'
  53. hide:
  54. type: bool
  55. extend:
  56. $ref: '#/components/schemas/between'
  57. points:
  58. type: object
  59. additionalProperties:
  60. $ref: '#/components/schemas/point'
  61. position:
  62. type: object
  63. properties:
  64. y:
  65. $ref: '#/components/schemas/expression'
  66. x:
  67. $ref: '#/components/schemas/expression'
  68. rotation:
  69. $ref: '#/components/schemas/expression'
  70. polar:
  71. type: object
  72. properties:
  73. length:
  74. $ref: '#/components/schemas/expression'
  75. rotation:
  76. $ref: '#/components/schemas/expression'
  77. between:
  78. type: object
  79. properties:
  80. from:
  81. $ref: '#/components/schemas/pointID'
  82. to:
  83. $ref: '#/components/schemas/pointID'
  84. offset:
  85. $ref: '#/components/schemas/expression'
  86. line:
  87. type: object
  88. properties:
  89. through:
  90. type: array
  91. items:
  92. $ref: '#/components/schemas/pointID'
  93. curve:
  94. type: object
  95. properties:
  96. start:
  97. $ref: '#/components/schemas/pointID'
  98. end:
  99. $ref: '#/components/schemas/pointID'
  100. style:
  101. type: object
  102. properties:
  103. thickness:
  104. type: number
  105. reference:
  106. type: string
  107. pointID:
  108. oneOf:
  109. - type: integer
  110. - type: string
  111. expression:
  112. oneOf:
  113. - type: number
  114. - type: string