@kubb/agent 4.33.1 → 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 (790) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +29 -92
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +1 -1
  5. package/.output/server/index.mjs +1 -1
  6. package/.output/server/node_modules/.nitro/picomatch@4.0.3/index.js +17 -0
  7. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/constants.js +180 -0
  8. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/parse.js +1085 -0
  9. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/picomatch.js +341 -0
  10. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/scan.js +391 -0
  11. package/.output/server/node_modules/.nitro/picomatch@4.0.3/lib/utils.js +72 -0
  12. package/.output/server/node_modules/.nitro/picomatch@4.0.3/package.json +83 -0
  13. package/.output/server/node_modules/@babel/runtime/package.json +1 -1
  14. package/.output/server/node_modules/@readme/openapi-parser/package.json +3 -3
  15. package/.output/server/node_modules/@redocly/ajv/dist/2020.js +55 -0
  16. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
  28. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
  32. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
  33. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
  34. package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
  35. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  42. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  43. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  44. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  45. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  46. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
  47. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
  48. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
  49. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
  50. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
  51. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
  107. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  108. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  109. package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
  110. package/.output/server/node_modules/@redocly/config/lib/asyncapi-config-schema.js +53 -0
  111. package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
  112. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
  113. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
  114. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
  115. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
  116. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +56 -0
  117. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
  118. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
  119. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +683 -0
  120. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
  121. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
  122. package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
  123. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
  124. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
  125. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
  126. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +28 -0
  127. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
  128. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
  129. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
  130. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
  131. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
  132. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
  133. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
  134. package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
  135. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
  136. package/.output/server/node_modules/@redocly/config/package.json +28 -0
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +67 -0
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +67 -0
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
  342. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
  343. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
  344. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
  345. package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
  346. package/.output/server/node_modules/ajv/.runkit_example.js +23 -0
  347. package/.output/server/node_modules/ajv/LICENSE +22 -0
  348. package/.output/server/node_modules/ajv/README.md +207 -0
  349. package/.output/server/node_modules/ajv/dist/2019.d.ts +19 -0
  350. package/.output/server/node_modules/ajv/dist/2019.js +61 -0
  351. package/.output/server/node_modules/ajv/dist/2019.js.map +1 -0
  352. package/.output/server/node_modules/ajv/dist/2020.d.ts +19 -0
  353. package/.output/server/node_modules/ajv/dist/2020.js.map +1 -0
  354. package/.output/server/node_modules/ajv/dist/ajv.d.ts +18 -0
  355. package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
  356. package/.output/server/node_modules/ajv/dist/ajv.js.map +1 -0
  357. package/.output/server/node_modules/ajv/dist/compile/codegen/code.d.ts +40 -0
  358. package/.output/server/node_modules/ajv/dist/compile/codegen/code.js.map +1 -0
  359. package/.output/server/node_modules/ajv/dist/compile/codegen/index.d.ts +79 -0
  360. package/.output/server/node_modules/ajv/dist/compile/codegen/index.js.map +1 -0
  361. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.d.ts +79 -0
  362. package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js.map +1 -0
  363. package/.output/server/node_modules/ajv/dist/compile/errors.d.ts +13 -0
  364. package/.output/server/node_modules/ajv/dist/compile/errors.js.map +1 -0
  365. package/.output/server/node_modules/ajv/dist/compile/index.d.ts +80 -0
  366. package/.output/server/node_modules/ajv/dist/compile/index.js.map +1 -0
  367. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.d.ts +4 -0
  368. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  369. package/.output/server/node_modules/ajv/dist/compile/jtd/parse.js.map +1 -0
  370. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.d.ts +4 -0
  371. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js +229 -0
  372. package/.output/server/node_modules/ajv/dist/compile/jtd/serialize.js.map +1 -0
  373. package/.output/server/node_modules/ajv/dist/compile/jtd/types.d.ts +6 -0
  374. package/.output/server/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  375. package/.output/server/node_modules/ajv/dist/compile/jtd/types.js.map +1 -0
  376. package/.output/server/node_modules/ajv/dist/compile/names.d.ts +20 -0
  377. package/.output/server/node_modules/ajv/dist/compile/names.js.map +1 -0
  378. package/.output/server/node_modules/ajv/dist/compile/ref_error.d.ts +6 -0
  379. package/.output/server/node_modules/ajv/dist/compile/ref_error.js.map +1 -0
  380. package/.output/server/node_modules/ajv/dist/compile/resolve.d.ts +12 -0
  381. package/.output/server/node_modules/ajv/dist/compile/resolve.js.map +1 -0
  382. package/.output/server/node_modules/ajv/dist/compile/rules.d.ts +28 -0
  383. package/.output/server/node_modules/ajv/dist/compile/rules.js.map +1 -0
  384. package/.output/server/node_modules/ajv/dist/compile/util.d.ts +40 -0
  385. package/.output/server/node_modules/ajv/dist/compile/util.js.map +1 -0
  386. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.d.ts +6 -0
  387. package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js.map +1 -0
  388. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.d.ts +4 -0
  389. package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js.map +1 -0
  390. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.d.ts +17 -0
  391. package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js.map +1 -0
  392. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.d.ts +2 -0
  393. package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js.map +1 -0
  394. package/.output/server/node_modules/ajv/dist/compile/validate/index.d.ts +42 -0
  395. package/.output/server/node_modules/ajv/dist/compile/validate/index.js.map +1 -0
  396. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.d.ts +8 -0
  397. package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js.map +1 -0
  398. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.d.ts +47 -0
  399. package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js.map +1 -0
  400. package/.output/server/node_modules/ajv/dist/core.d.ts +173 -0
  401. package/.output/server/node_modules/ajv/dist/core.js.map +1 -0
  402. package/.output/server/node_modules/ajv/dist/jtd.d.ts +47 -0
  403. package/.output/server/node_modules/ajv/dist/jtd.js +72 -0
  404. package/.output/server/node_modules/ajv/dist/jtd.js.map +1 -0
  405. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.d.ts +2 -0
  406. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  407. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/index.js.map +1 -0
  408. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  409. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  410. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  411. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  412. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  413. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  414. package/.output/server/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  415. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.d.ts +2 -0
  416. package/.output/server/node_modules/ajv/dist/refs/json-schema-2020-12/index.js.map +1 -0
  417. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  418. package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  419. package/.output/server/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  420. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.d.ts +3 -0
  421. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  422. package/.output/server/node_modules/ajv/dist/refs/jtd-schema.js.map +1 -0
  423. package/.output/server/node_modules/ajv/dist/runtime/equal.d.ts +6 -0
  424. package/.output/server/node_modules/ajv/dist/runtime/equal.js.map +1 -0
  425. package/.output/server/node_modules/ajv/dist/runtime/parseJson.d.ts +18 -0
  426. package/.output/server/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  427. package/.output/server/node_modules/ajv/dist/runtime/parseJson.js.map +1 -0
  428. package/.output/server/node_modules/ajv/dist/runtime/quote.d.ts +5 -0
  429. package/.output/server/node_modules/ajv/dist/runtime/quote.js +30 -0
  430. package/.output/server/node_modules/ajv/dist/runtime/quote.js.map +1 -0
  431. package/.output/server/node_modules/ajv/dist/runtime/re2.d.ts +6 -0
  432. package/.output/server/node_modules/ajv/dist/runtime/re2.js +6 -0
  433. package/.output/server/node_modules/ajv/dist/runtime/re2.js.map +1 -0
  434. package/.output/server/node_modules/ajv/dist/runtime/timestamp.d.ts +5 -0
  435. package/.output/server/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  436. package/.output/server/node_modules/ajv/dist/runtime/timestamp.js.map +1 -0
  437. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.d.ts +5 -0
  438. package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js.map +1 -0
  439. package/.output/server/node_modules/ajv/dist/runtime/uri.d.ts +6 -0
  440. package/.output/server/node_modules/ajv/dist/runtime/uri.js.map +1 -0
  441. package/.output/server/node_modules/ajv/dist/runtime/validation_error.d.ts +7 -0
  442. package/.output/server/node_modules/ajv/dist/runtime/validation_error.js.map +1 -0
  443. package/.output/server/node_modules/ajv/dist/standalone/index.d.ts +6 -0
  444. package/.output/server/node_modules/ajv/dist/standalone/index.js +90 -0
  445. package/.output/server/node_modules/ajv/dist/standalone/index.js.map +1 -0
  446. package/.output/server/node_modules/ajv/dist/standalone/instance.d.ts +12 -0
  447. package/.output/server/node_modules/ajv/dist/standalone/instance.js +35 -0
  448. package/.output/server/node_modules/ajv/dist/standalone/instance.js.map +1 -0
  449. package/.output/server/node_modules/ajv/dist/types/index.d.ts +183 -0
  450. package/.output/server/node_modules/ajv/dist/types/index.js +3 -0
  451. package/.output/server/node_modules/ajv/dist/types/index.js.map +1 -0
  452. package/.output/server/node_modules/ajv/dist/types/json-schema.d.ts +125 -0
  453. package/.output/server/node_modules/ajv/dist/types/json-schema.js +3 -0
  454. package/.output/server/node_modules/ajv/dist/types/json-schema.js.map +1 -0
  455. package/.output/server/node_modules/ajv/dist/types/jtd-schema.d.ts +174 -0
  456. package/.output/server/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  457. package/.output/server/node_modules/ajv/dist/types/jtd-schema.js.map +1 -0
  458. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.d.ts +8 -0
  459. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js.map +1 -0
  460. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.d.ts +6 -0
  461. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js.map +1 -0
  462. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.d.ts +3 -0
  463. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js.map +1 -0
  464. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.d.ts +4 -0
  465. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js.map +1 -0
  466. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.d.ts +7 -0
  467. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js.map +1 -0
  468. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.d.ts +21 -0
  469. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js.map +1 -0
  470. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.d.ts +3 -0
  471. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js.map +1 -0
  472. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.d.ts +6 -0
  473. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js.map +1 -0
  474. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.d.ts +13 -0
  475. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js.map +1 -0
  476. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.d.ts +5 -0
  477. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js.map +1 -0
  478. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.d.ts +6 -0
  479. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js.map +1 -0
  480. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.d.ts +4 -0
  481. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js.map +1 -0
  482. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.d.ts +6 -0
  483. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js.map +1 -0
  484. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.d.ts +3 -0
  485. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js.map +1 -0
  486. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.d.ts +3 -0
  487. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js.map +1 -0
  488. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.d.ts +3 -0
  489. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js.map +1 -0
  490. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.d.ts +6 -0
  491. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js.map +1 -0
  492. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.d.ts +3 -0
  493. package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js.map +1 -0
  494. package/.output/server/node_modules/ajv/dist/vocabularies/code.d.ts +17 -0
  495. package/.output/server/node_modules/ajv/dist/vocabularies/code.js.map +1 -0
  496. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.d.ts +3 -0
  497. package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js.map +1 -0
  498. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.d.ts +3 -0
  499. package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js.map +1 -0
  500. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.d.ts +8 -0
  501. package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js.map +1 -0
  502. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.d.ts +5 -0
  503. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js.map +1 -0
  504. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.d.ts +10 -0
  505. package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js.map +1 -0
  506. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.d.ts +3 -0
  507. package/.output/server/node_modules/ajv/dist/vocabularies/draft2020.js.map +1 -0
  508. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.d.ts +3 -0
  509. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  510. package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js.map +1 -0
  511. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.d.ts +5 -0
  512. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js.map +1 -0
  513. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.d.ts +5 -0
  514. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js.map +1 -0
  515. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.d.ts +3 -0
  516. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/index.js.map +1 -0
  517. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.d.ts +3 -0
  518. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js.map +1 -0
  519. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.d.ts +3 -0
  520. package/.output/server/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js.map +1 -0
  521. package/.output/server/node_modules/ajv/dist/vocabularies/errors.d.ts +9 -0
  522. package/.output/server/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  523. package/.output/server/node_modules/ajv/dist/vocabularies/errors.js.map +1 -0
  524. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.d.ts +8 -0
  525. package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js.map +1 -0
  526. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.d.ts +3 -0
  527. package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js.map +1 -0
  528. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.d.ts +6 -0
  529. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  530. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/discriminator.js.map +1 -0
  531. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.d.ts +5 -0
  532. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  533. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/elements.js.map +1 -0
  534. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.d.ts +6 -0
  535. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  536. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/enum.js.map +1 -0
  537. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.d.ts +9 -0
  538. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  539. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/error.js.map +1 -0
  540. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.d.ts +10 -0
  541. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  542. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/index.js.map +1 -0
  543. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.d.ts +5 -0
  544. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  545. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/metadata.js.map +1 -0
  546. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.d.ts +4 -0
  547. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  548. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/nullable.js.map +1 -0
  549. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.d.ts +3 -0
  550. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  551. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js.map +1 -0
  552. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.d.ts +22 -0
  553. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  554. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/properties.js.map +1 -0
  555. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.d.ts +4 -0
  556. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  557. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/ref.js.map +1 -0
  558. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.d.ts +10 -0
  559. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  560. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/type.js.map +1 -0
  561. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.d.ts +3 -0
  562. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  563. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/union.js.map +1 -0
  564. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.d.ts +5 -0
  565. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  566. package/.output/server/node_modules/ajv/dist/vocabularies/jtd/values.js.map +1 -0
  567. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.d.ts +3 -0
  568. package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js.map +1 -0
  569. package/.output/server/node_modules/ajv/dist/vocabularies/next.d.ts +3 -0
  570. package/.output/server/node_modules/ajv/dist/vocabularies/next.js.map +1 -0
  571. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.d.ts +3 -0
  572. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/index.js.map +1 -0
  573. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.d.ts +6 -0
  574. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js.map +1 -0
  575. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.d.ts +6 -0
  576. package/.output/server/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js.map +1 -0
  577. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.d.ts +6 -0
  578. package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js.map +1 -0
  579. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.d.ts +5 -0
  580. package/.output/server/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js.map +1 -0
  581. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.d.ts +8 -0
  582. package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js.map +1 -0
  583. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.d.ts +16 -0
  584. package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js.map +1 -0
  585. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.d.ts +3 -0
  586. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitContains.js.map +1 -0
  587. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.d.ts +3 -0
  588. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js.map +1 -0
  589. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.d.ts +3 -0
  590. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js.map +1 -0
  591. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.d.ts +11 -0
  592. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js.map +1 -0
  593. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.d.ts +3 -0
  594. package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js.map +1 -0
  595. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.d.ts +8 -0
  596. package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js.map +1 -0
  597. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.d.ts +8 -0
  598. package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js.map +1 -0
  599. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.d.ts +8 -0
  600. package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js.map +1 -0
  601. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.d.ts +9 -0
  602. package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js.map +1 -0
  603. package/.output/server/node_modules/ajv/lib/2019.ts +81 -0
  604. package/.output/server/node_modules/ajv/lib/2020.ts +75 -0
  605. package/.output/server/node_modules/ajv/lib/ajv.ts +70 -0
  606. package/.output/server/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  607. package/.output/server/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  608. package/.output/server/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  609. package/.output/server/node_modules/ajv/lib/compile/errors.ts +184 -0
  610. package/.output/server/node_modules/ajv/lib/compile/index.ts +324 -0
  611. package/.output/server/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  612. package/.output/server/node_modules/ajv/lib/compile/jtd/serialize.ts +266 -0
  613. package/.output/server/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  614. package/.output/server/node_modules/ajv/lib/compile/names.ts +27 -0
  615. package/.output/server/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  616. package/.output/server/node_modules/ajv/lib/compile/resolve.ts +149 -0
  617. package/.output/server/node_modules/ajv/lib/compile/rules.ts +50 -0
  618. package/.output/server/node_modules/ajv/lib/compile/util.ts +213 -0
  619. package/.output/server/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  620. package/.output/server/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  621. package/.output/server/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  622. package/.output/server/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  623. package/.output/server/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  624. package/.output/server/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  625. package/.output/server/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  626. package/.output/server/node_modules/ajv/lib/core.ts +891 -0
  627. package/.output/server/node_modules/ajv/lib/jtd.ts +132 -0
  628. package/.output/server/node_modules/ajv/lib/refs/data.json +13 -0
  629. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  630. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  631. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  632. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  633. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  634. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  635. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  636. package/.output/server/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  637. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  638. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  639. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  640. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  641. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  642. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  643. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  644. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  645. package/.output/server/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  646. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  647. package/.output/server/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  648. package/.output/server/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  649. package/.output/server/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  650. package/.output/server/node_modules/ajv/lib/runtime/equal.ts +7 -0
  651. package/.output/server/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  652. package/.output/server/node_modules/ajv/lib/runtime/quote.ts +31 -0
  653. package/.output/server/node_modules/ajv/lib/runtime/re2.ts +6 -0
  654. package/.output/server/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  655. package/.output/server/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  656. package/.output/server/node_modules/ajv/lib/runtime/uri.ts +6 -0
  657. package/.output/server/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  658. package/.output/server/node_modules/ajv/lib/standalone/index.ts +100 -0
  659. package/.output/server/node_modules/ajv/lib/standalone/instance.ts +36 -0
  660. package/.output/server/node_modules/ajv/lib/types/index.ts +244 -0
  661. package/.output/server/node_modules/ajv/lib/types/json-schema.ts +187 -0
  662. package/.output/server/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  663. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  664. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  665. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  666. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  667. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  668. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  669. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  670. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  671. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  672. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  673. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  674. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  675. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  676. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  677. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  678. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  679. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  680. package/.output/server/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  681. package/.output/server/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  682. package/.output/server/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  683. package/.output/server/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  684. package/.output/server/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  685. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  686. package/.output/server/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  687. package/.output/server/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  688. package/.output/server/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  689. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  690. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  691. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  692. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  693. package/.output/server/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  694. package/.output/server/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  695. package/.output/server/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  696. package/.output/server/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  697. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  698. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  699. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  700. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  701. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  702. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  703. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  704. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  705. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  706. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  707. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  708. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  709. package/.output/server/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  710. package/.output/server/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  711. package/.output/server/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  712. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  713. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  714. package/.output/server/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  715. package/.output/server/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  716. package/.output/server/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  717. package/.output/server/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  718. package/.output/server/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  719. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  720. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  721. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  722. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  723. package/.output/server/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  724. package/.output/server/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  725. package/.output/server/node_modules/ajv/lib/vocabularies/validation/pattern.ts +28 -0
  726. package/.output/server/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  727. package/.output/server/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  728. package/.output/server/node_modules/ajv/package.json +1 -1
  729. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  730. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  731. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  732. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  733. package/.output/server/node_modules/colorette/index.js +82 -0
  734. package/.output/server/node_modules/colorette/package.json +39 -0
  735. package/.output/server/node_modules/js-levenshtein/index.js +105 -0
  736. package/.output/server/node_modules/js-levenshtein/package.json +49 -0
  737. package/.output/server/node_modules/oas/dist/{chunk-SH63AK3O.js → chunk-5EP6HY2E.js} +159 -70
  738. package/.output/server/node_modules/oas/dist/{chunk-L3V5TF63.js → chunk-7MARUOFZ.js} +1 -9
  739. package/.output/server/node_modules/oas/dist/{chunk-BOVZLW7Q.js → chunk-HGVFNEKW.js} +517 -126
  740. package/.output/server/node_modules/oas/dist/{chunk-JMLIY2LK.js → chunk-LSH3X5NA.js} +124 -191
  741. package/.output/server/node_modules/oas/dist/{chunk-TTCGKV5E.js → chunk-S27IGTVG.js} +4 -1
  742. package/.output/server/node_modules/oas/dist/chunk-VA3NKXX7.js +9 -0
  743. package/.output/server/node_modules/oas/dist/index.js +6 -6
  744. package/.output/server/node_modules/oas/dist/types.js +1 -5
  745. package/.output/server/node_modules/oas/dist/utils.js +6 -6
  746. package/.output/server/node_modules/oas/package.json +8 -6
  747. package/.output/server/node_modules/oas-normalize/package.json +5 -5
  748. package/.output/server/node_modules/pluralize/package.json +40 -0
  749. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  750. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
  751. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
  752. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
  753. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
  754. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
  755. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
  756. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
  757. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
  758. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
  759. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
  760. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
  761. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
  762. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
  763. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
  764. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
  765. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
  766. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
  767. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
  768. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
  769. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
  770. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
  771. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
  772. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
  773. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
  774. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
  775. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
  776. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
  777. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
  778. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
  779. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
  780. package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
  781. package/.output/server/package.json +13 -5
  782. package/package.json +16 -16
  783. package/.output/server/node_modules/oas/dist/chunk-LV26LN7C.js +0 -27
  784. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
  785. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
  786. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
  787. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
  788. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
  789. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
  790. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
