@scalar/openapi-types 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (250) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.js +2 -1
  3. package/dist/index.js.map +7 -0
  4. package/dist/openapi-types.js +28 -33
  5. package/dist/openapi-types.js.map +7 -0
  6. package/dist/openapi-types.test-d.js +52 -0
  7. package/dist/openapi-types.test-d.js.map +7 -0
  8. package/dist/schemas/3.1/compliance/callback-object.test.js +97 -0
  9. package/dist/schemas/3.1/compliance/callback-object.test.js.map +7 -0
  10. package/dist/schemas/3.1/compliance/contact-object.test.js +19 -0
  11. package/dist/schemas/3.1/compliance/contact-object.test.js.map +7 -0
  12. package/dist/schemas/3.1/compliance/example-object.test.js +91 -0
  13. package/dist/schemas/3.1/compliance/example-object.test.js.map +7 -0
  14. package/dist/schemas/3.1/compliance/external-documentation-object.test.js +17 -0
  15. package/dist/schemas/3.1/compliance/external-documentation-object.test.js.map +7 -0
  16. package/dist/schemas/3.1/compliance/header-object.test.js +47 -0
  17. package/dist/schemas/3.1/compliance/header-object.test.js.map +7 -0
  18. package/dist/schemas/3.1/compliance/info-object.test.js +41 -0
  19. package/dist/schemas/3.1/compliance/info-object.test.js.map +7 -0
  20. package/dist/schemas/3.1/compliance/license-object.test.js +17 -0
  21. package/dist/schemas/3.1/compliance/license-object.test.js.map +7 -0
  22. package/dist/schemas/3.1/compliance/media-type-object.test.js +69 -0
  23. package/dist/schemas/3.1/compliance/media-type-object.test.js.map +7 -0
  24. package/dist/schemas/3.1/compliance/openapi-object.test.js +381 -0
  25. package/dist/schemas/3.1/compliance/openapi-object.test.js.map +7 -0
  26. package/dist/schemas/3.1/compliance/operation-object.test.js +467 -0
  27. package/dist/schemas/3.1/compliance/operation-object.test.js.map +7 -0
  28. package/dist/schemas/3.1/compliance/parameter-object.test.js +155 -0
  29. package/dist/schemas/3.1/compliance/parameter-object.test.js.map +7 -0
  30. package/dist/schemas/3.1/compliance/path-item-object.test.js +103 -0
  31. package/dist/schemas/3.1/compliance/path-item-object.test.js.map +7 -0
  32. package/dist/schemas/3.1/compliance/reference-object.test.js +282 -0
  33. package/dist/schemas/3.1/compliance/reference-object.test.js.map +7 -0
  34. package/dist/schemas/3.1/compliance/request-body-object.test.js +97 -0
  35. package/dist/schemas/3.1/compliance/request-body-object.test.js.map +7 -0
  36. package/dist/schemas/3.1/compliance/response-object.test.js +131 -0
  37. package/dist/schemas/3.1/compliance/response-object.test.js.map +7 -0
  38. package/dist/schemas/3.1/compliance/responses-object.test.js +53 -0
  39. package/dist/schemas/3.1/compliance/responses-object.test.js.map +7 -0
  40. package/dist/schemas/3.1/compliance/runtime-expression.test.js +165 -0
  41. package/dist/schemas/3.1/compliance/runtime-expression.test.js.map +7 -0
  42. package/dist/schemas/3.1/compliance/schema-object.test.js +470 -0
  43. package/dist/schemas/3.1/compliance/schema-object.test.js.map +7 -0
  44. package/dist/schemas/3.1/compliance/security-requirement-object.test.js +54 -0
  45. package/dist/schemas/3.1/compliance/security-requirement-object.test.js.map +7 -0
  46. package/dist/schemas/3.1/compliance/security-scheme-object.test.js +123 -0
  47. package/dist/schemas/3.1/compliance/security-scheme-object.test.js.map +7 -0
  48. package/dist/schemas/3.1/compliance/server-object.test.js +17 -0
  49. package/dist/schemas/3.1/compliance/server-object.test.js.map +7 -0
  50. package/dist/schemas/3.1/compliance/tag-object.test.js +17 -0
  51. package/dist/schemas/3.1/compliance/tag-object.test.js.map +7 -0
  52. package/dist/schemas/3.1/processed/base-path-item-object.js +27 -33
  53. package/dist/schemas/3.1/processed/base-path-item-object.js.map +7 -0
  54. package/dist/schemas/3.1/processed/callback-object.js +7 -16
  55. package/dist/schemas/3.1/processed/callback-object.js.map +7 -0
  56. package/dist/schemas/3.1/processed/components-object.js +55 -62
  57. package/dist/schemas/3.1/processed/components-object.js.map +7 -0
  58. package/dist/schemas/3.1/processed/contact-object.js +11 -17
  59. package/dist/schemas/3.1/processed/contact-object.js.map +7 -0
  60. package/dist/schemas/3.1/processed/discriminator-object.js +15 -26
  61. package/dist/schemas/3.1/processed/discriminator-object.js.map +7 -0
  62. package/dist/schemas/3.1/processed/encoding-object.js +17 -28
  63. package/dist/schemas/3.1/processed/encoding-object.js.map +7 -0
  64. package/dist/schemas/3.1/processed/example-object.js +23 -33
  65. package/dist/schemas/3.1/processed/example-object.js.map +7 -0
  66. package/dist/schemas/3.1/processed/external-documentation-object.js +9 -15
  67. package/dist/schemas/3.1/processed/external-documentation-object.js.map +7 -0
  68. package/dist/schemas/3.1/processed/header-object.js +48 -64
  69. package/dist/schemas/3.1/processed/header-object.js.map +7 -0
  70. package/dist/schemas/3.1/processed/index.js +87 -30
  71. package/dist/schemas/3.1/processed/index.js.map +7 -0
  72. package/dist/schemas/3.1/processed/info-object.js +36 -43
  73. package/dist/schemas/3.1/processed/info-object.js.map +7 -0
  74. package/dist/schemas/3.1/processed/license-object.js +13 -19
  75. package/dist/schemas/3.1/processed/license-object.js.map +7 -0
  76. package/dist/schemas/3.1/processed/link-object.js +36 -50
  77. package/dist/schemas/3.1/processed/link-object.js.map +7 -0
  78. package/dist/schemas/3.1/processed/media-type-object-without-encoding.js +26 -32
  79. package/dist/schemas/3.1/processed/media-type-object-without-encoding.js.map +7 -0
  80. package/dist/schemas/3.1/processed/media-type-object.js +30 -36
  81. package/dist/schemas/3.1/processed/media-type-object.js.map +7 -0
  82. package/dist/schemas/3.1/processed/openapi-object.js +70 -78
  83. package/dist/schemas/3.1/processed/openapi-object.js.map +7 -0
  84. package/dist/schemas/3.1/processed/operation-object-without-callbacks.js +64 -70
  85. package/dist/schemas/3.1/processed/operation-object-without-callbacks.js.map +7 -0
  86. package/dist/schemas/3.1/processed/operation-object.js +14 -20
  87. package/dist/schemas/3.1/processed/operation-object.js.map +7 -0
  88. package/dist/schemas/3.1/processed/parameter-object.js +83 -91
  89. package/dist/schemas/3.1/processed/parameter-object.js.map +7 -0
  90. package/dist/schemas/3.1/processed/path-item-object-without-callbacks.js +38 -46
  91. package/dist/schemas/3.1/processed/path-item-object-without-callbacks.js.map +7 -0
  92. package/dist/schemas/3.1/processed/path-item-object.js +38 -46
  93. package/dist/schemas/3.1/processed/path-item-object.js.map +7 -0
  94. package/dist/schemas/3.1/processed/paths-object.js +16 -22
  95. package/dist/schemas/3.1/processed/paths-object.js.map +7 -0
  96. package/dist/schemas/3.1/processed/request-body-object.js +25 -31
  97. package/dist/schemas/3.1/processed/request-body-object.js.map +7 -0
  98. package/dist/schemas/3.1/processed/response-object.js +28 -34
  99. package/dist/schemas/3.1/processed/response-object.js.map +7 -0
  100. package/dist/schemas/3.1/processed/responses-object.js +17 -30
  101. package/dist/schemas/3.1/processed/responses-object.js.map +7 -0
  102. package/dist/schemas/3.1/processed/runtime-expression.js +50 -81
  103. package/dist/schemas/3.1/processed/runtime-expression.js.map +7 -0
  104. package/dist/schemas/3.1/processed/schema-object.js +88 -89
  105. package/dist/schemas/3.1/processed/schema-object.js.map +7 -0
  106. package/dist/schemas/3.1/processed/schema-object.test.js +310 -0
  107. package/dist/schemas/3.1/processed/schema-object.test.js.map +7 -0
  108. package/dist/schemas/3.1/processed/security-requirement-object.js +20 -36
  109. package/dist/schemas/3.1/processed/security-requirement-object.js.map +7 -0
  110. package/dist/schemas/3.1/processed/security-scheme-object.js +114 -142
  111. package/dist/schemas/3.1/processed/security-scheme-object.js.map +7 -0
  112. package/dist/schemas/3.1/processed/server-object.js +19 -25
  113. package/dist/schemas/3.1/processed/server-object.js.map +7 -0
  114. package/dist/schemas/3.1/processed/server-variable-object.js +19 -25
  115. package/dist/schemas/3.1/processed/server-variable-object.js.map +7 -0
  116. package/dist/schemas/3.1/processed/tag-object.js +12 -19
  117. package/dist/schemas/3.1/processed/tag-object.js.map +7 -0
  118. package/dist/schemas/3.1/processed/webhooks-object.js +6 -18
  119. package/dist/schemas/3.1/processed/webhooks-object.js.map +7 -0
  120. package/dist/schemas/3.1/processed/xml-object.js +28 -38
  121. package/dist/schemas/3.1/processed/xml-object.js.map +7 -0
  122. package/dist/schemas/3.1/unprocessed/base-path-item-object.js +16 -22
  123. package/dist/schemas/3.1/unprocessed/base-path-item-object.js.map +7 -0
  124. package/dist/schemas/3.1/unprocessed/callback-object.js +6 -15
  125. package/dist/schemas/3.1/unprocessed/callback-object.js.map +7 -0
  126. package/dist/schemas/3.1/unprocessed/components-object.js +58 -65
  127. package/dist/schemas/3.1/unprocessed/components-object.js.map +7 -0
  128. package/dist/schemas/3.1/unprocessed/contact-object.js +6 -12
  129. package/dist/schemas/3.1/unprocessed/contact-object.js.map +7 -0
  130. package/dist/schemas/3.1/unprocessed/discriminator-object.js +6 -17
  131. package/dist/schemas/3.1/unprocessed/discriminator-object.js.map +7 -0
  132. package/dist/schemas/3.1/unprocessed/encoding-object.js +14 -25
  133. package/dist/schemas/3.1/unprocessed/encoding-object.js.map +7 -0
  134. package/dist/schemas/3.1/unprocessed/example-object.js +6 -16
  135. package/dist/schemas/3.1/unprocessed/example-object.js.map +7 -0
  136. package/dist/schemas/3.1/unprocessed/external-documentation-object.js +6 -12
  137. package/dist/schemas/3.1/unprocessed/external-documentation-object.js.map +7 -0
  138. package/dist/schemas/3.1/unprocessed/header-object.js +25 -41
  139. package/dist/schemas/3.1/unprocessed/header-object.js.map +7 -0
  140. package/dist/schemas/3.1/unprocessed/index.js +89 -31
  141. package/dist/schemas/3.1/unprocessed/index.js.map +7 -0
  142. package/dist/schemas/3.1/unprocessed/info-object.js +6 -13
  143. package/dist/schemas/3.1/unprocessed/info-object.js.map +7 -0
  144. package/dist/schemas/3.1/unprocessed/license-object.js +6 -12
  145. package/dist/schemas/3.1/unprocessed/license-object.js.map +7 -0
  146. package/dist/schemas/3.1/unprocessed/link-object.js +6 -20
  147. package/dist/schemas/3.1/unprocessed/link-object.js.map +7 -0
  148. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.js +6 -12
  149. package/dist/schemas/3.1/unprocessed/media-type-object-without-encoding.js.map +7 -0
  150. package/dist/schemas/3.1/unprocessed/media-type-object.js +33 -39
  151. package/dist/schemas/3.1/unprocessed/media-type-object.js.map +7 -0
  152. package/dist/schemas/3.1/unprocessed/openapi-object.js +6 -12
  153. package/dist/schemas/3.1/unprocessed/openapi-object.js.map +7 -0
  154. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.js +38 -44
  155. package/dist/schemas/3.1/unprocessed/operation-object-without-callbacks.js.map +7 -0
  156. package/dist/schemas/3.1/unprocessed/operation-object.js +15 -21
  157. package/dist/schemas/3.1/unprocessed/operation-object.js.map +7 -0
  158. package/dist/schemas/3.1/unprocessed/parameter-object.js +22 -30
  159. package/dist/schemas/3.1/unprocessed/parameter-object.js.map +7 -0
  160. package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.js +38 -46
  161. package/dist/schemas/3.1/unprocessed/path-item-object-without-callbacks.js.map +7 -0
  162. package/dist/schemas/3.1/unprocessed/path-item-object.js +52 -60
  163. package/dist/schemas/3.1/unprocessed/path-item-object.js.map +7 -0
  164. package/dist/schemas/3.1/unprocessed/paths-object.js +6 -14
  165. package/dist/schemas/3.1/unprocessed/paths-object.js.map +7 -0
  166. package/dist/schemas/3.1/unprocessed/reference-object.js +20 -28
  167. package/dist/schemas/3.1/unprocessed/reference-object.js.map +7 -0
  168. package/dist/schemas/3.1/unprocessed/request-body-object.js +6 -12
  169. package/dist/schemas/3.1/unprocessed/request-body-object.js.map +7 -0
  170. package/dist/schemas/3.1/unprocessed/response-object.js +27 -33
  171. package/dist/schemas/3.1/unprocessed/response-object.js.map +7 -0
  172. package/dist/schemas/3.1/unprocessed/responses-object.js +18 -31
  173. package/dist/schemas/3.1/unprocessed/responses-object.js.map +7 -0
  174. package/dist/schemas/3.1/unprocessed/runtime-expression.js +6 -17
  175. package/dist/schemas/3.1/unprocessed/runtime-expression.js.map +7 -0
  176. package/dist/schemas/3.1/unprocessed/schema-object.js +31 -32
  177. package/dist/schemas/3.1/unprocessed/schema-object.js.map +7 -0
  178. package/dist/schemas/3.1/unprocessed/security-requirement-object.js +6 -23
  179. package/dist/schemas/3.1/unprocessed/security-requirement-object.js.map +7 -0
  180. package/dist/schemas/3.1/unprocessed/security-scheme-object.js +41 -29
  181. package/dist/schemas/3.1/unprocessed/security-scheme-object.js.map +7 -0
  182. package/dist/schemas/3.1/unprocessed/server-object.js +6 -12
  183. package/dist/schemas/3.1/unprocessed/server-object.js.map +7 -0
  184. package/dist/schemas/3.1/unprocessed/server-variable-object.js +6 -12
  185. package/dist/schemas/3.1/unprocessed/server-variable-object.js.map +7 -0
  186. package/dist/schemas/3.1/unprocessed/tag-object.js +6 -13
  187. package/dist/schemas/3.1/unprocessed/tag-object.js.map +7 -0
  188. package/dist/schemas/3.1/unprocessed/webhooks-object.js +6 -18
  189. package/dist/schemas/3.1/unprocessed/webhooks-object.js.map +7 -0
  190. package/dist/schemas/3.1/unprocessed/xml-object.js +6 -16
  191. package/dist/schemas/3.1/unprocessed/xml-object.js.map +7 -0
  192. package/dist/schemas/extensions/index.d.ts +1 -0
  193. package/dist/schemas/extensions/index.d.ts.map +1 -1
  194. package/dist/schemas/extensions/index.js +31 -11
  195. package/dist/schemas/extensions/index.js.map +7 -0
  196. package/dist/schemas/extensions/x-additional-properties-name.js +6 -12
  197. package/dist/schemas/extensions/x-additional-properties-name.js.map +7 -0
  198. package/dist/schemas/extensions/x-additional-properties-name.test.js +28 -0
  199. package/dist/schemas/extensions/x-additional-properties-name.test.js.map +7 -0
  200. package/dist/schemas/extensions/x-code-samples.js +12 -10
  201. package/dist/schemas/extensions/x-code-samples.js.map +7 -0
  202. package/dist/schemas/extensions/x-code-samples.test.js +82 -0
  203. package/dist/schemas/extensions/x-code-samples.test.js.map +7 -0
  204. package/dist/schemas/extensions/x-display-name.js +8 -0
  205. package/dist/schemas/extensions/x-display-name.js.map +7 -0
  206. package/dist/schemas/extensions/x-display-name.test.js +28 -0
  207. package/dist/schemas/extensions/x-display-name.test.js.map +7 -0
  208. package/dist/schemas/extensions/x-enum-descriptions.js +6 -18
  209. package/dist/schemas/extensions/x-enum-descriptions.js.map +7 -0
  210. package/dist/schemas/extensions/x-enum-descriptions.test.js +36 -0
  211. package/dist/schemas/extensions/x-enum-descriptions.test.js.map +7 -0
  212. package/dist/schemas/extensions/x-internal.js +6 -5
  213. package/dist/schemas/extensions/x-internal.js.map +7 -0
  214. package/dist/schemas/extensions/x-internal.test.js +20 -0
  215. package/dist/schemas/extensions/x-internal.test.js.map +7 -0
  216. package/dist/schemas/extensions/x-scalar-icon.js +6 -5
  217. package/dist/schemas/extensions/x-scalar-icon.js.map +7 -0
  218. package/dist/schemas/extensions/x-scalar-icon.test.js +14 -0
  219. package/dist/schemas/extensions/x-scalar-icon.test.js.map +7 -0
  220. package/dist/schemas/extensions/x-scalar-ignore.js +6 -5
  221. package/dist/schemas/extensions/x-scalar-ignore.js.map +7 -0
  222. package/dist/schemas/extensions/x-scalar-ignore.test.js +20 -0
  223. package/dist/schemas/extensions/x-scalar-ignore.test.js.map +7 -0
  224. package/dist/schemas/extensions/x-scalar-redirect-uri.js +6 -5
  225. package/dist/schemas/extensions/x-scalar-redirect-uri.js.map +7 -0
  226. package/dist/schemas/extensions/x-scalar-redirect-uri.test.js +23 -0
  227. package/dist/schemas/extensions/x-scalar-redirect-uri.test.js.map +7 -0
  228. package/dist/schemas/extensions/x-scalar-sdk-installation.js +10 -13
  229. package/dist/schemas/extensions/x-scalar-sdk-installation.js.map +7 -0
  230. package/dist/schemas/extensions/x-scalar-sdk-installation.test.js +25 -0
  231. package/dist/schemas/extensions/x-scalar-sdk-installation.test.js.map +7 -0
  232. package/dist/schemas/extensions/x-scalar-security-query.d.ts +20 -0
  233. package/dist/schemas/extensions/x-scalar-security-query.d.ts.map +1 -0
  234. package/dist/schemas/extensions/x-scalar-security-query.js +8 -0
  235. package/dist/schemas/extensions/x-scalar-security-query.js.map +7 -0
  236. package/dist/schemas/extensions/x-scalar-security-query.test.js +35 -0
  237. package/dist/schemas/extensions/x-scalar-security-query.test.js.map +7 -0
  238. package/dist/schemas/extensions/x-scalar-stability.js +10 -19
  239. package/dist/schemas/extensions/x-scalar-stability.js.map +7 -0
  240. package/dist/schemas/extensions/x-scalar-stability.test.js +33 -0
  241. package/dist/schemas/extensions/x-scalar-stability.test.js.map +7 -0
  242. package/dist/schemas/extensions/x-tag-groups.js +14 -17
  243. package/dist/schemas/extensions/x-tag-groups.js.map +7 -0
  244. package/dist/schemas/extensions/x-tag-groups.test.js +55 -0
  245. package/dist/schemas/extensions/x-tag-groups.test.js.map +7 -0
  246. package/dist/schemas/extensions/x-use-pkce.js +11 -10
  247. package/dist/schemas/extensions/x-use-pkce.js.map +7 -0
  248. package/dist/schemas/extensions/x-use-pkce.test.js +34 -0
  249. package/dist/schemas/extensions/x-use-pkce.test.js.map +7 -0
  250. package/package.json +4 -5
