Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

128 wiersze
2.9KB

  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. points:
  9. $ref: '#/components/schemas/points'
  10. panels:
  11. type: object
  12. additionalProperties:
  13. type: object
  14. properties:
  15. allowances:
  16. type: object
  17. properties:
  18. hem:
  19. type: string
  20. seam:
  21. type: string
  22. points:
  23. $ref: '#/components/schemas/points'
  24. lines:
  25. type: array
  26. items:
  27. $ref: '#/components/schemas/line'
  28. information:
  29. allOf:
  30. - $ref: '#/components/schemas/point'
  31. - type: object
  32. properties:
  33. anchor:
  34. type: string
  35. enum: [top, center, bottom, left, right]
  36. components:
  37. schemas:
  38. point:
  39. type: object
  40. properties:
  41. position:
  42. $ref: '#/components/schemas/position'
  43. relativeTo:
  44. $ref: '#/components/schemas/pointID'
  45. polar:
  46. $ref: '#/components/schemas/polar'
  47. description:
  48. type: string
  49. between:
  50. $ref: '#/components/schemas/between'
  51. hide:
  52. type: bool
  53. extend:
  54. $ref: '#/components/schemas/between'
  55. points:
  56. type: object
  57. additionalProperties:
  58. $ref: '#/components/schemas/point'
  59. position:
  60. type: object
  61. properties:
  62. y:
  63. $ref: '#/components/schemas/expression'
  64. x:
  65. $ref: '#/components/schemas/expression'
  66. rotation:
  67. $ref: '#/components/schemas/expression'
  68. polar:
  69. type: object
  70. properties:
  71. length:
  72. $ref: '#/components/schemas/expression'
  73. rotation:
  74. $ref: '#/components/schemas/expression'
  75. between:
  76. type: object
  77. properties:
  78. from:
  79. $ref: '#/components/schemas/pointID'
  80. to:
  81. $ref: '#/components/schemas/pointID'
  82. offset:
  83. $ref: '#/components/schemas/expression'
  84. line:
  85. type: object
  86. properties:
  87. through:
  88. type: array
  89. items:
  90. $ref: '#/components/schemas/pointID'
  91. curve:
  92. type: object
  93. properties:
  94. start:
  95. $ref: '#/components/schemas/pointID'
  96. end:
  97. $ref: '#/components/schemas/pointID'
  98. style:
  99. type: object
  100. properties:
  101. color:
  102. type: string
  103. enum:
  104. - black
  105. - grey
  106. - red
  107. - blue
  108. - green
  109. thickness:
  110. type: number
  111. dashed:
  112. type: integer
  113. description:
  114. type: string
  115. pointID:
  116. oneOf:
  117. - type: integer
  118. - type: string
  119. expression:
  120. oneOf:
  121. - type: number
  122. - type: string