@@ -1,22 +1,127 @@
1
1
  import {
2
- findSchemaDefinition,
3
2
  supportedMethods
4
- } from "./chunk-LV26LN7C.js";
3
+ } from "./chunk-VA3NKXX7.js";
5
4
  import {
6
5
  cloneObject,
6
+ dereferenceRef,
7
+ getDereferencingOptions,
7
8
  getParametersAsJSONSchema,
8
9
  getSchemaVersionString,
9
10
  isObject,
10
11
  isPrimitive,
11
12
  matches_mimetype_default,
12
13
  toJSONSchema
13
- } from "./chunk-SH63AK3O.js";
14
+ } from "./chunk-5EP6HY2E.js";
14
15
  import {
15
16
  getExtension
16
- } from "./chunk-TTCGKV5E.js";
17
+ } from "./chunk-S27IGTVG.js";
17
18
  import {
18
19
  isRef
19
- } from "./chunk-L3V5TF63.js";
20
+ } from "./chunk-7MARUOFZ.js";
21
+
22
+ // src/operation/index.ts
23
+ import { $RefParser } from "@apidevtools/json-schema-ref-parser";
24
+
25
+ // src/lib/build-discriminator-one-of.ts
26
+ function hasDiscriminatorWithoutPolymorphism(schema) {
27
+ if (!schema || typeof schema !== "object") return false;
28
+ if (!("discriminator" in schema)) return false;
29
+ if ("oneOf" in schema || "anyOf" in schema) return false;
30
+ return true;
31
+ }
32
+ function allOfReferencesSchema(schema, targetSchemaName) {
33
+ if (!schema || typeof schema !== "object") return false;
34
+ if (!("allOf" in schema) || !Array.isArray(schema.allOf)) return false;
35
+ return schema.allOf.some((item) => {
36
+ if (isRef(item)) {
37
+ const refParts = item.$ref.split("/");
38
+ const refSchemaName = refParts[refParts.length - 1];
39
+ return refSchemaName === targetSchemaName;
40
+ }
41
+ return false;
42
+ });
43
+ }
44
+ function findDiscriminatorChildren(api) {
45
+ const childrenMap = /* @__PURE__ */ new Map();
46
+ const invertedChildrenMap = /* @__PURE__ */ new Map();
47
+ if (!api?.components?.schemas || typeof api.components.schemas !== "object") {
48
+ return { children: childrenMap, inverted: invertedChildrenMap };
49
+ }
50
+ const schemas = api.components.schemas;
51
+ const schemaNames = Object.keys(schemas);
52
+ const discriminatorSchemas = schemaNames.filter((name) => {
53
+ return hasDiscriminatorWithoutPolymorphism(schemas[name]);
54
+ });
55
+ for (const baseName of discriminatorSchemas) {
56
+ const baseSchema = schemas[baseName];
57
+ const discriminator = baseSchema.discriminator;
58
+ let childSchemaNames;
59
+ if (discriminator.mapping && typeof discriminator.mapping === "object") {
60
+ const mappingRefs = Object.values(discriminator.mapping);
61
+ if (mappingRefs.length > 0) {
62
+ childSchemaNames = mappingRefs.map((ref) => {
63
+ const parts = ref.split("/");
64
+ return parts[parts.length - 1];
65
+ });
66
+ }
67
+ }
68
+ if (!childSchemaNames || childSchemaNames.length === 0) {
69
+ childSchemaNames = schemaNames.filter((name) => {
70
+ if (name === baseName) return false;
71
+ return allOfReferencesSchema(schemas[name], baseName);
72
+ });
73
+ }
74
+ if (childSchemaNames.length > 0) {
75
+ childrenMap.set(baseName, childSchemaNames);
76
+ }
77
+ }
78
+ for (const [key, values] of childrenMap) {
79
+ for (const value of values) {
80
+ if (invertedChildrenMap.has(value)) {
81
+ invertedChildrenMap.get(value)?.push(key);
82
+ } else {
83
+ invertedChildrenMap.set(value, [key]);
84
+ }
85
+ }
86
+ }
87
+ return { children: childrenMap, inverted: invertedChildrenMap };
88
+ }
89
+ function buildDiscriminatorOneOf(api, childrenMap) {
90
+ if (!api?.components?.schemas || typeof api.components.schemas !== "object") {
91
+ return;
92
+ } else if (childrenMap.size === 0) {
93
+ return;
94
+ }
95
+ for (const [schemaName, childNames] of childrenMap) {
96
+ const schema = api.components.schemas[schemaName];
97
+ if (!schema) continue;
98
+ const oneOf = [];
99
+ for (const childName of childNames) {
100
+ if (api.components.schemas[childName]) {
101
+ oneOf.push(cloneObject(api.components.schemas[childName]));
102
+ }
103
+ }
104
+ if (oneOf.length > 0) {
105
+ schema.oneOf = oneOf;
106
+ }
107
+ }
108
+ for (const [parentSchemaName, childNames] of childrenMap) {
109
+ for (const childName of childNames) {
110
+ const childSchema = api.components.schemas[childName];
111
+ if (!childSchema || !("allOf" in childSchema) || !Array.isArray(childSchema.allOf)) {
112
+ continue;
113
+ }
114
+ for (let i = 0; i < childSchema.allOf.length; i++) {
115
+ const item = childSchema.allOf[i];
116
+ if (item && typeof item === "object" && "x-readme-ref-name" in item && item["x-readme-ref-name"] === parentSchemaName && "oneOf" in item) {
117
+ const clonedItem = cloneObject(item);
118
+ delete clonedItem.oneOf;
119
+ childSchema.allOf[i] = clonedItem;
120
+ }
121
+ }
122
+ }
123
+ }
124
+ }
20
125
 
