@scalar/openapi-types 0.2.1 → 0.2.2

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 (242) hide show
  1. package/CHANGELOG.md +6 -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.js +29 -11
  193. package/dist/schemas/extensions/index.js.map +7 -0
  194. package/dist/schemas/extensions/x-additional-properties-name.js +6 -12
  195. package/dist/schemas/extensions/x-additional-properties-name.js.map +7 -0
  196. package/dist/schemas/extensions/x-additional-properties-name.test.js +28 -0
  197. package/dist/schemas/extensions/x-additional-properties-name.test.js.map +7 -0
  198. package/dist/schemas/extensions/x-code-samples.js +12 -10
  199. package/dist/schemas/extensions/x-code-samples.js.map +7 -0
  200. package/dist/schemas/extensions/x-code-samples.test.js +82 -0
  201. package/dist/schemas/extensions/x-code-samples.test.js.map +7 -0
  202. package/dist/schemas/extensions/x-display-name.js +8 -0
  203. package/dist/schemas/extensions/x-display-name.js.map +7 -0
  204. package/dist/schemas/extensions/x-display-name.test.js +28 -0
  205. package/dist/schemas/extensions/x-display-name.test.js.map +7 -0
  206. package/dist/schemas/extensions/x-enum-descriptions.js +6 -18
  207. package/dist/schemas/extensions/x-enum-descriptions.js.map +7 -0
  208. package/dist/schemas/extensions/x-enum-descriptions.test.js +36 -0
  209. package/dist/schemas/extensions/x-enum-descriptions.test.js.map +7 -0
  210. package/dist/schemas/extensions/x-internal.js +6 -5
  211. package/dist/schemas/extensions/x-internal.js.map +7 -0
  212. package/dist/schemas/extensions/x-internal.test.js +20 -0
  213. package/dist/schemas/extensions/x-internal.test.js.map +7 -0
  214. package/dist/schemas/extensions/x-scalar-icon.js +6 -5
  215. package/dist/schemas/extensions/x-scalar-icon.js.map +7 -0
  216. package/dist/schemas/extensions/x-scalar-icon.test.js +14 -0
  217. package/dist/schemas/extensions/x-scalar-icon.test.js.map +7 -0
  218. package/dist/schemas/extensions/x-scalar-ignore.js +6 -5
  219. package/dist/schemas/extensions/x-scalar-ignore.js.map +7 -0
  220. package/dist/schemas/extensions/x-scalar-ignore.test.js +20 -0
  221. package/dist/schemas/extensions/x-scalar-ignore.test.js.map +7 -0
  222. package/dist/schemas/extensions/x-scalar-redirect-uri.js +6 -5
  223. package/dist/schemas/extensions/x-scalar-redirect-uri.js.map +7 -0
  224. package/dist/schemas/extensions/x-scalar-redirect-uri.test.js +23 -0
  225. package/dist/schemas/extensions/x-scalar-redirect-uri.test.js.map +7 -0
  226. package/dist/schemas/extensions/x-scalar-sdk-installation.js +10 -13
  227. package/dist/schemas/extensions/x-scalar-sdk-installation.js.map +7 -0
  228. package/dist/schemas/extensions/x-scalar-sdk-installation.test.js +25 -0
  229. package/dist/schemas/extensions/x-scalar-sdk-installation.test.js.map +7 -0
  230. package/dist/schemas/extensions/x-scalar-stability.js +10 -19
  231. package/dist/schemas/extensions/x-scalar-stability.js.map +7 -0
  232. package/dist/schemas/extensions/x-scalar-stability.test.js +33 -0
  233. package/dist/schemas/extensions/x-scalar-stability.test.js.map +7 -0
  234. package/dist/schemas/extensions/x-tag-groups.js +14 -17
  235. package/dist/schemas/extensions/x-tag-groups.js.map +7 -0
  236. package/dist/schemas/extensions/x-tag-groups.test.js +55 -0
  237. package/dist/schemas/extensions/x-tag-groups.test.js.map +7 -0
  238. package/dist/schemas/extensions/x-use-pkce.js +11 -10
  239. package/dist/schemas/extensions/x-use-pkce.js.map +7 -0
  240. package/dist/schemas/extensions/x-use-pkce.test.js +34 -0
  241. package/dist/schemas/extensions/x-use-pkce.test.js.map +7 -0
  242. package/package.json +4 -5
