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.

126 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. version:
  9. type: string
  10. points:
  11. $ref: '#/components/schemas/points'
  12. lines:
  13. $ref: '#/components/schemas/lines'
  14. panels:
  15. type: object
  16. additionalProperties:
  17. type: object
  18. properties:
  19. allowances:
  20. type: object
  21. properties:
  22. hem:
  23. type: string
  24. seam:
  25. type: string
  26. points:
  27. $ref: '#/components/schemas/points'
  28. lines:
  29. $ref: '#/components/schemas/lines'
  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. hide:
  106. type: bool
  107. reference:
  108. type: string
  109. lines:
  110. type: object
  111. additionalProperties:
  112. $ref: '#/components/schemas/line'
  113. pointID:
  114. oneOf:
  115. - type: integer
  116. - type: string
  117. expression:
  118. oneOf:
  119. - type: number
  120. - type: string