@@ -1,62 +1,54 @@
1
- import { z } from 'zod';
2
- import { BasePathItemObjectSchema } from './base-path-item-object.js';
3
- import { OperationObjectSchema } from './operation-object.js';
4
-
5
- /**
6
- * Path Item Object
7
- *
8
- * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path
9
- * itself is still exposed to the documentation viewer but they will not know which operations and parameters are
10
- * available.
11
- *
12
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object
13
- */
1
+ import { z } from "zod";
2
+ import { BasePathItemObjectSchema } from "./base-path-item-object.js";
3
+ import { OperationObjectSchema } from "./operation-object.js";
14
4
  const PathItemObjectSchema = BasePathItemObjectSchema.extend({
15
- /**
16
- * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced
17
- * structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined
18
- * object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.
19
- *
20
- * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to
21
- * bring it into closer alignment with the behavior of the Reference Object.
22
- *
23
- * Q: Why don’t we just use `ReferenceObjectSchema`?
24
- * A: References work a little bit different here. It’s the only place where they can be combined with other
25
- * properties.
26
- */
27
- '$ref': z.string().optional(),
28
- /**
29
- * A definition of a GET operation on this path.
30
- */
31
- get: OperationObjectSchema.optional(),
32
- /**
33
- * A definition of a PUT operation on this path.
34
- */
35
- put: OperationObjectSchema.optional(),
36
- /**
37
- * A definition of a POST operation on this path.
38
- */
39
- post: OperationObjectSchema.optional(),
40
- /**
41
- * A definition of a DELETE operation on this path.
42
- */
43
- delete: OperationObjectSchema.optional(),
44
- /**
45
- * A definition of a OPTIONS operation on this path.
46
- */
47
- options: OperationObjectSchema.optional(),
48
- /**
49
- * A definition of a HEAD operation on this path.
50
- */
51
- head: OperationObjectSchema.optional(),
52
- /**
53
- * A definition of a PATCH operation on this path.
54
- */
55
- patch: OperationObjectSchema.optional(),
56
- /**
57
- * A definition of a TRACE operation on this path.
58
- */
59
- trace: OperationObjectSchema.optional(),
5
+ /**
6
+ * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced
7
+ * structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined
8
+ * object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.
9
+ *
10
+ * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to
11
+ * bring it into closer alignment with the behavior of the Reference Object.
12
+ *
13
+ * Q: Why don’t we just use `ReferenceObjectSchema`?
14
+ * A: References work a little bit different here. It’s the only place where they can be combined with other
15
+ * properties.
16
+ */
17
+ "$ref": z.string().optional(),
18
+ /**
19
+ * A definition of a GET operation on this path.
20
+ */
21
+ get: OperationObjectSchema.optional(),
22
+ /**
23
+ * A definition of a PUT operation on this path.
24
+ */
25
+ put: OperationObjectSchema.optional(),
26
+ /**
27
+ * A definition of a POST operation on this path.
28
+ */
29
+ post: OperationObjectSchema.optional(),
30
+ /**
31
+ * A definition of a DELETE operation on this path.
32
+ */
33
+ delete: OperationObjectSchema.optional(),
34
+ /**
35
+ * A definition of a OPTIONS operation on this path.
36
+ */
37
+ options: OperationObjectSchema.optional(),
38
+ /**
39
+ * A definition of a HEAD operation on this path.
40
+ */
41
+ head: OperationObjectSchema.optional(),
42
+ /**
43
+ * A definition of a PATCH operation on this path.
44
+ */
45
+ patch: OperationObjectSchema.optional(),
46
+ /**
47
+ * A definition of a TRACE operation on this path.
48
+ */
49
+ trace: OperationObjectSchema.optional()
60
50
  });