@@ -1,12 +1,6 @@
1
- import { LicenseObjectSchema as LicenseObjectSchema$1 } from '../processed/license-object.js';
2
-
3
- /**
4
- * License Object
5
- *
6
- * License information for the exposed API.
7
- *
8
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object
9
- */
10
- const LicenseObjectSchema = LicenseObjectSchema$1;
11
-
12
- export { LicenseObjectSchema };
1
+ import { LicenseObjectSchema as OriginalLicenseObjectSchema } from "../processed/license-object.js";
2
+ const LicenseObjectSchema = OriginalLicenseObjectSchema;
3
+ export {
4
+ LicenseObjectSchema
5
+ };
6
+ //# sourceMappingURL=license-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/license-object.ts"],
4
+ "sourcesContent": ["import { LicenseObjectSchema as OriginalLicenseObjectSchema } from '../processed/license-object'\n\n/**\n * License Object\n *\n * License information for the exposed API.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#license-object\n */\nexport const LicenseObjectSchema = OriginalLicenseObjectSchema\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB,mCAAmC;AAS5D,MAAM,sBAAsB;",
6
+ "names": []
7
+ }
@@ -1,20 +1,6 @@
1
- import { LinkObjectSchema as LinkObjectSchema$1 } from '../processed/link-object.js';
2
-
3
- /**
4
- * Link Object
5
- *
6
- * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the
7
- * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between
8
- * responses and other operations.
9
- *
10
- * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link
11
- * information in the runtime response.
12
- *
13
- * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an
14
- * operation and using them as parameters while invoking the linked operation.
15
- *
16
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object
17
- */
18
- const LinkObjectSchema = LinkObjectSchema$1;
19
-
20
- export { LinkObjectSchema };
1
+ import { LinkObjectSchema as OriginalLinkObjectSchema } from "../processed/link-object.js";
2
+ const LinkObjectSchema = OriginalLinkObjectSchema;
3
+ export {
4
+ LinkObjectSchema
5
+ };
6
+ //# sourceMappingURL=link-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/link-object.ts"],
4
+ "sourcesContent": ["import { LinkObjectSchema as OriginalLinkObjectSchema } from '../processed/link-object'\n\n/**\n * Link Object\n *\n * The Link Object represents a possible design-time link for a response. The presence of a link does not guarantee the\n * caller's ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between\n * responses and other operations.\n *\n * Unlike dynamic links (i.e. links provided in the response payload), the OAS linking mechanism does not require link\n * information in the runtime response.\n *\n * For computing links and providing instructions to execute them, a runtime expression is used for accessing values in an\n * operation and using them as parameters while invoking the linked operation.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#link-object\n */\nexport const LinkObjectSchema = OriginalLinkObjectSchema\n"],
5
+ "mappings": "AAAA,SAAS,oBAAoB,gCAAgC;AAiBtD,MAAM,mBAAmB;",
6
+ "names": []
7
+ }
@@ -1,12 +1,6 @@
1
- import { MediaTypeObjectSchemaWithoutEncoding as MediaTypeObjectSchemaWithoutEncoding$1 } from '../processed/media-type-object-without-encoding.js';
2
-
3
- /**
4
- * Media Type Object (without encoding)
5
- *
6
- * Each Media Type Object provides schema and examples for the media type identified by its key.
7
- *
8
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object
9
- */
10
- const MediaTypeObjectSchemaWithoutEncoding = MediaTypeObjectSchemaWithoutEncoding$1;
11
-
12
- export { MediaTypeObjectSchemaWithoutEncoding };
1
+ import { MediaTypeObjectSchemaWithoutEncoding as OriginalMediaTypeObjectSchemaWithoutEncoding } from "../processed/media-type-object-without-encoding.js";
2
+ const MediaTypeObjectSchemaWithoutEncoding = OriginalMediaTypeObjectSchemaWithoutEncoding;
3
+ export {
4
+ MediaTypeObjectSchemaWithoutEncoding
5
+ };
6
+ //# sourceMappingURL=media-type-object-without-encoding.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/media-type-object-without-encoding.ts"],
4
+ "sourcesContent": ["import { MediaTypeObjectSchemaWithoutEncoding as OriginalMediaTypeObjectSchemaWithoutEncoding } from '../processed/media-type-object-without-encoding'\n\n/**\n * Media Type Object (without encoding)\n *\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object\n */\nexport const MediaTypeObjectSchemaWithoutEncoding = OriginalMediaTypeObjectSchemaWithoutEncoding\n"],
5
+ "mappings": "AAAA,SAAS,wCAAwC,oDAAoD;AAS9F,MAAM,uCAAuC;",
6
+ "names": []
7
+ }
@@ -1,40 +1,34 @@
1
- import { z } from 'zod';
2
- import { MediaTypeObjectSchema as MediaTypeObjectSchema$1 } from '../processed/media-type-object.js';
3
- import { EncodingObjectSchema } from './encoding-object.js';
4
- import { ExampleObjectSchema } from './example-object.js';
5
- import { ReferenceObjectSchema } from './reference-object.js';
6
- import { SchemaObjectSchema } from './schema-object.js';
7
-
8
- /**
9
- * Media Type Object
10
- *
11
- * Each Media Type Object provides schema and examples for the media type identified by its key.
12
- *
13
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object
14
- */
15
- const MediaTypeObjectSchema = MediaTypeObjectSchema$1.extend({
16
- /**
17
- * The schema defining the content of the request, response, or parameter.
18
- */
19
- schema: SchemaObjectSchema.optional(),
20
- /**
21
- * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.
22
- * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains
23
- * an example, the example value SHALL override the example provided by the schema.
24
- */
25
- example: z.any().optional(),
26
- /**
27
- * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.
28
- * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains
29
- * an example, the examples value SHALL override the example provided by the schema.
30
- */
31
- examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),
32
- /**
33
- * A map between a property name and its encoding information. The key, being the property name, MUST exist in the
34
- * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is
35
- * multipart or application/x-www-form-urlencoded.
36
- */
37
- encoding: z.record(z.string(), EncodingObjectSchema).optional(),
1
+ import { z } from "zod";
2
+ import { MediaTypeObjectSchema as OriginalMediaTypeObjectSchema } from "../processed/media-type-object.js";
3
+ import { EncodingObjectSchema } from "./encoding-object.js";
4
+ import { ExampleObjectSchema } from "./example-object.js";
5
+ import { ReferenceObjectSchema } from "./reference-object.js";
6
+ import { SchemaObjectSchema } from "./schema-object.js";
7
+ const MediaTypeObjectSchema = OriginalMediaTypeObjectSchema.extend({
8
+ /**
9
+ * The schema defining the content of the request, response, or parameter.
10
+ */
11
+ schema: SchemaObjectSchema.optional(),
12
+ /**
13
+ * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.
14
+ * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains
15
+ * an example, the example value SHALL override the example provided by the schema.
16
+ */
17
+ example: z.any().optional(),
18
+ /**
19
+ * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.
20
+ * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains
21
+ * an example, the examples value SHALL override the example provided by the schema.
22
+ */
23
+ examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),
24
+ /**
25
+ * A map between a property name and its encoding information. The key, being the property name, MUST exist in the
26
+ * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is
27
+ * multipart or application/x-www-form-urlencoded.
28
+ */
29
+ encoding: z.record(z.string(), EncodingObjectSchema).optional()
38
30
  });