21
126
  // src/operation/lib/dedupe-common-parameters.ts
22
127
  function dedupeCommonParameters(parameters, commonParameters) {
@@ -251,7 +356,7 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, opts = {}) {
251
356
  ret.description = description;
252
357
  }
253
358
  return ret;
254
- }).filter(Boolean);
359
+ }).filter((item) => item !== false);
255
360
  if (multipleExamples.length) {
256
361
  return multipleExamples;
257
362
  }
@@ -271,15 +376,16 @@ function getMediaTypeExamples(mediaType, mediaTypeObject, opts = {}) {
271
376
  // src/operation/lib/get-response-examples.ts
272
377
  function getResponseExamples(operation) {
273
378
  return Object.keys(operation.responses || {}).map((status) => {
274
- const response = operation.responses[status];
379
+ const response = operation.responses?.[status];
275
380
  let onlyHeaders = false;
276
- if (isRef(response)) {
381
+ if (!response || isRef(response)) {
277
382
  return false;
278
383
  }
279
384
  const mediaTypes = {};
280
- (response.content ? Object.keys(response.content) : []).forEach((mediaType) => {
385
+ (response?.content ? Object.keys(response.content) : []).forEach((mediaType) => {
281
386
  if (!mediaType) return;
282
- const mediaTypeObject = response.content[mediaType];
387
+ const mediaTypeObject = response.content?.[mediaType];
388
+ if (!mediaTypeObject) return;
283
389
  const examples = getMediaTypeExamples(mediaType, mediaTypeObject, {
284
390
  includeReadOnly: true,
285
391
  includeWriteOnly: false
@@ -300,32 +406,35 @@ function getResponseExamples(operation) {
300
406
  mediaTypes,
301
407
  ...onlyHeaders ? { onlyHeaders } : {}
302
408
  };
303
- }).filter(Boolean);
409
+ }).filter((item) => item !== false);
304
410
  }
305
411
 
306
412
  // src/operation/lib/get-callback-examples.ts
307
413
  function getCallbackExamples(operation) {
308
- const ret = [];
309
- return ret.concat(
310
- ...Object.keys(operation.callbacks || {}).map((identifier) => {
311
- const callback = operation.callbacks[identifier];
312
- return [].concat(
313
- ...Object.keys(callback).map((expression) => {
314
- return Object.keys(callback[expression]).map((method) => {
315
- const pathItem = callback[expression];
316
- const example = getResponseExamples(pathItem[method]);
317
- if (example.length === 0) return false;
318
- return {
319
- identifier,
320
- expression,
321
- method,
322
- example
323
- };
324
- });
325
- })
326
- ).filter(Boolean);
327
- })
328
- );
414
+ if (!operation.callbacks) {
415
+ return [];
416
+ }
417
+ const examples = Object.keys(operation.callbacks).map((identifier) => {
418
+ const callback = operation.callbacks?.[identifier];
419
+ if (!callback || isRef(callback)) {
420
+ return [];
421
+ }
422
+ const items = Object.keys(callback).map((expression) => {
423
+ return Object.keys(callback[expression]).map((method) => {
424
+ const pathItem = callback[expression];
425
+ const example = getResponseExamples(pathItem[method]);
426
+ if (example.length === 0) return false;
427
+ return {
428
+ identifier,
429
+ expression,
430
+ method,
431
+ example
432
+ };
433
+ });
434
+ });
435
+ return items.flat().filter((item) => item !== false);
436
+ });
437
+ return examples.flat();
329
438
  }
330
439
 
331
440
  // src/operation/lib/get-example-groups.ts
@@ -341,7 +450,7 @@ function addMatchingResponseExamples(groups, operation) {
341
450
  status: example.status
342
451
  };
343
452
  if (!groups[mediaTypeExample.title].name) {
344
- groups[mediaTypeExample.title].name = mediaTypeExample.summary;
453
+ groups[mediaTypeExample.title].name = mediaTypeExample.summary || mediaTypeExample.title;
345
454
  }
346
455
  }
347
456
  });
@@ -362,13 +471,15 @@ function getExampleGroups(operation) {
362
471
  namelessCodeSampleCounts[sample.language] = 1;
363
472
  }
364
473
  const name = getDefaultName(sample, namelessCodeSampleCounts);
365
- if (groups[sample.correspondingExample]?.customCodeSamples?.length) {
366
- groups[sample.correspondingExample].customCodeSamples.push({ ...sample, name, originalIndex: i });
367
- } else if (sample.correspondingExample) {
368
- groups[sample.correspondingExample] = {
369
- name,
370
- customCodeSamples: [{ ...sample, name, originalIndex: i }]
371
- };
474
+ if (sample.correspondingExample) {
475
+ if (groups[sample.correspondingExample]?.customCodeSamples?.length) {
476
+ groups[sample.correspondingExample].customCodeSamples.push({ ...sample, name, originalIndex: i });
477
+ } else if (sample.correspondingExample) {
478
+ groups[sample.correspondingExample] = {
479
+ name,
480
+ customCodeSamples: [{ ...sample, name, originalIndex: i }]
481
+ };
482
+ }
372
483
  } else if (groups[noCorrespondingResponseKey]?.customCodeSamples?.length) {
373
484
  groups[noCorrespondingResponseKey].customCodeSamples.push({ ...sample, name, originalIndex: i });
374
485
  } else {
@@ -384,9 +495,12 @@ function getExampleGroups(operation) {
384
495
  }
385
496
  operation.getParameters().forEach((param) => {
386
497
  Object.entries(param.examples || {}).forEach(([exampleKey, paramExample]) => {
498
+ if (isRef(paramExample)) {
499
+ return;
500
+ }
387
501
  groups[exampleKey] = {
388
502
  ...groups[exampleKey],
389
- name: groups[exampleKey]?.name || paramExample.summary,
503
+ name: groups[exampleKey]?.name || paramExample.summary || exampleKey,
390
504
  request: {
391
505
  ...groups[exampleKey]?.request,
392
506
  [param.in]: {
@@ -403,7 +517,7 @@ function getExampleGroups(operation) {
403
517
  const mediaType = requestExample.mediaType === "application/x-www-form-urlencoded" ? "formData" : "body";
404
518
  groups[mediaTypeExample.title] = {
405
519
  ...groups[mediaTypeExample.title],
406
- name: groups[mediaTypeExample.title]?.name || mediaTypeExample.summary,
520
+ name: groups[mediaTypeExample.title]?.name || mediaTypeExample.summary || mediaTypeExample.title,
407
521
  request: {
408
522
  ...groups[mediaTypeExample.title]?.request,
409
523
  [mediaType]: mediaTypeExample.value
@@ -426,7 +540,7 @@ function getExampleGroups(operation) {
426
540
  // src/operation/lib/get-requestbody-examples.ts
427
541
  function getRequestBodyExamples(operation) {
428
542
  const requestBody = operation.requestBody;
429
- if (!requestBody || !requestBody.content) {
543
+ if (!requestBody || isRef(requestBody) || !requestBody.content) {
430
544
  return [];
431
545
  }
432
546
  return Object.keys(requestBody.content || {}).map((mediaType) => {
@@ -442,29 +556,36 @@ function getRequestBodyExamples(operation) {
442
556
  mediaType,
443
557
  examples
444
558
  };
445
- }).filter((x) => x !== false);
559
+ }).filter((item) => item !== false);
446
560
  }
447
561
 
448
562
  // src/operation/lib/get-response-as-json-schema.ts
449
563
  var isJSON = matches_mimetype_default.json;
450
564
  function buildHeadersSchema(response, opts) {
451
- const headers = response.headers;
452
565
  const headersSchema = {
453
566
  type: "object",
454
567
  properties: {}
455
568
  };
456
- Object.keys(headers).forEach((key) => {
457
- if (headers[key] && headers[key].schema) {
458
- const header = headers[key];
459
- headersSchema.properties[key] = toJSONSchema(header.schema, {
460
- addEnumsToDescriptions: true,
461
- transformer: opts.transformer
462
- });
463
- if (header.description) {
464
- headersSchema.properties[key].description = header.description;
569
+ if (response.headers) {
570
+ Object.keys(response.headers).forEach((key) => {
571
+ if (!response.headers?.[key] || isRef(response.headers?.[key])) {
572
+ return;
465
573
  }
466
- }
467
- });
574
+ if (response.headers[key].schema) {
575
+ const header = response.headers[key];
576
+ if (!header.schema || isRef(header.schema)) {
577
+ return;
578
+ }
579
+ headersSchema.properties[key] = toJSONSchema(header.schema, {
580
+ addEnumsToDescriptions: true,
581
+ transformer: opts?.transformer
582
+ });
583
+ if (header.description) {
584
+ headersSchema.properties[key].description = header.description;
585
+ }
586
+ }
587
+ });
588
+ }
468
589
  const headersWrapper = {
469
590
  schema: headersSchema,
470
591
  type: "object",
@@ -500,28 +621,43 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
500
621
  }
501
622
  if (preferredContentType) {
502
623
  if (contentTypes.includes(preferredContentType)) {
503
- return toJSONSchema(cloneObject(content[preferredContentType].schema), {
624
+ const schema2 = cloneObject(content[preferredContentType].schema);
625
+ if (!schema2) {
626
+ return null;
627
+ }
628
+ return toJSONSchema(schema2, {
504
629
  addEnumsToDescriptions: true,
505
630
  refLogger,
506
- transformer: opts.transformer
631
+ transformer: opts?.transformer
507
632
  });
508
633
  }
509
634
  return null;
510
635
  }
511
636
  for (let i = 0; i < contentTypes.length; i++) {
512
637
  if (isJSON(contentTypes[i])) {
513
- return toJSONSchema(cloneObject(content[contentTypes[i]].schema), {
638
+ const schema2 = cloneObject(content[contentTypes[i]].schema);
639
+ if (!schema2) {
640
+ return {};
641
+ }
642
+ return toJSONSchema(schema2, {
514
643
  addEnumsToDescriptions: true,
515
644
  refLogger,
516
- transformer: opts.transformer
645
+ transformer: opts?.transformer
517
646
  });
518
647
  }
519
648
  }
520
649
  const contentType = contentTypes.shift();
521
- return toJSONSchema(cloneObject(content[contentType].schema), {
650
+ if (!contentType) {
651
+ return {};
652
+ }
653
+ const schema = cloneObject(content[contentType].schema);
654
+ if (!schema) {
655
+ return {};
656
+ }
657
+ return toJSONSchema(schema, {
522
658
  addEnumsToDescriptions: true,
523
659
  refLogger,
524
- transformer: opts.transformer
660
+ transformer: opts?.transformer
525
661
  });
526
662
  }
527
663
  const foundSchema = getPreferredSchema(response.content, opts?.contentType);
@@ -545,8 +681,10 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
545
681
  schemaWrapper.description = response.description;
546
682
  }
547
683
  if (api.components && schemaWrapper.schema) {
548
- if (hasCircularRefs || hasDiscriminatorMappingRefs && opts.includeDiscriminatorMappingRefs) {
549
- schemaWrapper.schema.components = api.components;
684
+ if (hasCircularRefs || hasDiscriminatorMappingRefs && opts?.includeDiscriminatorMappingRefs) {
685
+ schemaWrapper.schema.components = cloneObject(
686
+ api.components
687
+ );
550
688
  }
551
689
  }
552
690
  jsonSchema.push(schemaWrapper);
@@ -559,7 +697,7 @@ function getResponseAsJSONSchema(operation, api, statusCode, opts) {
559
697
 
560
698
  // src/operation/lib/operationId.ts
561
699
  function hasOperationId(operation) {
562
- return Boolean("operationId" in operation && operation.operationId.length);
700
+ return Boolean("operationId" in operation && operation.operationId?.length);
563
701
  }
564
702
  function getOperationId(path, method, operation, opts = {}) {
565
703
  function sanitize(id) {
@@ -642,6 +780,17 @@ var Operation = class {
642
780
  * Flattened out arrays of both request and response headers that are utilized on this operation.
643
781
  */
644
782
  headers;
783
+ /**
784
+ * Internal storage array that the library utilizes to keep track of the times the
785
+ * {@see Operation.dereference} has been called so that if you initiate multiple promises they'll
786
+ * all end up returning the same data set once the initial dereference call completed.
787
+ */
788
+ promises;
789
+ /**
790
+ * Internal storage array that the library utilizes to keep track of its `dereferencing` state so
791
+ * it doesn't initiate multiple dereferencing processes.
792
+ */
793
+ dereferencing;
645
794
  constructor(api, path, method, operation) {
646
795
  this.schema = operation;
647
796
  this.api = api;
@@ -656,33 +805,62 @@ var Operation = class {
656
805
  request: [],
657
806
  response: []
658
807
  };
808
+ this.promises = [];
809
+ this.dereferencing = {
810
+ processing: false,
811
+ complete: false,
812
+ circularRefs: []
813
+ };
659
814
  }
815
+ /**
816
+ * Retrieve the `summary` for this operation.
817
+ *
818
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationsummary}
819
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-summary}
820
+ */
660
821
  getSummary() {
661
822
  if (this.schema?.summary && typeof this.schema.summary === "string") {
662
823
  return this.schema.summary;
663
- } else if (this.api.paths[this.path].summary && typeof this.api.paths[this.path].summary === "string") {
664
- return this.api.paths[this.path].summary;
824
+ }
825
+ const pathItem = this.api.paths?.[this.path];
826
+ if (pathItem?.summary && typeof pathItem.summary === "string") {
827
+ return pathItem.summary;
665
828
  }
666
829
  return void 0;
667
830
  }
831
+ /**
832
+ * Retrieve the `description` for this operation.
833
+ *
834
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationdescription}
835
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-description}
836
+ */
668
837
  getDescription() {
669
838
  if (this.schema?.description && typeof this.schema.description === "string") {
670
839
  return this.schema.description;
671
- } else if (this.api.paths[this.path].description && typeof this.api.paths[this.path].description === "string") {
672
- return this.api.paths[this.path].description;
840
+ }
841
+ const pathItem = this.api.paths?.[this.path];
842
+ if (pathItem?.description && typeof pathItem.description === "string") {
843
+ return pathItem.description;
673
844
  }
674
845
  return void 0;
675
846
  }
847
+ /**
848
+ * Retrieve the primary content type for this operation. If multiple exist, the first JSON-like
849
+ * type will be returned.
850
+ *
851
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-requestbodycontent}
852
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
853
+ */
676
854
  getContentType() {
677
855
  if (this.contentType) {
678
856
  return this.contentType;
679
857
  }
680
858
  let types = [];
681
859
  if (this.schema.requestBody) {
682
- if ("$ref" in this.schema.requestBody) {
683
- this.schema.requestBody = findSchemaDefinition(this.schema.requestBody.$ref, this.api);
860
+ if (isRef(this.schema.requestBody)) {
861
+ this.schema.requestBody = dereferenceRef(this.schema.requestBody, this.api);
684
862
  }
685
- if ("content" in this.schema.requestBody) {
863
+ if (this.schema.requestBody && "content" in this.schema.requestBody) {
686
864
  types = Object.keys(this.schema.requestBody.content);
687
865
  }
688
866
  }
@@ -697,21 +875,46 @@ var Operation = class {
697
875
  });
698
876
  return this.contentType;
699
877
  }
878
+ /**
879
+ * Checks if the current operation has a `x-www-form-urlencoded` content type payload.
880
+ *
881
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-requestbodycontent}
882
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
883
+ */
700
884
  isFormUrlEncoded() {
701
885
  return matches_mimetype_default.formUrlEncoded(this.getContentType());
702
886
  }
887
+ /**
888
+ * Checks if the current operation has a mutipart content type payload.
889
+ *
890
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-requestbodycontent}
891
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
892
+ */
703
893
  isMultipart() {
704
894
  return matches_mimetype_default.multipart(this.getContentType());
705
895
  }
896
+ /**
897
+ * Checks if the current operation has a JSON-like content type payload.
898
+ *
899
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-requestbodycontent}
900
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
901
+ */
706
902
  isJson() {
707
903
  return matches_mimetype_default.json(this.getContentType());
708
904
  }
905
+ /**
906
+ * Checks if the current operation has an XML content type payload.
907
+ *
908
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-requestbodycontent}
909
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-request-body-content}
910
+ */
709
911
  isXml() {
710
912
  return matches_mimetype_default.xml(this.getContentType());
711
913
  }
712
914
  /**
713
915
  * Checks if the current operation is a webhook or not.
714
916
  *
917
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#oas-webhooks}
715
918
  */
716
919
  isWebhook() {
717
920
  return this instanceof Webhook;
@@ -721,6 +924,8 @@ var Operation = class {
721
924
  * defined at the operation level, the securities for the entire API definition are returned
722
925
  * (with an empty array as a final fallback).
723
926
  *
927
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#security-requirement-object}
928
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#security-requirement-object}
724
929
  */
725
930
  getSecurity() {
726
931
  if (!this.api?.components?.securitySchemes || !Object.keys(this.api.components.securitySchemes).length) {
@@ -739,8 +944,7 @@ var Operation = class {
739
944
  * security schemes, rather than returning `false`.
740
945
  */
741
946
  getSecurityWithTypes(filterInvalid = false) {
742
- const securityRequirements = this.getSecurity();
743
- return securityRequirements.map((requirement) => {
947
+ return this.getSecurity().map((requirement) => {
744
948
  let keys;
745
949
  try {
746
950
  keys = Object.keys(requirement);
@@ -750,6 +954,9 @@ var Operation = class {
750
954
  const keysWithTypes = keys.map((key) => {
751
955
  let security;
752
956
  try {
957
+ if (!this.api.components?.securitySchemes?.[key] || isRef(this.api.components.securitySchemes[key])) {
958
+ return false;
959
+ }
753
960
  security = this.api.components.securitySchemes[key];
754
961
  } catch {
755
962
  return false;
@@ -789,8 +996,7 @@ var Operation = class {
789
996
  *
790
997
  */
791
998
  prepareSecurity() {
792
- const securitiesWithTypes = this.getSecurityWithTypes();
793
- return securitiesWithTypes.reduce(
999
+ return this.getSecurityWithTypes().reduce(
794
1000
  (prev, securities) => {
795
1001
  if (!securities) return prev;
796
1002
  securities.forEach((security) => {
@@ -807,12 +1013,17 @@ var Operation = class {
807
1013
  {}
808
1014
  );
809
1015
  }
1016
+ /**
1017
+ * Retrieve all of the headers, request and response, that are associated with this operation.
1018
+ *
1019
+ */
810
1020
  getHeaders() {
811
1021
  const security = this.prepareSecurity();
812
1022
  if (security.Header) {
813
1023
  this.headers.request = security.Header.map((h) => {
1024
+ if (!("name" in h)) return false;
814
1025
  return h.name;
815
- });
1026
+ }).filter((item) => item !== false);
816
1027
  }
817
1028
  if (security.Bearer || security.Basic || security.OAuth2) {
818
1029
  this.headers.request.push("Authorization");
@@ -822,30 +1033,38 @@ var Operation = class {
822
1033
  }
823
1034
  if (this.schema.parameters) {
824
1035
  this.headers.request = this.headers.request.concat(
825
- // Remove the reference object because we will have already dereferenced.
826
1036
  this.schema.parameters.map((p) => {
1037
+ if (isRef(p)) {
1038
+ return void 0;
1039
+ }
827
1040
  if (p.in && p.in === "header") return p.name;
828
1041
  return void 0;
829
- }).filter((p) => p)
1042
+ }).filter((item) => item !== void 0)
830
1043
  );
831
1044
  }
832
1045
  if (this.schema.responses) {
833
- this.headers.response = Object.keys(this.schema.responses).filter((r) => this.schema.responses[r].headers).map(
834
- (r) => (
835
- // Remove the reference object because we will have already dereferenced.
836
- Object.keys(this.schema.responses[r].headers)
837
- )
838
- ).reduce((a, b) => a.concat(b), []);
1046
+ this.headers.response = Object.keys(this.schema.responses).map((r) => {
1047
+ const response = this.schema.responses?.[r];
1048
+ if (!response || isRef(response)) {
1049
+ return [];
1050
+ }
1051
+ return response?.headers ? Object.keys(response.headers) : [];
1052
+ }).reduce((a, b) => a.concat(b), []);
839
1053
  }
840
1054
  if (!this.headers.request.includes("Content-Type") && this.schema.requestBody) {
841
- if (this.schema.requestBody.content && Object.keys(this.schema.requestBody.content)) {
1055
+ const requestBody = this.schema.requestBody;
1056
+ if (requestBody && !isRef(requestBody) && "content" in requestBody && Object.keys(requestBody.content)) {
842
1057
  this.headers.request.push("Content-Type");
843
1058
  }
844
1059
  }
845
1060
  if (this.schema.responses) {
846
- if (Object.keys(this.schema.responses).some(
847
- (response) => !!this.schema.responses[response].content
848
- )) {
1061
+ if (Object.keys(this.schema.responses).some((r) => {
1062
+ const response = this.schema.responses?.[r];
1063
+ if (!response || isRef(response)) {
1064
+ return false;
1065
+ }
1066
+ return response?.content && Object.keys(response.content).length > 0;
1067
+ })) {
849
1068
  if (!this.headers.request.includes("Accept")) this.headers.request.push("Accept");
850
1069
  if (!this.headers.response.includes("Content-Type")) this.headers.response.push("Content-Type");
851
1070
  }
@@ -853,17 +1072,21 @@ var Operation = class {
853
1072
  return this.headers;
854
1073
  }
855
1074
  /**
856
- * Determine if the operation has an `operationId` present in its schema. Note that if one is
857
- * present in the schema but is an empty string then this will return false.
1075
+ * Determine if this operation has an `operationId` present in its schema. Note that if one is
1076
+ * present in the schema but is an empty string then this will return `false`.
858
1077
  *
1078
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationid}
1079
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-id}
859
1080
  */
860
1081
  hasOperationId() {
861
1082
  return hasOperationId(this.schema);
862
1083
  }
863
1084
  /**
864
1085
  * Determine if an operation has an `operationId` present in its schema. Note that if one is
865
- * present in the schema but is an empty string then this will return false.
1086
+ * present in the schema but is an empty string then this will return `false`.
866
1087
  *
1088
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationid}
1089
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-id}
867
1090
  */
868
1091
  static hasOperationId(schema) {
869
1092
  return hasOperationId(schema);
@@ -872,6 +1095,8 @@ var Operation = class {
872
1095
  * Get an `operationId` for this operation. If one is not present (it's not required by the spec!)
873
1096
  * a hash of the path and method will be returned instead.
874
1097
  *
1098
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationid}
1099
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-id}
875
1100
  */
876
1101
  getOperationId(opts = {}) {
877
1102
  return getOperationId(this.path, this.method, this.schema, opts);
@@ -880,6 +1105,8 @@ var Operation = class {
880
1105
  * Get an `operationId` for an operation. If one is not present (it's not required by the spec!)
881
1106
  * a hash of the path and method will be returned instead.
882
1107
  *
1108
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationid}
1109
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-id}
883
1110
  */
884
1111
  static getOperationId(path, method, schema, opts = {}) {
885
1112
  return getOperationId(path, method, schema, opts);
@@ -893,7 +1120,7 @@ var Operation = class {
893
1120
  return [];
894
1121
  }
895
1122
  const oasTagMap = /* @__PURE__ */ new Map();
896
- if ("tags" in this.api) {
1123
+ if (Array.isArray(this.api?.tags)) {
897
1124
  this.api.tags.forEach((tag) => {
898
1125
  oasTagMap.set(tag.name, tag);
899
1126
  });
@@ -916,9 +1143,11 @@ var Operation = class {
916
1143
  /**
917
1144
  * Return is the operation is flagged as `deprecated` or not.
918
1145
  *
1146
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationdeprecated}
1147
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-deprecated}
919
1148
  */
920
1149
  isDeprecated() {
921
- return "deprecated" in this.schema ? this.schema.deprecated : false;
1150
+ return Boolean("deprecated" in this.schema ? this.schema.deprecated : false);
922
1151
  }
923
1152
  /**
924
1153
  * Determine if the operation has any (non-request body) parameters.
@@ -930,10 +1159,17 @@ var Operation = class {
930
1159
  /**
931
1160
  * Return the parameters (non-request body) on the operation.
932
1161
  *
1162
+ * @todo Add support for `ReferenceObject`
1163
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationparameters}
1164
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-parameters}
933
1165
  */
934
1166
  getParameters() {
935
- let parameters = this.schema?.parameters || [];
936
- const commonParams = this.api?.paths?.[this.path]?.parameters || [];
1167
+ let parameters = (this.schema?.parameters || []).filter(
1168
+ (param) => param && !isRef(param)
1169
+ );
1170
+ const commonParams = (this.api?.paths?.[this.path]?.parameters || []).filter(
1171
+ (param) => param && !isRef(param)
1172
+ );
937
1173
  if (commonParams.length) {
938
1174
  parameters = parameters.concat(dedupeCommonParameters(parameters, commonParams) || []);
939
1175
  }
@@ -942,6 +1178,8 @@ var Operation = class {
942
1178
  /**
943
1179
  * Determine if this operation has any required parameters.
944
1180
  *
1181
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationparameters}
1182
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-parameters}
945
1183
  */
946
1184
  hasRequiredParameters() {
947
1185
  return this.getParameters().some((param) => "required" in param && param.required);
@@ -983,6 +1221,8 @@ var Operation = class {
983
1221
  /**
984
1222
  * Determine if the operation has any request bodies.
985
1223
  *
1224
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#user-content-operationrequestbody}
1225
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#user-content-operation-request-body}
986
1226
  */
987
1227
  hasRequestBody() {
988
1228
  return !!this.schema.requestBody;
@@ -998,7 +1238,7 @@ var Operation = class {
998
1238
  return [];
999
1239
  }
1000
1240
  const requestBody = this.schema.requestBody;
1001
- if (isRef(requestBody)) {
1241
+ if (!requestBody || isRef(requestBody)) {
1002
1242
  return [];
1003
1243
  }
1004
1244
  return Object.keys(requestBody.content);
@@ -1006,19 +1246,25 @@ var Operation = class {
1006
1246
  /**
1007
1247
  * Determine if this operation has a required request body.
1008
1248
  *
1249
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#media-type-object}
1250
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#media-type-object}
1009
1251
  */
1010
1252
  hasRequiredRequestBody() {
1011
1253
  if (!this.hasRequestBody()) {
1012
1254
  return false;
1013
1255
  }
1014
1256
  const requestBody = this.schema.requestBody;
1015
- if (isRef(requestBody)) {
1257
+ if (!requestBody || isRef(requestBody)) {
1016
1258
  return false;
1017
1259
  }
1018
1260
  if (requestBody.required) {
1019
1261
  return true;
1020
1262
  }
1021
- return !!this.getParametersAsJSONSchema().filter((js) => ["body", "formData"].includes(js.type)).find((js) => js.schema && Array.isArray(js.schema.required) && js.schema.required.length);
1263
+ const parameters = this.getParametersAsJSONSchema();
1264
+ if (parameters === null) {
1265
+ return false;
1266
+ }
1267
+ return !!parameters.filter((js) => ["body", "formData"].includes(js.type)).find((js) => js.schema && Array.isArray(js.schema.required) && js.schema.required.length);
1022
1268
  }
1023
1269
  /**
1024
1270
  * Retrieve a specific request body content schema off this operation.
@@ -1037,7 +1283,7 @@ var Operation = class {
1037
1283
  return false;
1038
1284
  }
1039
1285
  const requestBody = this.schema.requestBody;
1040
- if (isRef(requestBody)) {
1286
+ if (!requestBody || isRef(requestBody)) {
1041
1287
  return false;
1042
1288
  }
1043
1289
  if (mediaType) {
@@ -1072,6 +1318,8 @@ var Operation = class {
1072
1318
  /**
1073
1319
  * Retrieve an array of request body examples that this operation has.
1074
1320
  *
1321
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#request-body-examples}
1322
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#request-body-examples}
1075
1323
  */
1076
1324
  getRequestBodyExamples() {
1077
1325
  const isRequestExampleValueDefined = typeof this.requestBodyExamples?.[0]?.examples?.[0].value !== "undefined";
@@ -1085,16 +1333,15 @@ var Operation = class {
1085
1333
  * Return a specific response out of the operation by a given HTTP status code.
1086
1334
  *
1087
1335
  * @param statusCode Status code to pull a response object for.
1336
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#response-object}
1337
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#response-object}
1088
1338
  */
1089
1339
  getResponseByStatusCode(statusCode) {
1090
1340
  if (!this.schema.responses) {
1091
1341
  return false;
1092
1342
  }
1093
- if (typeof this.schema.responses[statusCode] === "undefined") {
1094
- return false;
1095
- }
1096
1343
  const response = this.schema.responses[statusCode];
1097
- if (isRef(response)) {
1344
+ if (!response || isRef(response)) {
1098
1345
  return false;
1099
1346
  }
1100
1347
  return response;
@@ -1102,6 +1349,8 @@ var Operation = class {
1102
1349
  /**
1103
1350
  * Retrieve an array of response examples that this operation has.
1104
1351
  *
1352
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#response-object-examples}
1353
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.2.md#response-object-examples}
1105
1354
  */
1106
1355
  getResponseExamples() {
1107
1356
  if (this.responseExamples) {
@@ -1113,9 +1362,11 @@ var Operation = class {
1113
1362
  /**
1114
1363
  * Determine if the operation has callbacks.
1115
1364
  *
1365
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object}
1366
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#callback-object}
1116
1367
  */
1117
1368
  hasCallbacks() {
1118
- return !!this.schema.callbacks;
1369
+ return Boolean(this.schema.callbacks);
1119
1370
  }
1120
1371
  /**
1121
1372
  * Retrieve a specific callback.
@@ -1128,36 +1379,51 @@ var Operation = class {
1128
1379
  */
1129
1380
  getCallback(identifier, expression, method) {
1130
1381
  if (!this.schema.callbacks) return false;
1131
- const callback = this.schema.callbacks[identifier] ? this.schema.callbacks[identifier][expression] : false;
1132
- if (!callback || !callback[method]) return false;
1382
+ const callbackObj = this.schema.callbacks[identifier];
1383
+ if (!callbackObj || isRef(callbackObj)) {
1384
+ return false;
1385
+ }
1386
+ const callback = callbackObj[expression];
1387
+ if (!callback || isRef(callback) || !callback[method]) {
1388
+ return false;
1389
+ }
1133
1390
  return new Callback(this.api, expression, method, callback[method], identifier, callback);
1134
1391
  }
1135
1392
  /**
1136
1393
  * Retrieve an array of operations created from each callback.
1137
1394
  *
1395
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object}
1396
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#callback-object}
1138
1397
  */
1139
1398
  getCallbacks() {
1140
- const callbackOperations = [];
1141
- if (!this.hasCallbacks()) return false;
1142
- Object.keys(this.schema.callbacks).forEach((callback) => {
1143
- Object.keys(this.schema.callbacks[callback]).forEach((expression) => {
1144
- const cb = this.schema.callbacks[callback];
1145
- if (!isRef(cb)) {
1146
- const exp = cb[expression];
1147
- if (!isRef(exp)) {
1148
- Object.keys(exp).forEach((method) => {
1149
- if (!supportedMethods.includes(method)) return;
1150
- callbackOperations.push(this.getCallback(callback, expression, method));
1151
- });
1152
- }
1399
+ if (!this.hasCallbacks()) return [];
1400
+ const callbacks = [];
1401
+ Object.keys(this.schema.callbacks || {}).forEach((callback) => {
1402
+ const cb = this.schema.callbacks?.[callback];
1403
+ if (!cb || isRef(cb)) {
1404
+ return;
1405
+ }
1406
+ Object.keys(cb).forEach((expression) => {
1407
+ const exp = cb[expression];
1408
+ if (!exp || isRef(exp)) {
1409
+ return;
1153
1410
  }
1411
+ Object.keys(exp).forEach((method) => {
1412
+ if (!supportedMethods.includes(method)) return;
1413
+ const found = this.getCallback(callback, expression, method);
1414
+ if (found) {
1415
+ callbacks.push(found);
1416
+ }
1417
+ });
1154
1418
  });
1155
1419
  });
1156
- return callbackOperations;
1420
+ return callbacks;
1157
1421
  }
1158
1422
  /**
1159
1423
  * Retrieve an array of callback examples that this operation has.
1160
1424
  *
1425
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.0.3.md#callback-object}
1426
+ * @see {@link https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#callback-object}
1161
1427
  */
1162
1428
  getCallbackExamples() {
1163
1429
  if (this.callbackExamples) {
@@ -1205,6 +1471,121 @@ var Operation = class {
1205
1471
  this.exampleGroups = groups;
1206
1472
  return groups;
1207
1473
  }
1474
+ /**
1475
+ * Dereference the current operation schema so it can be parsed free of worries of `$ref` schemas
1476
+ * and circular structures.
1477
+ *
1478
+ */
1479
+ async dereference(opts) {
1480
+ if (this.dereferencing.complete) {
1481
+ return Promise.resolve(true);
1482
+ }
1483
+ if (this.dereferencing.processing) {
1484
+ return new Promise((resolve, reject) => {
1485
+ this.promises.push({ resolve, reject });
1486
+ });
1487
+ }
1488
+ this.dereferencing.processing = true;
1489
+ const { children: discriminatorChildrenMap, inverted: discriminatorChildrenMapInverted } = findDiscriminatorChildren(this.api);
1490
+ const { api, schema, promises } = this;
1491
+ if (api?.components?.schemas && typeof api.components.schemas === "object") {
1492
+ Object.keys(api.components.schemas).forEach((schemaName) => {
1493
+ if (isPrimitive(api.components?.schemas?.[schemaName]) || Array.isArray(api.components?.schemas?.[schemaName]) || api.components?.schemas?.[schemaName] === null) {
1494
+ return;
1495
+ }
1496
+ (api.components?.schemas?.[schemaName])["x-readme-ref-name"] = schemaName;
1497
+ });
1498
+ }
1499
+ const circularRefs = /* @__PURE__ */ new Set();
1500
+ const dereferencingOptions = getDereferencingOptions(circularRefs);
1501
+ const parser = new $RefParser();
1502
+ return parser.dereference(
1503
+ "#/__INTERNAL__",
1504
+ {
1505
+ // Because `json-schema-ref-parser` will dereference this entire object as we only want
1506
+ // to dereference this operation schema we're attaching it to the `__INTERNAL__` key, and
1507
+ // later using that to extract our dereferenced schema. If we didn't do this then we run
1508
+ // the risk of any keyword in `schema` being overriden by `paths` and `components`.
1509
+ //
1510
+ // This solution isn't the best and still requires us to send `json-schema-ref-parser`
1511
+ // basically the entire API defintiion but because we don't know what `$ref` pointers in
1512
+ // `schema` reference, we can't know which parts of full API definition we could safely
1513
+ // exclude from this process.
1514
+ __INTERNAL__: structuredClone(schema),
1515
+ paths: api.paths ?? void 0,
1516
+ components: api.components ?? void 0
1517
+ },
1518
+ {
1519
+ ...dereferencingOptions,
1520
+ dereference: {
1521
+ ...dereferencingOptions.dereference,
1522
+ /**
1523
+ * Because we only want to dereference our `__INTERNAL__` schema, not the **entire**
1524
+ * API definition if the parser attemps to dereference anything but that then we
1525
+ * should bail out of that crawler.
1526
+ *
1527
+ * @fixme this may cause issues where a path references a schema within itself to be ignored.
1528
+ */
1529
+ excludedPathMatcher: (path) => {
1530
+ if (path === "#/paths" || path.startsWith("#/paths/")) {
1531
+ return true;
1532
+ }
1533
+ if (discriminatorChildrenMap.size > 0 || discriminatorChildrenMapInverted.size > 0) {
1534
+ if (path.startsWith("#/components/") && path !== "#/components/schemas" && !path.startsWith("#/components/schemas/")) {
1535
+ return true;
1536
+ }
1537
+ if (path.startsWith("#/components/schemas/")) {
1538
+ const schemaName = path.split("/").pop();
1539
+ if (schemaName && (discriminatorChildrenMap.has(schemaName) || discriminatorChildrenMapInverted.has(schemaName))) {
1540
+ if (path === `#/components/schemas/${schemaName}` || path.startsWith(`#/components/schemas/${schemaName}/`)) {
1541
+ return false;
1542
+ }
1543
+ return true;
1544
+ }
1545
+ }
1546
+ return false;
1547
+ }
1548
+ return path === "#/components" || path.startsWith("#/components/");
1549
+ }
1550
+ }
1551
+ }
1552
+ ).then((res) => {
1553
+ const dereferenced = res;
1554
+ if (dereferenced?.components?.schemas && discriminatorChildrenMap.size > 0) {
1555
+ buildDiscriminatorOneOf({ components: dereferenced.components }, discriminatorChildrenMap);
1556
+ }
1557
+ this.schema = dereferenced.__INTERNAL__;
1558
+ this.promises = promises;
1559
+ this.dereferencing = {
1560
+ processing: false,
1561
+ complete: true,
1562
+ // We need to convert our `Set` to an array in order to match the typings.
1563
+ circularRefs: [...circularRefs]
1564
+ };
1565
+ if (opts?.cb) {
1566
+ opts.cb();
1567
+ }
1568
+ }).then(() => {
1569
+ return this.promises.map((deferred) => deferred.resolve());
1570
+ }).catch((err) => {
1571
+ this.dereferencing.processing = false;
1572
+ this.promises.map((deferred) => deferred.reject(err));
1573
+ throw err;
1574
+ });
1575
+ }
1576
+ /**
1577
+ * Retrieve any circular `$ref` pointers that maybe present within operation schema.
1578
+ *
1579
+ * This method requires that you first dereference the definition.
1580
+ *
1581
+ * @see Operation.dereference
1582
+ */
1583
+ getCircularReferences() {
1584
+ if (!this.dereferencing.complete) {
1585
+ throw new Error(".dereference() must be called first in order for this method to obtain circular references.");
1586
+ }
1587
+ return this.dereferencing.circularRefs;
1588
+ }
1208
1589
  };
1209
1590
  var Callback = class extends Operation {
1210
1591
  /**
@@ -1258,22 +1639,32 @@ var Webhook = class extends Operation {
1258
1639
  getSummary() {
1259
1640
  if (this.schema?.summary && typeof this.schema.summary === "string") {
1260
1641
  return this.schema.summary;
1261
- } else if (this.api.webhooks[this.path].summary && typeof this.api.webhooks[this.path].summary === "string") {
1262
- return this.api.webhooks[this.path].summary;
1642
+ }
1643
+ const webhookPath = this.api.webhooks?.[this.path];
1644
+ if (webhookPath && !isRef(webhookPath)) {
1645
+ if (webhookPath?.summary && typeof webhookPath.summary === "string") {
1646
+ return webhookPath.summary;
1647
+ }
1263
1648
  }
1264
1649
  return void 0;
1265
1650
  }
1266
1651
  getDescription() {
1267
1652
  if (this.schema?.description && typeof this.schema.description === "string") {
1268
1653
  return this.schema.description;
1269
- } else if (this.api.webhooks[this.path].description && typeof this.api.webhooks[this.path].description === "string") {
1270
- return this.api.webhooks[this.path].description;
1654
+ }
1655
+ const webhookPath = this.api.webhooks?.[this.path];
1656
+ if (webhookPath && !isRef(webhookPath)) {
1657
+ if (webhookPath?.description && typeof webhookPath.description === "string") {
1658
+ return webhookPath.description;
1659
+ }
1271
1660
  }
1272
1661
  return void 0;
1273
1662
  }
1274
1663
  };
1275
1664
 
1276
1665
  export {
1666
+ findDiscriminatorChildren,
1667
+ buildDiscriminatorOneOf,
1277
1668
  Operation,
1278
1669
  Callback,
1279
1670
  Webhook
@@ -1290,4 +1681,4 @@ export {
1290
1681
  * @license Apache-2.0
1291
1682
  * @see {@link https://github.com/swagger-api/swagger-ui/blob/master/src/core/plugins/samples/fn.js}
1292
1683
  */
1293
- //# sourceMappingURL=chunk-BOVZLW7Q.js.map
1684
+ //# sourceMappingURL=chunk-HGVFNEKW.js.map