61
-
62
- export { PathItemObjectSchema };
51
+ export {
52
+ PathItemObjectSchema
53
+ };
54
+ //# sourceMappingURL=path-item-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/path-item-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { BasePathItemObjectSchema } from './base-path-item-object'\nimport { OperationObjectSchema } from './operation-object'\n\n/**\n * Path Item Object\n *\n * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path\n * itself is still exposed to the documentation viewer but they will not know which operations and parameters are\n * available.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object\n */\nexport const PathItemObjectSchema = BasePathItemObjectSchema.extend({\n /**\n * Allows for a referenced definition of this path item. The value MUST be in the form of a URI, and the referenced\n * structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined\n * object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.\n *\n * Note: The behavior of $ref with adjacent properties is likely to change in future versions of this specification to\n * bring it into closer alignment with the behavior of the Reference Object.\n *\n * Q: Why don\u2019t we just use `ReferenceObjectSchema`?\n * A: References work a little bit different here. It\u2019s the only place where they can be combined with other\n * properties.\n */\n '$ref': z.string().optional(),\n /**\n * A definition of a GET operation on this path.\n */\n get: OperationObjectSchema.optional(),\n /**\n * A definition of a PUT operation on this path.\n */\n put: OperationObjectSchema.optional(),\n /**\n * A definition of a POST operation on this path.\n */\n post: OperationObjectSchema.optional(),\n /**\n * A definition of a DELETE operation on this path.\n */\n delete: OperationObjectSchema.optional(),\n /**\n * A definition of a OPTIONS operation on this path.\n */\n options: OperationObjectSchema.optional(),\n /**\n * A definition of a HEAD operation on this path.\n */\n head: OperationObjectSchema.optional(),\n /**\n * A definition of a PATCH operation on this path.\n */\n patch: OperationObjectSchema.optional(),\n /**\n * A definition of a TRACE operation on this path.\n */\n trace: OperationObjectSchema.optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,gCAAgC;AACzC,SAAS,6BAA6B;AAW/B,MAAM,uBAAuB,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAalE,QAAQ,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA,EAI5B,KAAK,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,KAAK,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpC,MAAM,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,QAAQ,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvC,SAAS,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxC,MAAM,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrC,OAAO,sBAAsB,SAAS;AAAA;AAAA;AAAA;AAAA,EAItC,OAAO,sBAAsB,SAAS;AACxC,CAAC;",
6
+ "names": []
7
+ }
@@ -1,14 +1,6 @@
1
- import { PathsObjectSchema as PathsObjectSchema$1 } from '../processed/paths-object.js';
2
-
3
- /**
4
- * Paths Object
5
- *
6
- * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the
7
- * Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL)
8
- * constraints.
9
- *
10
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#paths-object
11
- */
12
- const PathsObjectSchema = PathsObjectSchema$1;
13
-
14
- export { PathsObjectSchema };
1
+ import { PathsObjectSchema as OriginalPathsObjectSchema } from "../processed/paths-object.js";
2
+ const PathsObjectSchema = OriginalPathsObjectSchema;
3
+ export {
4
+ PathsObjectSchema
5
+ };
6
+ //# sourceMappingURL=paths-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/paths-object.ts"],
4
+ "sourcesContent": ["import { PathsObjectSchema as OriginalPathsObjectSchema } from '../processed/paths-object'\n\n/**\n * Paths Object\n *\n * Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the\n * Server Object in order to construct the full URL. The Paths Object MAY be empty, due to Access Control List (ACL)\n * constraints.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#paths-object\n */\nexport const PathsObjectSchema = OriginalPathsObjectSchema\n"],
5
+ "mappings": "AAAA,SAAS,qBAAqB,iCAAiC;AAWxD,MAAM,oBAAoB;",
6
+ "names": []
7
+ }
@@ -1,30 +1,22 @@
1
- import { z } from 'zod';
2
-
3
- /**
4
- * Reference Object
5
- *
6
- * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.
7
- *
8
- * The $ref string value contains a URI RFC3986, which identifies the value being referenced.
9
- *
10
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#reference-object
11
- */
1
+ import { z } from "zod";
12
2
  const ReferenceObjectSchema = z.object({
13
- /**
14
- * REQUIRED. The reference identifier. This MUST be in the form of a URI.
15
- */
16
- $ref: z.string(),
17
- /**
18
- * A short summary which by default SHOULD override that of the referenced component. If the referenced object-type
19
- * does not allow a summary field, then this field has no effect.
20
- */
21
- summary: z.string().optional(),
22
- /**
23
- * A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for
24
- * rich text representation. If the referenced object-type does not allow a description field, then this field has no
25
- * effect.
26
- */
27
- description: z.string().optional(),
3
+ /**
4
+ * REQUIRED. The reference identifier. This MUST be in the form of a URI.
5
+ */
6
+ $ref: z.string(),
7
+ /**
8
+ * A short summary which by default SHOULD override that of the referenced component. If the referenced object-type
9
+ * does not allow a summary field, then this field has no effect.
10
+ */
11
+ summary: z.string().optional(),
12
+ /**
13
+ * A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for
14
+ * rich text representation. If the referenced object-type does not allow a description field, then this field has no
15
+ * effect.
16
+ */
17
+ description: z.string().optional()
28
18
  });
