@kubb/agent 4.33.2 → 4.33.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 (412) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +13 -7
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/node_modules/@babel/runtime/package.json +1 -1
  5. package/.output/server/node_modules/@readme/openapi-parser/package.json +3 -3
  6. package/.output/server/node_modules/@redocly/config/lib/asyncapi-config-schema.js +53 -0
  7. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +2 -0
  8. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +2 -1
  9. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +7 -4
  10. package/.output/server/node_modules/@redocly/config/package.json +2 -2
  11. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +54 -1
  12. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +54 -1
  13. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +1 -1
  14. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +1 -1
  15. package/.output/server/node_modules/@redocly/openapi-core/package.json +2 -2
  16. package/.output/server/node_modules/ajv/.runkit_example.js +23 -0
  17. package/.output/server/node_modules/ajv/LICENSE +22 -0
  18. package/.output/server/node_modules/ajv/README.md +207 -0
  19. package/.output/server/node_modules/ajv/dist/2019.d.ts +19 -0
  20. package/.output/server/node_modules/ajv/dist/2019.js +61 -0
  21. package/.output/server/node_modules/ajv/dist/2019.js.map +1 -0
  22. package/.output/server/node_modules/ajv/dist/2020.d.ts +19 -0
  23. package/.output/server/node_modules/ajv/dist/2020.js.map +1 -0
  24. package/.output/server/node_modules/ajv/dist/ajv.d.ts +18 -0
  25. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  26. package/.output/server/node_modules/ajv/dist/ajv.js.map +1 -0
  27. package/.output/server/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  28. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  29. package/.output/server/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  30. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  31. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  32. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  33. package/.output/server/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  34. package/.output/server/node_modules/ajv/dist/compile/errors.js.map +1 -0
  35. package/.output/server/node_modules/ajv/dist/compile/index.d.ts +80 -0
  36. package/.output/server/node_modules/ajv/dist/compile/index.js.map +1 -0
  37. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  38. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  39. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  40. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  41. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  42. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  43. package/.output/server/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  44. package/.output/server/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  45. package/.output/server/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  46. package/.output/server/node_modules/ajv/dist/compile/names.d.ts +20 -0
  47. package/.output/server/node_modules/ajv/dist/compile/names.js.map +1 -0
  48. package/.output/server/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  49. package/.output/server/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  50. package/.output/server/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  51. package/.output/server/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  52. package/.output/server/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  53. package/.output/server/node_modules/ajv/dist/compile/rules.js.map +1 -0
  54. package/.output/server/node_modules/ajv/dist/compile/util.d.ts +40 -0
  55. package/.output/server/node_modules/ajv/dist/compile/util.js.map +1 -0
  56. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  57. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  58. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  59. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  60. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  61. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  62. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  63. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  64. package/.output/server/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  65. package/.output/server/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  66. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  67. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  68. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  69. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  70. package/.output/server/node_modules/ajv/dist/core.d.ts +173 -0
  71. package/.output/server/node_modules/ajv/dist/core.js.map +1 -0
  72. package/.output/server/node_modules/ajv/dist/jtd.d.ts +47 -0
  73. package/.output/server/node_modules/ajv/dist/jtd.js +72 -0
  74. package/.output/server/node_modules/ajv/dist/jtd.js.map +1 -0
  75. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  76. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  77. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  78. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  79. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  80. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  81. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  82. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  83. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  84. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  85. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  86. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  87. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  88. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  89. package/.output/server/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  90. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  91. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  92. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  93. package/.output/server/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  94. package/.output/server/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  95. package/.output/server/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  96. package/.output/server/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  97. package/.output/server/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  98. package/.output/server/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  99. package/.output/server/node_modules/ajv/dist/runtime/quote.js +30 -0
  100. package/.output/server/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  101. package/.output/server/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  102. package/.output/server/node_modules/ajv/dist/runtime/re2.js +6 -0
  103. package/.output/server/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  104. package/.output/server/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  105. package/.output/server/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  106. package/.output/server/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  107. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  108. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  109. package/.output/server/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  110. package/.output/server/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  111. package/.output/server/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  112. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  113. package/.output/server/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  114. package/.output/server/node_modules/ajv/dist/standalone/index.js +90 -0
  115. package/.output/server/node_modules/ajv/dist/standalone/index.js.map +1 -0
  116. package/.output/server/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  117. package/.output/server/node_modules/ajv/dist/standalone/instance.js +35 -0
  118. package/.output/server/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  119. package/.output/server/node_modules/ajv/dist/types/index.d.ts +183 -0
  120. package/.output/server/node_modules/ajv/dist/types/index.js +3 -0
  121. package/.output/server/node_modules/ajv/dist/types/index.js.map +1 -0
  122. package/.output/server/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  123. package/.output/server/node_modules/ajv/dist/types/json-schema.js +3 -0
  124. package/.output/server/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  125. package/.output/server/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  126. package/.output/server/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  127. package/.output/server/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  128. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  129. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  130. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  131. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  132. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  133. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  134. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  135. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  136. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  137. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  138. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  139. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  140. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  141. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  142. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  143. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  144. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  145. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  146. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  147. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  148. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  149. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  150. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  151. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  152. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  153. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  154. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  155. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  156. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  157. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  158. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  159. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  160. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  161. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  162. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  163. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  164. package/.output/server/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  165. package/.output/server/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  166. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  167. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  168. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  169. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  170. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  171. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  172. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  173. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  174. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  175. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  176. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  177. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  178. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  179. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  180. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  181. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  182. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  183. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  184. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  185. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  186. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  187. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  188. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  189. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  190. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  191. package/.output/server/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  192. package/.output/server/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  193. package/.output/server/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  194. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  195. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  196. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  197. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  198. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  199. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  200. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  201. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  202. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  203. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  204. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  205. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  206. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  207. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  208. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  209. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  210. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  211. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  212. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  213. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  214. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  215. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  216. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  217. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  218. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  219. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  220. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  221. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  222. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  223. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  224. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  225. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  226. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  227. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  228. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  229. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  230. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  231. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  232. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  233. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  234. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  235. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  236. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  237. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  238. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  239. package/.output/server/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  240. package/.output/server/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  241. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  242. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  243. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  244. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  245. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  246. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  247. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  248. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  249. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  250. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  251. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  252. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  253. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  254. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  255. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  256. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  257. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  258. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  259. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  260. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  261. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  262. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  263. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  264. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  265. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  266. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  267. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  268. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  269. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  270. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  271. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  272. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  273. package/.output/server/node_modules/ajv/lib/2019.ts +81 -0
  274. package/.output/server/node_modules/ajv/lib/2020.ts +75 -0
  275. package/.output/server/node_modules/ajv/lib/ajv.ts +70 -0
  276. package/.output/server/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  277. package/.output/server/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  278. package/.output/server/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  279. package/.output/server/node_modules/ajv/lib/compile/errors.ts +184 -0
  280. package/.output/server/node_modules/ajv/lib/compile/index.ts +324 -0
  281. package/.output/server/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  282. package/.output/server/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  283. package/.output/server/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  284. package/.output/server/node_modules/ajv/lib/compile/names.ts +27 -0
  285. package/.output/server/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  286. package/.output/server/node_modules/ajv/lib/compile/resolve.ts +149 -0
  287. package/.output/server/node_modules/ajv/lib/compile/rules.ts +50 -0
  288. package/.output/server/node_modules/ajv/lib/compile/util.ts +213 -0
  289. package/.output/server/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  290. package/.output/server/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  291. package/.output/server/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  292. package/.output/server/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  293. package/.output/server/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  294. package/.output/server/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  295. package/.output/server/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  296. package/.output/server/node_modules/ajv/lib/core.ts +891 -0
  297. package/.output/server/node_modules/ajv/lib/jtd.ts +132 -0
  298. package/.output/server/node_modules/ajv/lib/refs/data.json +13 -0
  299. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  300. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  301. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  302. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  303. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  304. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  305. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  306. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  307. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  308. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  309. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  310. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  311. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  312. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  313. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  314. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  315. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  316. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  317. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  318. package/.output/server/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  319. package/.output/server/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  320. package/.output/server/node_modules/ajv/lib/runtime/equal.ts +7 -0
  321. package/.output/server/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  322. package/.output/server/node_modules/ajv/lib/runtime/quote.ts +31 -0
  323. package/.output/server/node_modules/ajv/lib/runtime/re2.ts +6 -0
  324. package/.output/server/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  325. package/.output/server/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  326. package/.output/server/node_modules/ajv/lib/runtime/uri.ts +6 -0
  327. package/.output/server/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  328. package/.output/server/node_modules/ajv/lib/standalone/index.ts +100 -0
  329. package/.output/server/node_modules/ajv/lib/standalone/instance.ts +36 -0
  330. package/.output/server/node_modules/ajv/lib/types/index.ts +244 -0
  331. package/.output/server/node_modules/ajv/lib/types/json-schema.ts +187 -0
  332. package/.output/server/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  333. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  334. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  335. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  336. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  337. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  338. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  339. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  340. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  341. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  342. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  343. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  344. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  345. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  346. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  347. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  348. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  349. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  350. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  351. package/.output/server/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  352. package/.output/server/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  353. package/.output/server/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  354. package/.output/server/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  355. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  356. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  357. package/.output/server/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  358. package/.output/server/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  359. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  360. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  361. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  362. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  363. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  364. package/.output/server/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  365. package/.output/server/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  366. package/.output/server/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  367. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  368. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  369. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  370. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  371. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  372. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  373. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  374. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  375. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  376. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  377. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  378. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  379. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  380. package/.output/server/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  381. package/.output/server/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  382. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  383. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  384. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  385. package/.output/server/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  386. package/.output/server/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  387. package/.output/server/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  388. package/.output/server/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  389. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  390. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  391. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  392. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  393. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  394. package/.output/server/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  395. package/.output/server/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  396. package/.output/server/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  397. package/.output/server/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  398. package/.output/server/node_modules/ajv/package.json +1 -1
  399. package/.output/server/node_modules/oas/dist/{chunk-SH63AK3O.js → chunk-5EP6HY2E.js} +159 -70
  400. package/.output/server/node_modules/oas/dist/{chunk-L3V5TF63.js → chunk-7MARUOFZ.js} +1 -9
  401. package/.output/server/node_modules/oas/dist/{chunk-BOVZLW7Q.js → chunk-HGVFNEKW.js} +517 -126
  402. package/.output/server/node_modules/oas/dist/{chunk-JMLIY2LK.js → chunk-LSH3X5NA.js} +124 -191
  403. package/.output/server/node_modules/oas/dist/{chunk-TTCGKV5E.js → chunk-S27IGTVG.js} +4 -1
  404. package/.output/server/node_modules/oas/dist/chunk-VA3NKXX7.js +9 -0
  405. package/.output/server/node_modules/oas/dist/index.js +6 -6
  406. package/.output/server/node_modules/oas/dist/types.js +1 -5
  407. package/.output/server/node_modules/oas/dist/utils.js +6 -6
  408. package/.output/server/node_modules/oas/package.json +8 -6
  409. package/.output/server/node_modules/oas-normalize/package.json +5 -5
  410. package/.output/server/package.json +7 -7
  411. package/package.json +16 -16
  412. package/.output/server/node_modules/oas/dist/chunk-LV26LN7C.js +0 -27
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  PARAMETER_ORDERING,
3
3
  getExtension