39
-
40
- export { MediaTypeObjectSchema };
31
+ export {
32
+ MediaTypeObjectSchema
33
+ };
34
+ //# sourceMappingURL=media-type-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/media-type-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { MediaTypeObjectSchema as OriginalMediaTypeObjectSchema } from '../processed/media-type-object'\nimport { EncodingObjectSchema } from './encoding-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { SchemaObjectSchema } from './schema-object'\n\n/**\n * Media Type Object\n *\n * Each Media Type Object provides schema and examples for the media type identified by its key.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#media-type-object\n */\nexport const MediaTypeObjectSchema = OriginalMediaTypeObjectSchema.extend({\n /**\n * The schema defining the content of the request, response, or parameter.\n */\n schema: SchemaObjectSchema.optional(),\n /**\n * Example of the media type. The example object SHOULD be in the correct format as specified by the media type.\n * The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains\n * an example, the example value SHALL override the example provided by the schema.\n */\n example: z.any().optional(),\n /**\n * Examples of the media type. Each example object SHOULD match the media type and specified schema if present.\n * The examples field is mutually exclusive of the example field. Furthermore, if referencing a schema which contains\n * an example, the examples value SHALL override the example provided by the schema.\n */\n examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),\n /**\n * A map between a property name and its encoding information. The key, being the property name, MUST exist in the\n * schema as a property. The encoding object SHALL only apply to requestBody objects when the media type is\n * multipart or application/x-www-form-urlencoded.\n */\n encoding: z.record(z.string(), EncodingObjectSchema).optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yBAAyB,qCAAqC;AACvE,SAAS,4BAA4B;AACrC,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,0BAA0B;AAS5B,MAAM,wBAAwB,8BAA8B,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxE,QAAQ,mBAAmB,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAMpC,SAAS,EAAE,IAAI,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM1B,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,mBAAmB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAM/F,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,EAAE,SAAS;AAChE,CAAC;",
6
+ "names": []
7
+ }
@@ -1,12 +1,6 @@
1
- import { OpenApiObjectSchema as OpenApiObjectSchema$1 } from '../processed/openapi-object.js';
2
-
3
- /**
4
- * OpenAPI Object
5
- *
6
- * This is the root object of the OpenAPI Description.
7
- *
8
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#openapi-object
9
- */
10
- const OpenApiObjectSchema = OpenApiObjectSchema$1;
11
-
12
- export { OpenApiObjectSchema };
1
+ import { OpenApiObjectSchema as OriginalOpenApiObjectSchema } from "../processed/openapi-object.js";
2
+ const OpenApiObjectSchema = OriginalOpenApiObjectSchema;
3
+ export {
4
+ OpenApiObjectSchema
5
+ };
6
+ //# sourceMappingURL=openapi-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/openapi-object.ts"],
4
+ "sourcesContent": ["import { OpenApiObjectSchema as OriginalOpenApiObjectSchema } from '../processed/openapi-object'\n\n/**\n * OpenAPI Object\n *\n * This is the root object of the OpenAPI Description.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#openapi-object\n */\nexport const OpenApiObjectSchema = OriginalOpenApiObjectSchema\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB,mCAAmC;AAS5D,MAAM,sBAAsB;",
6
+ "names": []
7
+ }
@@ -1,45 +1,39 @@
1
- import { z } from 'zod';
2
- import { OperationObjectSchemaWithoutCallbacks as OperationObjectSchemaWithoutCallbacks$1 } from '../processed/operation-object-without-callbacks.js';
3
- import { ExternalDocumentationObjectSchema } from './external-documentation-object.js';
4
- import { ParameterObjectSchema } from './parameter-object.js';
5
- import { ReferenceObjectSchema } from './reference-object.js';
6
- import { RequestBodyObjectSchema } from './request-body-object.js';
7
- import { SecurityRequirementObjectSchema } from './security-requirement-object.js';
8
-
9
- /**
10
- * Operation Object (without callbacks, used in callbacks)
11
- *
12
- * Describes a single API operation on a path.
13
- *
14
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object
15
- */
16
- const OperationObjectSchemaWithoutCallbacks = OperationObjectSchemaWithoutCallbacks$1.extend({
17
- /**
18
- * External documentation object
19
- */
20
- 'externalDocs': ExternalDocumentationObjectSchema.optional(),
21
- /**
22
- * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item,
23
- * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A
24
- * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link
25
- * to parameters that are defined in the OpenAPI Object's components.parameters.
26
- */
27
- 'parameters': z.union([ReferenceObjectSchema, ParameterObjectSchema]).array().optional(),
28
- /**
29
- * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the
30
- * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the
31
- * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined
32
- * semantics and SHOULD be avoided if possible.
33
- */
34
- 'requestBody': z.union([ReferenceObjectSchema, RequestBodyObjectSchema]).optional(),
35
- /**
36
- * A declaration of which security mechanisms can be used across the API. The list of
37
- * values includes alternative security requirement objects that can be used. Only
38
- * one of the security requirement objects need to be satisfied to authorize a request.
39
- * Individual operations can override this definition. To make security optional, an empty
40
- * security requirement ({}) can be included in the array.
41
- */
42
- 'security': z.array(SecurityRequirementObjectSchema).optional(),
1
+ import { z } from "zod";
2
+ import { OperationObjectSchemaWithoutCallbacks as OriginalOperationObjectSchemaWithoutCallbacks } from "../processed/operation-object-without-callbacks.js";
3
+ import { ExternalDocumentationObjectSchema } from "./external-documentation-object.js";
4
+ import { ParameterObjectSchema } from "./parameter-object.js";
5
+ import { ReferenceObjectSchema } from "./reference-object.js";
6
+ import { RequestBodyObjectSchema } from "./request-body-object.js";
7
+ import { SecurityRequirementObjectSchema } from "./security-requirement-object.js";
8
+ const OperationObjectSchemaWithoutCallbacks = OriginalOperationObjectSchemaWithoutCallbacks.extend({
9
+ /**
10
+ * External documentation object
11
+ */
12
+ "externalDocs": ExternalDocumentationObjectSchema.optional(),
13
+ /**
14
+ * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item,
15
+ * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A
16
+ * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link
17
+ * to parameters that are defined in the OpenAPI Object's components.parameters.
18
+ */
19
+ "parameters": z.union([ReferenceObjectSchema, ParameterObjectSchema]).array().optional(),
20
+ /**
21
+ * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the
22
+ * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the
23
+ * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined
24
+ * semantics and SHOULD be avoided if possible.
25
+ */
26
+ "requestBody": z.union([ReferenceObjectSchema, RequestBodyObjectSchema]).optional(),
27
+ /**
28
+ * A declaration of which security mechanisms can be used across the API. The list of
29
+ * values includes alternative security requirement objects that can be used. Only
30
+ * one of the security requirement objects need to be satisfied to authorize a request.
31
+ * Individual operations can override this definition. To make security optional, an empty
32
+ * security requirement ({}) can be included in the array.
33
+ */
34
+ "security": z.array(SecurityRequirementObjectSchema).optional()
43
35
  });
44
-
45
- export { OperationObjectSchemaWithoutCallbacks };
36
+ export {
37
+ OperationObjectSchemaWithoutCallbacks
38
+ };
39
+ //# sourceMappingURL=operation-object-without-callbacks.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/operation-object-without-callbacks.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { OperationObjectSchemaWithoutCallbacks as OriginalOperationObjectSchemaWithoutCallbacks } from '../processed/operation-object-without-callbacks'\nimport { ExternalDocumentationObjectSchema } from './external-documentation-object'\nimport { ParameterObjectSchema } from './parameter-object'\nimport { ReferenceObjectSchema } from './reference-object'\nimport { RequestBodyObjectSchema } from './request-body-object'\nimport { SecurityRequirementObjectSchema } from './security-requirement-object'\n\n/**\n * Operation Object (without callbacks, used in callbacks)\n *\n * Describes a single API operation on a path.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object\n */\nexport const OperationObjectSchemaWithoutCallbacks = OriginalOperationObjectSchemaWithoutCallbacks.extend({\n /**\n * External documentation object\n */\n 'externalDocs': ExternalDocumentationObjectSchema.optional(),\n /**\n * A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item,\n * the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A\n * unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link\n * to parameters that are defined in the OpenAPI Object's components.parameters.\n */\n 'parameters': z.union([ReferenceObjectSchema, ParameterObjectSchema]).array().optional(),\n /**\n * The request body applicable for this operation. The requestBody is fully supported in HTTP methods where the\n * HTTP 1.1 specification [RFC7231] has explicitly defined semantics for request bodies. In other cases where the\n * HTTP spec is vague (such as GET, HEAD and DELETE), requestBody is permitted but does not have well-defined\n * semantics and SHOULD be avoided if possible.\n */\n 'requestBody': z.union([ReferenceObjectSchema, RequestBodyObjectSchema]).optional(),\n /**\n * A declaration of which security mechanisms can be used across the API. The list of\n * values includes alternative security requirement objects that can be used. Only\n * one of the security requirement objects need to be satisfied to authorize a request.\n * Individual operations can override this definition. To make security optional, an empty\n * security requirement ({}) can be included in the array.\n */\n 'security': z.array(SecurityRequirementObjectSchema).optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yCAAyC,qDAAqD;AACvG,SAAS,yCAAyC;AAClD,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AACtC,SAAS,+BAA+B;AACxC,SAAS,uCAAuC;AASzC,MAAM,wCAAwC,8CAA8C,OAAO;AAAA;AAAA;AAAA;AAAA,EAIxG,gBAAgB,kCAAkC,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO3D,cAAc,EAAE,MAAM,CAAC,uBAAuB,qBAAqB,CAAC,EAAE,MAAM,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOvF,eAAe,EAAE,MAAM,CAAC,uBAAuB,uBAAuB,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQlF,YAAY,EAAE,MAAM,+BAA+B,EAAE,SAAS;AAChE,CAAC;",
6
+ "names": []
7
+ }
@@ -1,23 +1,17 @@
1
- import { z } from 'zod';
2
- import { CallbackObjectSchema } from './callback-object.js';
3
- import { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks.js';
4
- import { ReferenceObjectSchema } from './reference-object.js';
5
-
6
- /**
7
- * Operation Object
8
- *
9
- * Describes a single API operation on a path.
10
- *
11
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object
12
- */
1
+ import { z } from "zod";
2
+ import { CallbackObjectSchema } from "./callback-object.js";
3
+ import { OperationObjectSchemaWithoutCallbacks } from "./operation-object-without-callbacks.js";
4
+ import { ReferenceObjectSchema } from "./reference-object.js";
13
5
  const OperationObjectSchema = OperationObjectSchemaWithoutCallbacks.extend({
14
- /**
15
- * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a
16
- * Path Item Object that describes a set of requests that may be initiated by the API provider and the
17
- * expected responses. The key value used to identify the callback object is an expression, evaluated
18
- * at runtime, that identifies a URL to be used for the callback operation.
19
- */
20
- 'callbacks': z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(),
6
+ /**
7
+ * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a
8
+ * Path Item Object that describes a set of requests that may be initiated by the API provider and the
9
+ * expected responses. The key value used to identify the callback object is an expression, evaluated
10
+ * at runtime, that identifies a URL to be used for the callback operation.
11
+ */
12
+ "callbacks": z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional()
21
13
  });
22
-
23
- export { OperationObjectSchema };
14
+ export {
15
+ OperationObjectSchema
16
+ };
17
+ //# sourceMappingURL=operation-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/operation-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { CallbackObjectSchema } from './callback-object'\nimport { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks'\nimport { ReferenceObjectSchema } from './reference-object'\n\ntype OperationObject = z.infer<typeof OperationObjectSchemaWithoutCallbacks> & {\n callbacks?: Record<string, z.infer<typeof ReferenceObjectSchema> | z.infer<typeof CallbackObjectSchema>>\n}\n\n/**\n * Operation Object\n *\n * Describes a single API operation on a path.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#operation-object\n */\nexport const OperationObjectSchema: z.ZodType<OperationObject> = OperationObjectSchemaWithoutCallbacks.extend({\n /**\n * A map of possible out-of-band callbacks related to the parent operation. Each value in the map is a\n * Path Item Object that describes a set of requests that may be initiated by the API provider and the\n * expected responses. The key value used to identify the callback object is an expression, evaluated\n * at runtime, that identifies a URL to be used for the callback operation.\n */\n 'callbacks': z.record(z.string(), z.union([ReferenceObjectSchema, CallbackObjectSchema])).optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,4BAA4B;AACrC,SAAS,6CAA6C;AACtD,SAAS,6BAA6B;AAa/B,MAAM,wBAAoD,sCAAsC,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAO5G,aAAa,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,oBAAoB,CAAC,CAAC,EAAE,SAAS;AACrG,CAAC;",
6
+ "names": []
7
+ }
@@ -1,31 +1,23 @@
1
- import { z } from 'zod';
2
- import { ParameterObjectSchema as ParameterObjectSchema$1 } from '../processed/parameter-object.js';
3
- import { ExampleObjectSchema } from './example-object.js';
4
- import { MediaTypeObjectSchema } from './media-type-object.js';
5
- import { ReferenceObjectSchema } from './reference-object.js';
6
-
7
- /**
8
- * Parameter Object
9
- *
10
- * Describes a single operation parameter.
11
- *
12
- * A unique parameter is defined by a combination of a name and location.
13
- *
14
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object
15
- */
16
- const ParameterObjectSchema = ParameterObjectSchema$1.extend({
17
- /**
18
- * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as
19
- * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore,
20
- * if referencing a schema that contains an example, the examples value SHALL override the example provided by the
21
- * schema.
22
- **/
23
- examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),
24
- /**
25
- * A map containing the representations for the parameter. The key is the media type and the value describes it.
26
- * The map MUST only contain one entry.
27
- **/
28
- content: z.record(z.string(), MediaTypeObjectSchema).optional(),
1
+ import { z } from "zod";
2
+ import { ParameterObjectSchema as OriginalParameterObjectSchema } from "../processed/parameter-object.js";
3
+ import { ExampleObjectSchema } from "./example-object.js";
4
+ import { MediaTypeObjectSchema } from "./media-type-object.js";
5
+ import { ReferenceObjectSchema } from "./reference-object.js";
6
+ const ParameterObjectSchema = OriginalParameterObjectSchema.extend({
7
+ /**
8
+ * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as
9
+ * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore,
10
+ * if referencing a schema that contains an example, the examples value SHALL override the example provided by the
11
+ * schema.
12
+ **/
13
+ examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),
14
+ /**
15
+ * A map containing the representations for the parameter. The key is the media type and the value describes it.
16
+ * The map MUST only contain one entry.
17
+ **/
18
+ content: z.record(z.string(), MediaTypeObjectSchema).optional()
29
19
  });
30
-
31
- export { ParameterObjectSchema };
20
+ export {
21
+ ParameterObjectSchema
22
+ };
23
+ //# sourceMappingURL=parameter-object.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/parameter-object.ts"],
4
+ "sourcesContent": ["import { z } from 'zod'\nimport { ParameterObjectSchema as OriginalParameterObjectSchema } from '../processed/parameter-object'\nimport { ExampleObjectSchema } from './example-object'\nimport { MediaTypeObjectSchema } from './media-type-object'\nimport { ReferenceObjectSchema } from './reference-object'\n\n/**\n * Parameter Object\n *\n * Describes a single operation parameter.\n *\n * A unique parameter is defined by a combination of a name and location.\n *\n * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#parameter-object\n */\nexport const ParameterObjectSchema = OriginalParameterObjectSchema.extend({\n /**\n * Examples of the parameter's potential value. Each example SHOULD contain a value in the correct format as\n * specified in the parameter encoding. The examples field is mutually exclusive of the example field. Furthermore,\n * if referencing a schema that contains an example, the examples value SHALL override the example provided by the\n * schema.\n **/\n examples: z.record(z.string(), z.union([ReferenceObjectSchema, ExampleObjectSchema])).optional(),\n /**\n * A map containing the representations for the parameter. The key is the media type and the value describes it.\n * The map MUST only contain one entry.\n **/\n content: z.record(z.string(), MediaTypeObjectSchema).optional(),\n})\n"],
5
+ "mappings": "AAAA,SAAS,SAAS;AAClB,SAAS,yBAAyB,qCAAqC;AACvE,SAAS,2BAA2B;AACpC,SAAS,6BAA6B;AACtC,SAAS,6BAA6B;AAW/B,MAAM,wBAAwB,8BAA8B,OAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOxE,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,MAAM,CAAC,uBAAuB,mBAAmB,CAAC,CAAC,EAAE,SAAS;AAAA;AAAA;AAAA;AAAA;AAAA,EAK/F,SAAS,EAAE,OAAO,EAAE,OAAO,GAAG,qBAAqB,EAAE,SAAS;AAChE,CAAC;",
6
+ "names": []
7
+ }
@@ -1,48 +1,40 @@
1
- import { BasePathItemObjectSchema } from './base-path-item-object.js';
2
- import { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks.js';
3
-
4
- /**
5
- * Path Item Object (without callbacks)
6
- *
7
- * Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path
8
- * itself is still exposed to the documentation viewer but they will not know which operations and parameters are
9
- * available.
10
- *
11
- * @see https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#path-item-object
12
- */
1
+ import { BasePathItemObjectSchema } from "./base-path-item-object.js";
2
+ import { OperationObjectSchemaWithoutCallbacks } from "./operation-object-without-callbacks.js";
13
3
  const PathItemObjectSchemaWithoutCallbacks = BasePathItemObjectSchema.extend({
14
- /**
15
- * A definition of a GET operation on this path.
16
- */
17
- get: OperationObjectSchemaWithoutCallbacks.optional(),
18
- /**
19
- * A definition of a PUT operation on this path.
20
- */
21
- put: OperationObjectSchemaWithoutCallbacks.optional(),
22
- /**
23
- * A definition of a POST operation on this path.
24
- */
25
- post: OperationObjectSchemaWithoutCallbacks.optional(),
26
- /**
27
- * A definition of a DELETE operation on this path.
28
- */
29
- delete: OperationObjectSchemaWithoutCallbacks.optional(),
30
- /**
31
- * A definition of a OPTIONS operation on this path.
32
- */
33
- options: OperationObjectSchemaWithoutCallbacks.optional(),
34
- /**
35
- * A definition of a HEAD operation on this path.
36
- */
37
- head: OperationObjectSchemaWithoutCallbacks.optional(),
38
- /**
39
- * A definition of a PATCH operation on this path.
40
- */
41
- patch: OperationObjectSchemaWithoutCallbacks.optional(),
42
- /**
43
- * A definition of a TRACE operation on this path.
44
- */
45
- trace: OperationObjectSchemaWithoutCallbacks.optional(),
4
+ /**
5
+ * A definition of a GET operation on this path.
6
+ */
7
+ get: OperationObjectSchemaWithoutCallbacks.optional(),
8
+ /**
9
+ * A definition of a PUT operation on this path.
10
+ */
11
+ put: OperationObjectSchemaWithoutCallbacks.optional(),
12
+ /**
13
+ * A definition of a POST operation on this path.
14
+ */
15
+ post: OperationObjectSchemaWithoutCallbacks.optional(),
16
+ /**
17
+ * A definition of a DELETE operation on this path.
18
+ */
19
+ delete: OperationObjectSchemaWithoutCallbacks.optional(),
20
+ /**
21
+ * A definition of a OPTIONS operation on this path.
22
+ */
23
+ options: OperationObjectSchemaWithoutCallbacks.optional(),
24
+ /**
25
+ * A definition of a HEAD operation on this path.
26
+ */
27
+ head: OperationObjectSchemaWithoutCallbacks.optional(),
28
+ /**
29
+ * A definition of a PATCH operation on this path.
30
+ */
31
+ patch: OperationObjectSchemaWithoutCallbacks.optional(),
32
+ /**
33
+ * A definition of a TRACE operation on this path.
34
+ */
35
+ trace: OperationObjectSchemaWithoutCallbacks.optional()
46
36
  });
47
-
48
- export { PathItemObjectSchemaWithoutCallbacks };
37
+ export {
38
+ PathItemObjectSchemaWithoutCallbacks
39
+ };
40
+ //# sourceMappingURL=path-item-object-without-callbacks.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../../../src/schemas/3.1/unprocessed/path-item-object-without-callbacks.ts"],
4
+ "sourcesContent": ["import type { z } from 'zod'\nimport { BasePathItemObjectSchema } from './base-path-item-object'\nimport { OperationObjectSchemaWithoutCallbacks } from './operation-object-without-callbacks'\n\ntype PathItemObjectSchemaWithoutCallbacks = z.infer<typeof BasePathItemObjectSchema> & {\n get?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n put?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n post?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n delete?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n options?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n head?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n patch?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n trace?: z.infer<typeof OperationObjectSchemaWithoutCallbacks>\n}\n\n/**\n * Path Item Object (without callbacks)\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 PathItemObjectSchemaWithoutCallbacks: z.ZodType<PathItemObjectSchemaWithoutCallbacks> =\n BasePathItemObjectSchema.extend({\n /**\n * A definition of a GET operation on this path.\n */\n get: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a PUT operation on this path.\n */\n put: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a POST operation on this path.\n */\n post: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a DELETE operation on this path.\n */\n delete: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a OPTIONS operation on this path.\n */\n options: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a HEAD operation on this path.\n */\n head: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a PATCH operation on this path.\n */\n patch: OperationObjectSchemaWithoutCallbacks.optional(),\n /**\n * A definition of a TRACE operation on this path.\n */\n trace: OperationObjectSchemaWithoutCallbacks.optional(),\n })\n"],
5
+ "mappings": "AACA,SAAS,gCAAgC;AACzC,SAAS,6CAA6C;AAsB/C,MAAM,uCACX,yBAAyB,OAAO;AAAA;AAAA;AAAA;AAAA,EAI9B,KAAK,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpD,KAAK,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIpD,MAAM,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrD,QAAQ,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIvD,SAAS,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIxD,MAAM,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAIrD,OAAO,sCAAsC,SAAS;AAAA;AAAA;AAAA;AAAA,EAItD,OAAO,sCAAsC,SAAS;AACxD,CAAC;",
6
+ "names": []
7
+ }