29
-
30
- export { ReferenceObjectSchema };
19
+ export {
20
+ ReferenceObjectSchema
21
+ };
22
+ //# sourceMappingURL=reference-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/reference-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\n\n/**\n * Reference Object\n *\n * A simple object to allow referencing other components in the OpenAPI Description, internally and externally.\n *\n * The $ref string value contains a URI RFC3986, which identifies the value being referenced.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#reference-object\n */\nexport const ReferenceObjectSchema = z.object({\n /**\n * REQUIRED. The reference identifier. This MUST be in the form of a URI.\n */\n $ref: z.string(),\n /**\n * A short summary which by default SHOULD override that of the referenced component. If the referenced object-type\n * does not allow a summary field, then this field has no effect.\n */\n summary: z.string().optional(),\n /**\n * A description which by default SHOULD override that of the referenced component. CommonMark syntax MAY be used for\n * rich text representation. If the referenced object-type does not allow a description field, then this field has no\n * effect.\n */\n description: z.string().optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAWX,MAAM,wBAAwB,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA,EAI5C,MAAM,EAAE,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKf,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7B,aAAa,EAAE,OAAO,EAAE,SAAS;AACnC,CAAC;",
6
+ "names": []
7
+ }
@@ -1,12 +1,6 @@
1
- import { RequestBodyObjectSchema as RequestBodyObjectSchema$1 } from '../processed/request-body-object.js';
2
-
3
- /**
4
- * Request Body Object
5
- *
6
- * Describes a single request body.
7
- *
8
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object
9
- */
10
- const RequestBodyObjectSchema = RequestBodyObjectSchema$1;
11
-
12
- export { RequestBodyObjectSchema };
1
+ import { RequestBodyObjectSchema as OriginalRequestBodyObjectSchema } from "../processed/request-body-object.js";
2
+ const RequestBodyObjectSchema = OriginalRequestBodyObjectSchema;
3
+ export {
4
+ RequestBodyObjectSchema
5
+ };
6
+ //# sourceMappingURL=request-body-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/request-body-object.ts"],
4
+ "sourcesContent": ["import { RequestBodyObjectSchema as OriginalRequestBodyObjectSchema } from '../processed/request-body-object'\n\n/**\n * Request Body Object\n *\n * Describes a single request body.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#request-body-object\n */\nexport const RequestBodyObjectSchema = OriginalRequestBodyObjectSchema\n"],
5
+ "mappings": "AAAA,SAAS,2BAA2B,uCAAuC;AASpE,MAAM,0BAA0B;",
6
+ "names": []
7
+ }
@@ -1,34 +1,28 @@
1
- import { z } from 'zod';
2
- import { ResponseObjectSchema as ResponseObjectSchema$1 } from '../processed/response-object.js';
3
- import { HeaderObjectSchema } from './header-object.js';
4
- import { LinkObjectSchema } from './link-object.js';
5
- import { MediaTypeObjectSchema } from './media-type-object.js';
6
- import { ReferenceObjectSchema } from './reference-object.js';
7
-
8
- /**
9
- * Response Object
10
- *
11
- * Describes a single response from an API operation, including design-time, static links to operations based on the response.
12
- *
13
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object
14
- */
15
- const ResponseObjectSchema = ResponseObjectSchema$1.extend({
16
- /**
17
- * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is
18
- * defined with the name "Content-Type", it SHALL be ignored.
19
- */
20
- headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(),
21
- /**
22
- * A map containing descriptions of potential response payloads. The key is a media type or media type range and the
23
- * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.
24
- * "text/plain" overrides "text/*"
25
- */
26
- content: z.record(z.string(), MediaTypeObjectSchema).optional(),
27
- /**
28
- * A map of operations links that can be followed from the response. The key of the map is a short name for the link,
29
- * following the naming constraints of the names for Component Objects.
30
- */
31
- links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(),
1
+ import { z } from "zod";
2
+ import { ResponseObjectSchema as OriginalResponseObjectSchema } from "../processed/response-object.js";
3
+ import { HeaderObjectSchema } from "./header-object.js";
4
+ import { LinkObjectSchema } from "./link-object.js";
5
+ import { MediaTypeObjectSchema } from "./media-type-object.js";
6
+ import { ReferenceObjectSchema } from "./reference-object.js";
7
+ const ResponseObjectSchema = OriginalResponseObjectSchema.extend({
8
+ /**
9
+ * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is
10
+ * defined with the name "Content-Type", it SHALL be ignored.
11
+ */
12
+ headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(),
13
+ /**
14
+ * A map containing descriptions of potential response payloads. The key is a media type or media type range and the
15
+ * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.
16
+ * "text/plain" overrides "text/*"
17
+ */
18
+ content: z.record(z.string(), MediaTypeObjectSchema).optional(),
19
+ /**
20
+ * A map of operations links that can be followed from the response. The key of the map is a short name for the link,
21
+ * following the naming constraints of the names for Component Objects.
22
+ */
23
+ links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional()
32
24
  });
33
-
34
- export { ResponseObjectSchema };
25
+ export {
26
+ ResponseObjectSchema
27
+ };
28
+ //# sourceMappingURL=response-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/response-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { ResponseObjectSchema as OriginalResponseObjectSchema } from '../processed/response-object'\nimport { HeaderObjectSchema } from './header-object'\nimport { LinkObjectSchema } from './link-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Response Object\n *\n * Describes a single response from an API operation, including design-time, static links to operations based on the response.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#response-object\n */\nexport const ResponseObjectSchema = OriginalResponseObjectSchema.extend({\n /**\n * Maps a header name to its definition. RFC7230 states header names are case insensitive. If a response header is\n * defined with the name \"Content-Type\", it SHALL be ignored.\n */\n headers: z.record(z.string(), z.union([ReferenceObjectSchema, HeaderObjectSchema])).optional(),\n /**\n * A map containing descriptions of potential response payloads. The key is a media type or media type range and the\n * value describes it. For responses that match multiple keys, only the most specific key is applicable. e.g.\n * \"text/plain\" overrides \"text/*\"\n */\n content: z.record(z.string(), MediaTypeObjectSchema).optional(),\n /**\n * A map of operations links that can be followed from the response. The key of the map is a short name for the link,\n * following the naming constraints of the names for Component Objects.\n */\n links: z.record(z.string(), z.union([ReferenceObjectSchema, LinkObjectSchema])).optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,wBAAwB,oCAAoC;AACrE,SAAS,0BAA0B;AACnC,SAAS,wBAAwB;AACjC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AAS/B,MAAM,uBAAuB,6BAA6B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA,EAKtE,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,kBAAkB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM7F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK9D,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,gBAAgB,CAAC,CAAC,EAAE,SAAS;AAC3F,CAAC;",
6
+ "names": []
7
+ }
@@ -1,32 +1,19 @@
1
- import { z } from 'zod';
2
- import { ReferenceObjectSchema } from './reference-object.js';
3
- import { ResponseObjectSchema } from './response-object.js';
4
-
5
- /**
6
- * Responses Object
7
- *
8
- * A container for the expected responses of an operation. The container maps a HTTP response code to the expected
9
- * response.
10
- *
11
- * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known
12
- * in advance. However, documentation is expected to cover a successful operation response and any known errors.
13
- * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the
14
- * Responses Object.
15
- *
16
- * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be
17
- * the response for a successful operation call.
18
- *
19
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#responses-object
20
- */
1
+ import { z } from "zod";
2
+ import { ReferenceObjectSchema } from "./reference-object.js";
3
+ import { ResponseObjectSchema } from "./response-object.js";
21
4
  const ResponsesObjectSchema = z.record(
22
- /**
23
- * Response Object | Reference Object Any HTTP status code can be used as the property name, but only one property per
24
- * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks
25
- * (for example, "200") for compatibility between JSON and YAML. To define a range of response codes, this field MAY
26
- * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299.
27
- * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an
28
- * explicit code, the explicit code definition takes precedence over the range definition for that code.
29
- */
30
- z.string(), z.union([ReferenceObjectSchema, ResponseObjectSchema]));
31
-
32
- export { ResponsesObjectSchema };
5
+ /**
6
+ * Response Object | Reference Object Any HTTP status code can be used as the property name, but only one property per
7
+ * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks
8
+ * (for example, "200") for compatibility between JSON and YAML. To define a range of response codes, this field MAY
9
+ * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299.
10
+ * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an
11
+ * explicit code, the explicit code definition takes precedence over the range definition for that code.
12
+ */
13
+ z.string(),
14
+ z.union([ReferenceObjectSchema, ResponseObjectSchema])
15
+ );
16
+ export {
17
+ ResponsesObjectSchema
18
+ };
19
+ //# sourceMappingURL=responses-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/responses-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { ResponseObjectSchema } from './response-object'\n\n/**\n * Responses Object\n *\n * A container for the expected responses of an operation. The container maps a HTTP response code to the expected\n * response.\n *\n * The documentation is not necessarily expected to cover all possible HTTP response codes because they may not be known\n * in advance. However, documentation is expected to cover a successful operation response and any known errors.\n * The default MAY be used as a default Response Object for all HTTP codes that are not covered individually by the\n * Responses Object.\n *\n * The Responses Object MUST contain at least one response code, and if only one response code is provided it SHOULD be\n * the response for a successful operation call.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#responses-object\n */\nexport const ResponsesObjectSchema = z.record(\n /**\n * Response Object | Reference Object\tAny HTTP status code can be used as the property name, but only one property per\n * code, to describe the expected response for that HTTP status code. This field MUST be enclosed in quotation marks\n * (for example, \"200\") for compatibility between JSON and YAML. To define a range of response codes, this field MAY\n * contain the uppercase wildcard character X. For example, 2XX represents all response codes between 200 and 299.\n * Only the following range definitions are allowed: 1XX, 2XX, 3XX, 4XX, and 5XX. If a response is defined using an\n * explicit code, the explicit code definition takes precedence over the range definition for that code.\n */\n z.string(),\n z.union([ReferenceObjectSchema, ResponseObjectSchema]),\n)\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,6BAA6B;AACtC,SAAS,4BAA4B;AAkB9B,MAAM,wBAAwB,EAAE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EASrC,EAAE,OAAO;AAAA,EACT,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC;AACvD;",
6
+ "names": []
7
+ }
@@ -1,17 +1,6 @@
1
- import { RuntimeExpressionSchema as RuntimeExpressionSchema$1 } from '../processed/runtime-expression.js';
2
-
3
- /**
4
- * Runtime Expression Schema
5
- *
6
- * Runtime expressions allow defining values based on information that will only be available within the HTTP message in
7
- * an actual API call. This mechanism is used by Link Objects and Callback Objects.
8
- *
9
- * Expressions can be:
10
- * 1. Pure runtime expressions starting with $ (e.g. $method, $request.path.id)
11
- * 2. Embedded expressions in strings using curly braces (e.g. "Hello {$request.body#/name}!")
12
- *
13
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#runtime-expressions
14
- */
15
- const RuntimeExpressionSchema = RuntimeExpressionSchema$1;
16
-
17
- export { RuntimeExpressionSchema };
1
+ import { RuntimeExpressionSchema as OriginalRuntimeExpressionSchema } from "../processed/runtime-expression.js";
2
+ const RuntimeExpressionSchema = OriginalRuntimeExpressionSchema;
3
+ export {
4
+ RuntimeExpressionSchema
5
+ };
6
+ //# sourceMappingURL=runtime-expression.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/runtime-expression.ts"],
4
+ "sourcesContent": ["import { RuntimeExpressionSchema as OriginalRuntimeExpressionSchema } from '../processed/runtime-expression'\n\n/**\n * Runtime Expression Schema\n *\n * Runtime expressions allow defining values based on information that will only be available within the HTTP message in\n * an actual API call. This mechanism is used by Link Objects and Callback Objects.\n *\n * Expressions can be:\n * 1. Pure runtime expressions starting with $ (e.g. $method, $request.path.id)\n * 2. Embedded expressions in strings using curly braces (e.g. \"Hello {$request.body#/name}!\")\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#runtime-expressions\n */\nexport const RuntimeExpressionSchema = OriginalRuntimeExpressionSchema\n"],
5
+ "mappings": "AAAA,SAAS,2BAA2B,uCAAuC;AAcpE,MAAM,0BAA0B;",
6
+ "names": []
7
+ }
@@ -1,32 +1,31 @@
1
- import { z } from 'zod';
2
- import { SchemaObjectSchema as SchemaObjectSchema$1 } from '../processed/schema-object.js';
3
- import { ReferenceObjectSchema } from './reference-object.js';
4
-
5
- /**
6
- * The Schema Object with reference fields.
7
- * This extends the base Schema Object to include reference-related fields
8
- * that are processed differently in the unprocessed schema.
9
- */
10
- const SchemaObjectSchema = z.lazy(() => z.intersection(SchemaObjectSchema$1, z.object({
11
- // Reference-related fields
12
- $ref: z.string().optional(),
13
- $id: z.string().optional(),
14
- $schema: z.string().optional(),
15
- $defs: z.record(z.lazy(() => SchemaObjectSchema)).optional(),
16
- $dynamicRef: z.string().optional(),
17
- $dynamicAnchor: z.string().optional(),
18
- // Override the recursive fields to use this schema instead of the original
19
- properties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
20
- additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),
21
- patternProperties: z
22
- .record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]))
23
- .optional(),
24
- items: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),
25
- prefixItems: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
26
- allOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
27
- oneOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
28
- anyOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
29
- not: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),
30
- })));
31
-
32
- export { SchemaObjectSchema };
1
+ import { z } from "zod";
2
+ import { SchemaObjectSchema as OriginalSchemaObjectSchema } from "../processed/schema-object.js";
3
+ import { ReferenceObjectSchema } from "./reference-object.js";
4
+ const SchemaObjectSchema = z.lazy(
5
+ () => z.intersection(
6
+ OriginalSchemaObjectSchema,
7
+ z.object({
8
+ // Reference-related fields
9
+ $ref: z.string().optional(),
10
+ $id: z.string().optional(),
11
+ $schema: z.string().optional(),
12
+ $defs: z.record(z.lazy(() => SchemaObjectSchema)).optional(),
13
+ $dynamicRef: z.string().optional(),
14
+ $dynamicAnchor: z.string().optional(),
15
+ // Override the recursive fields to use this schema instead of the original
16
+ properties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
17
+ additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),
18
+ patternProperties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
19
+ items: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),
20
+ prefixItems: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
21
+ allOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
22
+ oneOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
23
+ anyOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),
24
+ not: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional()
25
+ })
26
+ )
27
+ );
28
+ export {
29
+ SchemaObjectSchema
30
+ };
31
+ //# sourceMappingURL=schema-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/schema-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { SchemaObjectSchema as OriginalSchemaObjectSchema } from '../processed/schema-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * The Schema Object with reference fields.\n * This extends the base Schema Object to include reference-related fields\n * that are processed differently in the unprocessed schema.\n */\nexport const SchemaObjectSchema: z.ZodType<any> = z.lazy(() =>\n z.intersection(\n OriginalSchemaObjectSchema,\n z.object({\n // Reference-related fields\n $ref: z.string().optional(),\n $id: z.string().optional(),\n $schema: z.string().optional(),\n $defs: z.record(z.lazy(() => SchemaObjectSchema)).optional(),\n $dynamicRef: z.string().optional(),\n $dynamicAnchor: z.string().optional(),\n\n // Override the recursive fields to use this schema instead of the original\n properties: z.record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n additionalProperties: z.union([z.boolean(), z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),\n patternProperties: z\n .record(z.string(), z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]))\n .optional(),\n items: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),\n prefixItems: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n allOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n oneOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n anyOf: z.array(z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema])).optional(),\n not: z.union([z.lazy(() => SchemaObjectSchema), ReferenceObjectSchema]).optional(),\n }),\n ),\n)\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,sBAAsB,kCAAkC;AACjE,SAAS,6BAA6B;AAO/B,MAAM,qBAAqC,EAAE;AAAA,EAAK,MACvD,EAAE;AAAA,IACA;AAAA,IACA,EAAE,OAAO;AAAA;AAAA,MAEP,MAAM,EAAE,OAAO,EAAE,SAAS;AAAA,MAC1B,KAAK,EAAE,OAAO,EAAE,SAAS;AAAA,MACzB,SAAS,EAAE,OAAO,EAAE,SAAS;AAAA,MAC7B,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,kBAAkB,CAAC,EAAE,SAAS;AAAA,MAC3D,aAAa,EAAE,OAAO,EAAE,SAAS;AAAA,MACjC,gBAAgB,EAAE,OAAO,EAAE,SAAS;AAAA;AAAA,MAGpC,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC9G,sBAAsB,EAAE,MAAM,CAAC,EAAE,QAAQ,GAAG,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,EAAE,SAAS;AAAA,MAC/G,mBAAmB,EAChB,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EACrF,SAAS;AAAA,MACZ,OAAO,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,EAAE,SAAS;AAAA,MACnF,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAClG,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC5F,OAAO,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,CAAC,EAAE,SAAS;AAAA,MAC5F,KAAK,EAAE,MAAM,CAAC,EAAE,KAAK,MAAM,kBAAkB,GAAG,qBAAqB,CAAC,EAAE,SAAS;AAAA,IACnF,CAAC;AAAA,EACH;AACF;",
6
+ "names": []
7
+ }
@@ -1,23 +1,6 @@
1
- import { SecurityRequirementObjectSchema as SecurityRequirementObjectSchema$1 } from '../processed/security-requirement-object.js';
2
-
3
- /**
4
- * Security Requirement Object
5
- *
6
- * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a
7
- * security scheme declared in the Security Schemes under the Components Object.
8
- *
9
- * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for
10
- * a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are
11
- * required to convey security information.
12
- *
13
- * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security
14
- * Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This
15
- * enables support for scenarios where the API allows multiple, independent security schemes.
16
- *
17
- * An empty Security Requirement Object ({}) indicates anonymous access is supported.
18
- *
19
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-requirement-object
20
- */
21
- const SecurityRequirementObjectSchema = SecurityRequirementObjectSchema$1;
22
-
23
- export { SecurityRequirementObjectSchema };
1
+ import { SecurityRequirementObjectSchema as OriginalSecurityRequirementObjectSchema } from "../processed/security-requirement-object.js";
2
+ const SecurityRequirementObjectSchema = OriginalSecurityRequirementObjectSchema;
3
+ export {
4
+ SecurityRequirementObjectSchema
5
+ };
6
+ //# sourceMappingURL=security-requirement-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/security-requirement-object.ts"],
4
+ "sourcesContent": ["import { SecurityRequirementObjectSchema as OriginalSecurityRequirementObjectSchema } from '../processed/security-requirement-object'\n\n/**\n * Security Requirement Object\n *\n * Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a\n * security scheme declared in the Security Schemes under the Components Object.\n *\n * A Security Requirement Object MAY refer to multiple security schemes in which case all schemes MUST be satisfied for\n * a request to be authorized. This enables support for scenarios where multiple query parameters or HTTP headers are\n * required to convey security information.\n *\n * When the security field is defined on the OpenAPI Object or Operation Object and contains multiple Security\n * Requirement Objects, only one of the entries in the list needs to be satisfied to authorize the request. This\n * enables support for scenarios where the API allows multiple, independent security schemes.\n *\n * An empty Security Requirement Object ({}) indicates anonymous access is supported.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#security-requirement-object\n */\nexport const SecurityRequirementObjectSchema = OriginalSecurityRequirementObjectSchema\n"],
5
+ "mappings": "AAAA,SAAS,mCAAmC,+CAA+C;AAoBpF,MAAM,kCAAkC;",
6
+ "names": []
7
+ }