4
- } from "./chunk-TTCGKV5E.js";
4
+ } from "./chunk-S27IGTVG.js";
5
5
  import {
6
6
  isOpenAPI30,
7
7
  isRef,
8
8
  isSchema
9
- } from "./chunk-L3V5TF63.js";
9
+ } from "./chunk-7MARUOFZ.js";
10
10
 
11
11
  // src/lib/clone-object.ts
12
12
  function cloneObject(obj) {
@@ -87,17 +87,91 @@ function isPrimitive(val) {
87
87
 
88
88
  // src/lib/openapi-to-json-schema.ts
89
89
  import mergeJSONSchemaAllOf from "json-schema-merge-allof";
90
- import jsonpointer from "jsonpointer";
90
+ import jsonpointer2 from "jsonpointer";
91
91
  import removeUndefinedObjects from "remove-undefined-objects";
92
+
93
+ // src/lib/refs.ts
94
+ import jsonpointer from "jsonpointer";
95
+ function encodePointer(str) {
96
+ return str.replaceAll("~", "~0").replaceAll("/", "~1");
97
+ }
98
+ function decodePointer(str) {
99
+ return str.replace(/~([01])/g, (_, digit) => digit === "0" ? "~" : "/");
100
+ }
101
+ function findRef($ref, definition) {
102
+ let currRef = $ref.trim();
103
+ if (currRef === "") {
104
+ return false;
105
+ }
106
+ if (currRef.startsWith("#")) {
107
+ currRef = decodeURIComponent(currRef.substring(1));
108
+ } else {
109
+ throw new Error(`Could not find a definition for ${$ref}.`);
110
+ }
111
+ const current = jsonpointer.get(definition, currRef);
112
+ if (current === void 0) {
113
+ throw new Error(`Could not find a definition for ${$ref}.`);
114
+ }
115
+ return current;
116
+ }
117
+ function dereferenceRef(value, definition, seenRefs) {
118
+ if (value === void 0) {
119
+ return void 0;
120
+ }
121
+ if (isRef(value)) {
122
+ if (!definition) {
123
+ return value;
124
+ }
125
+ const ref = value.$ref;
126
+ if (seenRefs?.has(ref)) {
127
+ return value;
128
+ }
129
+ const localSeenRefs = seenRefs || /* @__PURE__ */ new Set();
130
+ localSeenRefs.add(ref);
131
+ try {
132
+ const dereferenced = findRef(ref, definition);
133
+ if (isRef(dereferenced)) {
134
+ return dereferenceRef(dereferenced, definition, localSeenRefs);
135
+ }
136
+ const refName = ref.split("/").pop();
137
+ return {
138
+ ...dereferenced,
139
+ // Because dereferencing will eliminate any lineage back to the original `$ref`,
140
+ // information that we might need at some point, we should preserve the original schema
141
+ // name through a custom extension.
142
+ "x-readme-ref-name": refName
143
+ };
144
+ } catch {
145
+ return value;
146
+ }
147
+ }
148
+ return value;
149
+ }
150
+ function getDereferencingOptions(circularRefs) {
151
+ return {
152
+ resolve: {
153
+ // We shouldn't be resolving external pointers at this point so just ignore them.
154
+ external: false
155
+ },
156
+ dereference: {
157
+ // If circular `$refs` are ignored they'll remain in the schema as `$ref: String`, otherwise
158
+ // `$ref` just won't exist. This, in tandem with `onCircular`, allows us to do easy and
159
+ // accumulate a list of circular references.
160
+ circular: "ignore",
161
+ onCircular: (path) => {
162
+ circularRefs.add(`#${path.split("#")[1]}`);
163
+ }
164
+ }
165
+ };
166
+ }
167
+
168
+ // src/lib/openapi-to-json-schema.ts
92
169
  var UNSUPPORTED_SCHEMA_PROPS = [
93
170
  "example",
94
171
  // OpenAPI supports `example` but we're mapping it to `examples` in this library.
95
172
  "externalDocs",
96
173
  "xml"
97
174
  ];
98
- function encodePointer(str) {
99
- return str.replace("~", "~0").replace("/", "~1");
100
- }
101
175
  function getSchemaVersionString(schema, api) {
102
176
  if (isOpenAPI30(api)) {
103
177
  return "http://json-schema.org/draft-04/schema#";
@@ -145,7 +219,7 @@ function searchForValueByPropAndPointer(property, pointer, schemas = []) {
145
219
  schema = schema.default;
146
220
  }
147
221
  try {
148
- foundValue = jsonpointer.get(schema, pointers[i]);
222
+ foundValue = jsonpointer2.get(schema, pointers[i]);
149
223
  } catch {
150
224
  }
151
225
  if (foundValue !== void 0) {
@@ -168,8 +242,8 @@ function toJSONSchema(data, opts = {}) {
168
242
  hideReadOnlyProperties,
169
243
  hideWriteOnlyProperties,
170
244
  isPolymorphicAllOfChild,
171
- prevDefaultSchemas,
172
- prevExampleSchemas,
245
+ prevDefaultSchemas = [],
246
+ prevExampleSchemas = [],
173
247
  refLogger,
174
248
  transformer
175
249
  } = {
@@ -187,9 +261,7 @@ function toJSONSchema(data, opts = {}) {
187
261
  };
188
262
  if (isRef(schema)) {
189
263
  refLogger(schema.$ref, "ref");
190
- return transformer({
191
- $ref: schema.$ref
192
- });
264
+ return transformer(schema);
193
265
  }
194
266
  if (isSchema(schema, isPolymorphicAllOfChild)) {
195
267
  if ("allOf" in schema && Array.isArray(schema.allOf)) {
@@ -207,6 +279,9 @@ function toJSONSchema(data, opts = {}) {
207
279
  // `merge-json-schema-allof` doesn't support merging enum arrays but since that's a
208
280
  // safe and simple operation as enums always contain primitives we can handle it
209
281
  // ourselves with a custom resolver.
282
+ //
283
+ // We unfortunately need to cast our return value as `any[]` because the internal types
284
+ // of `merge-json-schema-allof`'s `enum` resolver are not portable.
210
285
  enum: (obj) => {
211
286
  let arr = [];
212
287
  obj.forEach((e) => {
@@ -228,15 +303,16 @@ function toJSONSchema(data, opts = {}) {
228
303
  }
229
304
  if (isRef(schema)) {
230
305
  refLogger(schema.$ref, "ref");
231
- return transformer({
232
- $ref: schema.$ref
233
- });
306
+ return transformer(schema);
234
307
  }
235
308
  }
236
309
  ["anyOf", "oneOf"].forEach((polyType) => {
237
310
  if (polyType in schema && Array.isArray(schema[polyType])) {
238
311
  const discriminatorPropertyName = "discriminator" in schema && schema.discriminator && isObject(schema.discriminator) ? schema.discriminator.propertyName : void 0;
239
312
  schema[polyType].forEach((item, idx) => {
313
+ if (!schema[polyType]?.[idx]) {
314
+ return;
315
+ }
240
316
  const polyOptions = {
241
317
  addEnumsToDescriptions,
242
318
  currentLocation: `${currentLocation}/${idx}`,
@@ -297,7 +373,7 @@ function toJSONSchema(data, opts = {}) {
297
373
  } else {
298
374
  }
299
375
  }
300
- if ("type" in schema) {
376
+ if ("type" in schema && schema.type !== void 0) {
301
377
  if ("nullable" in schema) {
302
378
  if (schema.nullable) {
303
379
  if (Array.isArray(schema.type)) {
@@ -351,7 +427,7 @@ function toJSONSchema(data, opts = {}) {
351
427
  "required"
352
428
  ]
353
429
  }).forEach(([typeKey, keywords]) => {
354
- if (!schema.type.includes(typeKey)) {
430
+ if (!schema.type?.includes(typeKey)) {
355
431
  return;
356
432
  }
357
433
  const reducedSchema = removeUndefinedObjects({
@@ -363,10 +439,10 @@ function toJSONSchema(data, opts = {}) {
363
439
  title: schema.title ?? void 0,
364
440
  writeOnly: schema.writeOnly ?? void 0
365
441
  });
366
- keywords.forEach((t) => {
367
- if (t in schema) {
368
- reducedSchema[t] = schema[t];
369
- delete schema[t];
442
+ keywords.forEach((keyword) => {
443
+ if (keyword in schema) {
444
+ reducedSchema[keyword] = schema[keyword];
445
+ delete schema[keyword];
370
446
  }
371
447
  });
372
448
  nonPrimitives.push(reducedSchema);
@@ -375,7 +451,7 @@ function toJSONSchema(data, opts = {}) {
375
451
  if (schema.type.length === 1) {
376
452
  schema.type = schema.type.shift();
377
453
  }
378
- if (schema.type.length > 1) {
454
+ if (schema.type && schema.type.length > 1) {
379
455
  schema = { oneOf: [schema, ...nonPrimitives] };
380
456
  } else {
381
457
  schema = { oneOf: nonPrimitives };
@@ -402,10 +478,10 @@ function toJSONSchema(data, opts = {}) {
402
478
  delete schema.example;
403
479
  } else if ("examples" in schema) {
404
480
  let reshapedExamples = false;
405
- if (typeof schema.examples === "object" && !Array.isArray(schema.examples)) {
481
+ if (typeof schema.examples === "object" && schema.examples !== null && !Array.isArray(schema.examples)) {
406
482
  const examples = [];
407
483
  Object.keys(schema.examples).forEach((name) => {
408
- const example = schema.examples[name];
484
+ const example = schema.examples?.[name];
409
485
  if ("$ref" in example) {
410
486
  refLogger(example.$ref, "ref");
411
487
  } else if ("value" in example) {
@@ -442,7 +518,7 @@ function toJSONSchema(data, opts = {}) {
442
518
  }
443
519
  }
444
520
  if (hasSchemaType(schema, "array")) {
445
- if ("items" in schema) {
521
+ if ("items" in schema && schema.items !== void 0) {
446
522
  if (!Array.isArray(schema.items) && Object.keys(schema.items).length === 1 && isRef(schema.items)) {
447
523
  refLogger(schema.items.$ref, "ref");
448
524
  } else if (schema.items !== true) {
@@ -466,9 +542,9 @@ function toJSONSchema(data, opts = {}) {
466
542
  schema.items = {};
467
543
  }
468
544
  } else if (hasSchemaType(schema, "object")) {
469
- if ("properties" in schema) {
545
+ if ("properties" in schema && schema.properties !== void 0) {
470
546
  Object.keys(schema.properties).forEach((prop) => {
471
- if (Array.isArray(schema.properties[prop]) || typeof schema.properties[prop] === "object" && schema.properties[prop] !== null) {
547
+ if (Array.isArray(schema.properties?.[prop]) || typeof schema.properties?.[prop] === "object" && schema.properties?.[prop] !== null) {
472
548
  const newPropSchema = toJSONSchema(schema.properties[prop], {
473
549
  addEnumsToDescriptions,
474
550
  currentLocation: `${currentLocation}/${encodePointer(prop)}`,
@@ -531,7 +607,7 @@ function toJSONSchema(data, opts = {}) {
531
607
  }
532
608
  if (isSchema(schema, isPolymorphicAllOfChild) && globalDefaults && Object.keys(globalDefaults).length > 0 && currentLocation) {
533
609
  try {
534
- const userJwtDefault = jsonpointer.get(globalDefaults, currentLocation);
610
+ const userJwtDefault = jsonpointer2.get(globalDefaults, currentLocation);
535
611
  if (userJwtDefault) {
536
612
  schema.default = userJwtDefault;
537
613
  }
@@ -607,34 +683,34 @@ function getParametersAsJSONSchema(operation, api, opts) {
607
683
  }
608
684
  }
609
685
  function getDeprecated(schema, type) {
610
- if (opts.retainDeprecatedProperties) {
686
+ if (opts?.retainDeprecatedProperties) {
611
687
  return null;
612
688
  }
613
689
  if (!schema || !schema.properties) return null;
614
690
  const deprecatedBody = cloneObject(schema);
615
691
  const requiredParams = schema.required || [];
616
692
  const allDeprecatedProps = {};
617
- Object.keys(deprecatedBody.properties).forEach((key) => {
618
- const deprecatedProp = deprecatedBody.properties[key];
693
+ Object.keys(deprecatedBody.properties || {}).forEach((key) => {
694
+ const deprecatedProp = deprecatedBody.properties?.[key];
619
695
  if (deprecatedProp.deprecated && !requiredParams.includes(key) && !deprecatedProp.readOnly) {
620
696
  allDeprecatedProps[key] = deprecatedProp;
621
697
  }
622
698
  });
623
699
  deprecatedBody.properties = allDeprecatedProps;
624
700
  const deprecatedSchema = toJSONSchema(deprecatedBody, {
625
- globalDefaults: opts.globalDefaults,
626
- hideReadOnlyProperties: opts.hideReadOnlyProperties,
627
- hideWriteOnlyProperties: opts.hideWriteOnlyProperties,
701
+ globalDefaults: opts?.globalDefaults,
702
+ hideReadOnlyProperties: opts?.hideReadOnlyProperties,
703
+ hideWriteOnlyProperties: opts?.hideWriteOnlyProperties,
628
704
  prevExampleSchemas: [],
629
705
  refLogger,
630
- transformer: opts.transformer
706
+ transformer: opts?.transformer
631
707
  });
632
- if (Object.keys(deprecatedSchema).length === 0 || Object.keys(deprecatedSchema.properties).length === 0) {
708
+ if (Object.keys(deprecatedSchema).length === 0 || Object.keys(deprecatedSchema.properties || {}).length === 0) {
633
709
  return null;
634
710
  }
635
711
  Object.keys(schema.properties).forEach((key) => {
636
- if (schema.properties[key].deprecated && !requiredParams.includes(key)) {
637
- delete schema.properties[key];
712
+ if ((schema.properties?.[key]).deprecated && !requiredParams.includes(key)) {
713
+ delete schema.properties?.[key];
638
714
  }
639
715
  });
640
716
  return {
@@ -658,17 +734,22 @@ function getParametersAsJSONSchema(operation, api, opts) {
658
734
  prevExampleSchemas.push({ example: mediaTypeObject.example });
659
735
  } else if ("examples" in mediaTypeObject) {
660
736
  prevExampleSchemas.push({
661
- examples: Object.values(mediaTypeObject.examples).map((example) => example.value).filter((val) => val !== void 0)
737
+ examples: Object.values(mediaTypeObject.examples || {}).map((example) => {
738
+ if (isRef(example)) {
739
+ return void 0;
740
+ }
741
+ return example.value;
742
+ }).filter((item) => item !== void 0)
662
743
  });
663
744
  }
664
745
  const requestSchema = cloneObject(mediaTypeObject.schema);
665
746
  const cleanedSchema = toJSONSchema(requestSchema, {
666
- globalDefaults: opts.globalDefaults,
667
- hideReadOnlyProperties: opts.hideReadOnlyProperties,
668
- hideWriteOnlyProperties: opts.hideWriteOnlyProperties,
747
+ globalDefaults: opts?.globalDefaults,
748
+ hideReadOnlyProperties: opts?.hideReadOnlyProperties,
749
+ hideWriteOnlyProperties: opts?.hideWriteOnlyProperties,
669
750
  prevExampleSchemas,
670
751
  refLogger,
671
- transformer: opts.transformer
752
+ transformer: opts?.transformer
672
753
  });
673
754
  if (!Object.keys(cleanedSchema).length) {
674
755
  return null;
@@ -680,34 +761,39 @@ function getParametersAsJSONSchema(operation, api, opts) {
680
761
  ...cleanedSchema,
681
762
  $schema: getSchemaVersionString(cleanedSchema, api)
682
763
  },
683
- deprecatedProps: getDeprecated(cleanedSchema, type),
764
+ deprecatedProps: getDeprecated(cleanedSchema, type) ?? void 0,
684
765
  ...description ? { description } : {}
685
766
  };
686
767
  }
687
768
  function transformComponents() {
688
- if (!("components" in api)) {
769
+ if (!("components" in api) || !api.components) {
689
770
  return false;
690
771
  }
691
772
  const components2 = {
692
773
  ...Object.keys(api.components).map((componentType) => ({ [componentType]: {} })).reduce((prev, next) => Object.assign(prev, next), {})
693
774
  };
694
775
  Object.keys(api.components).forEach((componentType) => {
695
- if (typeof api.components[componentType] === "object" && !Array.isArray(api.components[componentType])) {
696
- Object.keys(api.components[componentType]).forEach((schemaName) => {
697
- const componentSchema = cloneObject(api.components[componentType][schemaName]);
698
- components2[componentType][schemaName] = toJSONSchema(componentSchema, {
699
- globalDefaults: opts.globalDefaults,
700
- hideReadOnlyProperties: opts.hideReadOnlyProperties,
701
- hideWriteOnlyProperties: opts.hideWriteOnlyProperties,
776
+ const cType = componentType;
777
+ if (typeof api.components?.[cType] === "object" && !Array.isArray(api.components[cType])) {
778
+ Object.keys(api.components?.[cType] || {}).forEach((schemaName) => {
779
+ const componentSchema = cloneObject(api.components?.[cType]?.[schemaName]);
780
+ if (!components2[cType]) {
781
+ components2[cType] = {};
782
+ }
783
+ components2[cType][schemaName] = toJSONSchema(componentSchema, {
784
+ globalDefaults: opts?.globalDefaults,
785
+ hideReadOnlyProperties: opts?.hideReadOnlyProperties,
786
+ hideWriteOnlyProperties: opts?.hideWriteOnlyProperties,
702
787
  refLogger,
703
- transformer: opts.transformer
788
+ transformer: opts?.transformer
704
789
  });
705
790
  });
706
791
  }
707
792
  });
708
793
  Object.keys(components2).forEach((componentType) => {
709
- if (!Object.keys(components2[componentType]).length) {
710
- delete components2[componentType];
794
+ const cType = componentType;
795
+ if (!Object.keys(components2?.[cType] || {}).length) {
796
+ delete components2?.[cType];
711
797
  }
712
798
  });
713
799
  return components2;
@@ -732,11 +818,11 @@ function getParametersAsJSONSchema(operation, api, opts) {
732
818
  if (current.deprecated) currentSchema.deprecated = current.deprecated;
733
819
  const interimSchema = toJSONSchema(currentSchema, {
734
820
  currentLocation: `/${current.name}`,
735
- globalDefaults: opts.globalDefaults,
736
- hideReadOnlyProperties: opts.hideReadOnlyProperties,
737
- hideWriteOnlyProperties: opts.hideWriteOnlyProperties,
821
+ globalDefaults: opts?.globalDefaults,
822
+ hideReadOnlyProperties: opts?.hideReadOnlyProperties,
823
+ hideWriteOnlyProperties: opts?.hideWriteOnlyProperties,
738
824
  refLogger,
739
- transformer: opts.transformer
825
+ transformer: opts?.transformer
740
826
  });
741
827
  schema2 = isPrimitive(interimSchema) ? interimSchema : {
742
828
  ...interimSchema,
@@ -759,11 +845,11 @@ function getParametersAsJSONSchema(operation, api, opts) {
759
845
  if (current.deprecated) currentSchema.deprecated = current.deprecated;
760
846
  const interimSchema = toJSONSchema(currentSchema, {
761
847
  currentLocation: `/${current.name}`,
762
- globalDefaults: opts.globalDefaults,
763
- hideReadOnlyProperties: opts.hideReadOnlyProperties,
764
- hideWriteOnlyProperties: opts.hideWriteOnlyProperties,
848
+ globalDefaults: opts?.globalDefaults,
849
+ hideReadOnlyProperties: opts?.hideReadOnlyProperties,
850
+ hideWriteOnlyProperties: opts?.hideWriteOnlyProperties,
765
851
  refLogger,
766
- transformer: opts.transformer
852
+ transformer: opts?.transformer
767
853
  });
768
854
  schema2 = isPrimitive(interimSchema) ? interimSchema : {
769
855
  ...interimSchema,
@@ -795,10 +881,10 @@ function getParametersAsJSONSchema(operation, api, opts) {
795
881
  type,
796
882
  label: types[type],
797
883
  schema,
798
- deprecatedProps: getDeprecated(schema, type)
884
+ deprecatedProps: getDeprecated(schema, type) ?? void 0
799
885
  };
800
- }).filter(Boolean);
801
- if (!opts.mergeIntoBodyAndMetadata) {
886
+ }).filter((item) => item !== null);
887
+ if (!opts?.mergeIntoBodyAndMetadata) {
802
888
  return transformed;
803
889
  } else if (!transformed.length) {
804
890
  return [];
@@ -816,7 +902,7 @@ function getParametersAsJSONSchema(operation, api, opts) {
816
902
  schema: {
817
903
  allOf: deprecatedProps
818
904
  }
819
- } : null
905
+ } : void 0
820
906
  }
821
907
  ];
822
908
  }
@@ -826,8 +912,8 @@ function getParametersAsJSONSchema(operation, api, opts) {
826
912
  const typeKeys = getExtension(PARAMETER_ORDERING, api, operation).map((k) => k.toLowerCase());
827
913
  typeKeys[typeKeys.indexOf("form")] = "formData";
828
914
  typeKeys.push("metadata");
829
- const jsonSchema = [transformRequestBody()].concat(...transformParameters()).filter(Boolean);
830
- const shouldIncludeComponents = hasCircularRefs || hasDiscriminatorMappingRefs && opts.includeDiscriminatorMappingRefs;
915
+ const jsonSchema = [transformRequestBody()].concat(...transformParameters()).filter((item) => item !== null);
916
+ const shouldIncludeComponents = hasCircularRefs || hasDiscriminatorMappingRefs && opts?.includeDiscriminatorMappingRefs;
831
917
  const components = shouldIncludeComponents ? transformComponents() : false;
832
918
  return jsonSchema.map((group) => {
833
919
  if (components && shouldIncludeComponents) {
@@ -842,6 +928,9 @@ function getParametersAsJSONSchema(operation, api, opts) {
842
928
 
843
929
  export {
844
930
  cloneObject,
931
+ decodePointer,
932
+ dereferenceRef,
933
+ getDereferencingOptions,
845
934
  isObject,
846
935
  isPrimitive,
847
936
  matches_mimetype_default,
@@ -851,4 +940,4 @@ export {
851
940
  types,
852
941
  getParametersAsJSONSchema
853
942
  };
854
- //# sourceMappingURL=chunk-SH63AK3O.js.map
943
+ //# sourceMappingURL=chunk-5EP6HY2E.js.map
@@ -9,13 +9,7 @@ function isRef(check) {
9
9
  }
10
10
  var isSwagger = assertSwagger;
11
11
  var isOpenAPI30 = assertOpenAPI30;
12
- function isOAS30(check) {
13
- return "openapi" in check && check.openapi !== void 0 && check.openapi.startsWith("3.0");
14
- }
15
12
  var isOpenAPI31 = assertOpenAPI31;
16
- function isOAS31(check) {
17
- return "openapi" in check && check.openapi !== void 0 && check.openapi.startsWith("3.1");
18
- }
19
13
  function isSchema(check, isPolymorphicAllOfChild = false) {
20
14
  return check.type !== void 0 || check.allOf !== void 0 || check.anyOf !== void 0 || check.oneOf !== void 0 || isPolymorphicAllOfChild;
21
15
  }
@@ -24,9 +18,7 @@ export {
24
18
  isRef,
25
19
  isSwagger,
26
20
  isOpenAPI30,
27
- isOAS30,
28
21
  isOpenAPI31,
29
- isOAS31,
30
22
  isSchema
31
23
  };
32
- //# sourceMappingURL=chunk-L3V5TF63.js.map
24
+ //# sourceMappingURL=chunk-7MARUOFZ.js.map