@kubb/agent 4.33.0 → 4.33.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (392) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +3554 -2113
  3. package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
  4. package/.output/server/chunks/routes/api/health.get.mjs +5 -5
  5. package/.output/server/index.mjs +5 -5
  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/@redocly/ajv/dist/2020.js +55 -0
  14. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +50 -0
  15. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +156 -0
  16. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +697 -0
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +143 -0
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +123 -0
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +249 -0
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +29 -0
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +12 -0
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +155 -0
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +26 -0
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +178 -0
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +19 -0
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +50 -0
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +203 -0
  28. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +35 -0
  29. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +534 -0
  30. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +124 -0
  31. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +81 -0
  32. package/.output/server/node_modules/@redocly/ajv/dist/core.js +632 -0
  33. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +56 -0
  34. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +13 -0
  35. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  42. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  43. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  44. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +138 -0
  45. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +151 -0
  46. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +7 -0
  47. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +24 -0
  48. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +6 -0
  49. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +11 -0
  50. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  51. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +107 -0
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +95 -0
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +66 -0
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +44 -0
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +52 -0
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +26 -0
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +55 -0
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +138 -0
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +10 -0
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +16 -0
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +132 -0
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +139 -0
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +9 -0
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +23 -0
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +29 -0
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +17 -0
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +9 -0
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +92 -0
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +6 -0
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +26 -0
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +8 -0
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +26 -0
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +84 -0
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +25 -0
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +43 -0
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +19 -0
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +48 -0
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +37 -0
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +33 -0
  103. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +20 -0
  104. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +86 -0
  105. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  106. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +20 -0
  107. package/.output/server/node_modules/@redocly/ajv/package.json +130 -0
  108. package/.output/server/node_modules/@redocly/config/lib/common.js +103 -0
  109. package/.output/server/node_modules/@redocly/config/lib/constants/config.js +17 -0
  110. package/.output/server/node_modules/@redocly/config/lib/constants/entities.js +58 -0
  111. package/.output/server/node_modules/@redocly/config/lib/constants/enum.js +6 -0
  112. package/.output/server/node_modules/@redocly/config/lib/constants/shared.js +22 -0
  113. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +54 -0
  114. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +186 -0
  115. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +283 -0
  116. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +682 -0
  117. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +88 -0
  118. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +157 -0
  119. package/.output/server/node_modules/@redocly/config/lib/index.js +41 -0
  120. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +43 -0
  121. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +120 -0
  122. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +518 -0
  123. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +25 -0
  124. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +103 -0
  125. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +558 -0
  126. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +242 -0
  127. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +3 -0
  128. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +3 -0
  129. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +3 -0
  130. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +3 -0
  131. package/.output/server/node_modules/@redocly/config/lib/types/index.js +21 -0
  132. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +18 -0
  133. package/.output/server/node_modules/@redocly/config/package.json +28 -0
  134. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +85 -0
  135. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +257 -0
  136. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +74 -0
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +310 -0
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +58 -0
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +27 -0
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +335 -0
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +338 -0
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +13 -0
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +9 -0
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +51 -0
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +8 -0
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +98 -0
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +289 -0
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +289 -0
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +289 -0
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +35 -0
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +289 -0
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +2 -0
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +129 -0
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +99 -0
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +2 -0
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +2 -0
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +2 -0
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +65 -0
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +14 -0
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +14 -0
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +21 -0
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +14 -0
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +58 -0
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +27 -0
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +68 -0
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +23 -0
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +19 -0
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +88 -0
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +21 -0
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +116 -0
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +2 -0
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +2 -0
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +79 -0
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +5 -0
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +14 -0
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +177 -0
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +365 -0
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +49 -0
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +11 -0
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +171 -0
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +123 -0
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +56 -0
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +35 -0
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +109 -0
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +326 -0
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +106 -0
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +68 -0
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +52 -0
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +139 -0
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +27 -0
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +19 -0
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +23 -0
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +19 -0
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +16 -0
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +32 -0
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +16 -0
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +32 -0
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +269 -0
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +22 -0
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +215 -0
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +14 -0
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +23 -0
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +14 -0
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +42 -0
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +21 -0
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +38 -0
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +21 -0
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +34 -0
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +13 -0
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +19 -0
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +42 -0
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +20 -0
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +20 -0
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +9 -0
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +17 -0
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +15 -0
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +13 -0
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +37 -0
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +13 -0
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +9 -0
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +27 -0
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +19 -0
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +13 -0
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +23 -0
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +15 -0
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +145 -0
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +30 -0
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +17 -0
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +26 -0
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +39 -0
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +62 -0
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +27 -0
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +150 -0
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +9 -0
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +18 -0
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +93 -0
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +14 -0
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +34 -0
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +14 -0
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +26 -0
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +130 -0
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +129 -0
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +20 -0
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +15 -0
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +83 -0
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +15 -0
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +28 -0
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +36 -0
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +28 -0
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +31 -0
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +20 -0
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +82 -0
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +190 -0
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +12 -0
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +20 -0
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +18 -0
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +172 -0
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +482 -0
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +1157 -0
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +511 -0
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +32 -0
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +90 -0
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +181 -0
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +101 -0
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +454 -0
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +828 -0
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +292 -0
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +306 -0
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +360 -0
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +61 -0
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +573 -0
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +3 -0
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +28 -0
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +36 -0
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +7 -0
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +3 -0
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +11 -0
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +4 -0
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +4 -0
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +4 -0
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +4 -0
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +4 -0
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +4 -0
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +5 -0
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +4 -0
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +6 -0
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +5 -0
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +27 -0
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +4 -0
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +4 -0
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +4 -0
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +4 -0
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +6 -0
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +4 -0
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +6 -0
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +4 -0
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +8 -0
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +4 -0
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +8 -0
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +26 -0
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +5 -0
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +99 -0
  335. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +11 -0
  336. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +13 -0
  337. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +7 -0
  338. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +31 -0
  339. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +23 -0
  340. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +177 -0
  341. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +303 -0
  342. package/.output/server/node_modules/@redocly/openapi-core/package.json +74 -0
  343. package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
  344. package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
  345. package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
  346. package/.output/server/node_modules/ajv-formats/package.json +74 -0
  347. package/.output/server/node_modules/colorette/index.js +82 -0
  348. package/.output/server/node_modules/colorette/package.json +39 -0
  349. package/.output/server/node_modules/js-levenshtein/index.js +105 -0
  350. package/.output/server/node_modules/js-levenshtein/package.json +49 -0
  351. package/.output/server/node_modules/pluralize/package.json +40 -0
  352. package/.output/server/node_modules/pluralize/pluralize.js +503 -0
  353. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +45 -0
  354. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +644 -0
  355. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +40 -0
  356. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +22 -0
  357. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +1416 -0
  358. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +62 -0
  359. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +82 -0
  360. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +8 -0
  361. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +14 -0
  362. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +19 -0
  363. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +10 -0
  364. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +14 -0
  365. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +78 -0
  366. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +92 -0
  367. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +32 -0
  368. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +95 -0
  369. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +155 -0
  370. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +64 -0
  371. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +22 -0
  372. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +7 -0
  373. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +10 -0
  374. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +30 -0
  375. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +46 -0
  376. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +55 -0
  377. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +7 -0
  378. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +22 -0
  379. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +7 -0
  380. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +70 -0
  381. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +54 -0
  382. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +82 -0
  383. package/.output/server/node_modules/yaml-ast-parser/package.json +39 -0
  384. package/.output/server/package.json +9 -1
  385. package/package.json +18 -17
  386. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/index.js +0 -0
  387. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/constants.js +0 -0
  388. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/parse.js +0 -0
  389. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/picomatch.js +0 -0
  390. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/scan.js +0 -0
  391. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/lib/utils.js +0 -0
  392. /package/.output/server/node_modules/{picomatch → .nitro/picomatch@2.3.1}/package.json +0 -0
@@ -0,0 +1,573 @@
1
+ import * as redoclyConfig from '@redocly/config';
2
+ import path from 'node:path';
3
+ import { specVersions, getTypes } from '../oas-types.js';
4
+ import { isAbsoluteUrl } from '../ref-utils.js';
5
+ import { normalizeTypes } from '../types/index.js';
6
+ import { isCustomRuleId } from '../utils/is-custom-rule-id.js';
7
+ import { omit } from '../utils/omit.js';
8
+ import { listOf, mapOf } from './index.js';
9
+ import { getNodeTypesFromJSONSchema } from './json-schema-adapter.js';
10
+ const builtInOAS2Rules = [
11
+ 'info-contact',
12
+ 'operation-operationId',
13
+ 'tag-description',
14
+ 'tags-alphabetical',
15
+ 'info-license-strict',
16
+ 'info-license',
17
+ 'no-ambiguous-paths',
18
+ 'no-enum-type-mismatch',
19
+ 'no-http-verbs-in-paths',
20
+ 'no-identical-paths',
21
+ 'no-invalid-parameter-examples',
22
+ 'no-invalid-schema-examples',
23
+ 'no-path-trailing-slash',
24
+ 'operation-2xx-response',
25
+ 'operation-4xx-response',
26
+ 'operation-description',
27
+ 'operation-operationId-unique',
28
+ 'operation-operationId-url-safe',
29
+ 'operation-parameters-unique',
30
+ 'operation-singular-tag',
31
+ 'operation-summary',
32
+ 'operation-tag-defined',
33
+ 'parameter-description',
34
+ 'path-declaration-must-exist',
35
+ 'path-http-verbs-order',
36
+ 'path-not-include-query',
37
+ 'path-params-defined',
38
+ 'path-parameters-defined',
39
+ 'path-segment-plural',
40
+ 'paths-kebab-case',
41
+ 'required-string-property-missing-min-length',
42
+ 'response-contains-header',
43
+ 'scalar-property-missing-example',
44
+ 'security-defined',
45
+ 'spec-strict-refs',
46
+ 'no-required-schema-properties-undefined',
47
+ 'no-schema-type-mismatch',
48
+ 'boolean-parameter-prefixes',
49
+ 'request-mime-type',
50
+ 'response-contains-property',
51
+ 'response-mime-type',
52
+ 'no-duplicated-tag-names',
53
+ ];
54
+ const builtInOAS3Rules = [
55
+ 'info-contact',
56
+ 'operation-operationId',
57
+ 'tag-description',
58
+ 'tags-alphabetical',
59
+ 'info-license-strict',
60
+ 'info-license',
61
+ 'no-ambiguous-paths',
62
+ 'no-enum-type-mismatch',
63
+ 'no-http-verbs-in-paths',
64
+ 'no-identical-paths',
65
+ 'no-invalid-parameter-examples',
66
+ 'no-invalid-schema-examples',
67
+ 'no-path-trailing-slash',
68
+ 'operation-2xx-response',
69
+ 'operation-4xx-response',
70
+ 'operation-description',
71
+ 'operation-operationId-unique',
72
+ 'operation-operationId-url-safe',
73
+ 'operation-parameters-unique',
74
+ 'operation-singular-tag',
75
+ 'operation-summary',
76
+ 'operation-tag-defined',
77
+ 'parameter-description',
78
+ 'path-declaration-must-exist',
79
+ 'path-http-verbs-order',
80
+ 'path-not-include-query',
81
+ 'path-params-defined',
82
+ 'path-parameters-defined',
83
+ 'path-segment-plural',
84
+ 'paths-kebab-case',
85
+ 'required-string-property-missing-min-length',
86
+ 'response-contains-header',
87
+ 'scalar-property-missing-example',
88
+ 'security-defined',
89
+ 'spec-strict-refs',
90
+ 'no-required-schema-properties-undefined',
91
+ 'no-schema-type-mismatch',
92
+ 'boolean-parameter-prefixes',
93
+ 'component-name-unique',
94
+ 'no-empty-servers',
95
+ 'no-example-value-and-externalValue',
96
+ 'no-invalid-media-type-examples',
97
+ 'no-server-example.com',
98
+ 'no-server-trailing-slash',
99
+ 'no-server-variables-empty-enum',
100
+ 'no-undefined-server-variable',
101
+ 'no-unused-components',
102
+ 'operation-4xx-problem-details-rfc7807',
103
+ 'request-mime-type',
104
+ 'response-contains-property',
105
+ 'response-mime-type',
106
+ 'spec-components-invalid-map-name',
107
+ 'array-parameter-serialization',
108
+ 'no-duplicated-tag-names',
109
+ 'nullable-type-sibling',
110
+ 'spec-no-invalid-tag-parents',
111
+ 'spec-no-invalid-encoding-combinations',
112
+ 'spec-discriminator-defaultMapping',
113
+ 'spec-example-values',
114
+ 'spec-querystring-parameters',
115
+ ];
116
+ const builtInAsync2Rules = [
117
+ 'info-contact',
118
+ 'info-license-strict',
119
+ 'operation-operationId',
120
+ 'tag-description',
121
+ 'tags-alphabetical',
122
+ 'channels-kebab-case',
123
+ 'no-channel-trailing-slash',
124
+ 'no-duplicated-tag-names',
125
+ 'no-required-schema-properties-undefined',
126
+ 'no-enum-type-mismatch',
127
+ 'no-schema-type-mismatch',
128
+ ];
129
+ const builtInAsync3Rules = [
130
+ 'info-contact',
131
+ 'info-license-strict',
132
+ 'operation-operationId',
133
+ 'tag-description',
134
+ 'tags-alphabetical',
135
+ 'channels-kebab-case',
136
+ 'no-channel-trailing-slash',
137
+ 'no-duplicated-tag-names',
138
+ 'no-required-schema-properties-undefined',
139
+ 'no-enum-type-mismatch',
140
+ 'no-schema-type-mismatch',
141
+ ];
142
+ const builtInArazzo1Rules = [
143
+ 'sourceDescription-type',
144
+ 'workflowId-unique',
145
+ 'stepId-unique',
146
+ 'sourceDescription-name-unique',
147
+ 'sourceDescriptions-not-empty',
148
+ 'workflow-dependsOn',
149
+ 'outputs-defined',
150
+ 'parameters-unique',
151
+ 'step-onSuccess-unique',
152
+ 'step-onFailure-unique',
153
+ 'respect-supported-versions',
154
+ 'requestBody-replacements-unique',
155
+ 'no-criteria-xpath',
156
+ 'criteria-unique',
157
+ 'no-x-security-scheme-name-without-openapi',
158
+ 'x-security-scheme-required-values',
159
+ 'no-x-security-both-scheme-and-scheme-name',
160
+ 'no-required-schema-properties-undefined',
161
+ 'no-enum-type-mismatch',
162
+ 'no-schema-type-mismatch',
163
+ 'x-security-scheme-name-reference',
164
+ ];
165
+ const builtInOverlay1Rules = ['info-contact'];
166
+ const builtInOpenRpc1Rules = [
167
+ 'info-contact',
168
+ 'info-license',
169
+ 'no-unused-components',
170
+ 'spec-no-duplicated-method-params',
171
+ 'spec-no-required-params-after-optional',
172
+ ];
173
+ const builtInCommonRules = ['struct', 'no-unresolved-refs'];
174
+ const builtInRules = [
175
+ ...builtInOAS2Rules,
176
+ ...builtInOAS3Rules,
177
+ ...builtInAsync2Rules,
178
+ ...builtInAsync3Rules,
179
+ ...builtInArazzo1Rules,
180
+ ...builtInOverlay1Rules,
181
+ ...builtInOpenRpc1Rules,
182
+ ...builtInCommonRules,
183
+ ];
184
+ const configGovernanceProperties = {
185
+ extends: {
186
+ name: 'Extends',
187
+ properties: {},
188
+ items: (node) => {
189
+ // check if it's preset name
190
+ if (typeof node === 'string' && !isAbsoluteUrl(node) && !path.extname(node)) {
191
+ return { type: 'string' };
192
+ }
193
+ return {
194
+ ...ConfigGovernance,
195
+ directResolveAs: { name: 'ConfigGovernance', ...ConfigGovernance },
196
+ };
197
+ },
198
+ description: 'Use extends to inherit rules and their configurations from other rulesets.',
199
+ documentationLink: 'https://redocly.com/docs/cli/configuration/reference/extends#extends',
200
+ },
201
+ plugins: { type: 'array', items: { type: 'string' } },
202
+ rules: 'Rules',
203
+ oas2Rules: 'Rules',
204
+ oas3_0Rules: 'Rules',
205
+ oas3_1Rules: 'Rules',
206
+ oas3_2Rules: 'Rules',
207
+ async2Rules: 'Rules',
208
+ async3Rules: 'Rules',
209
+ arazzo1Rules: 'Rules',
210
+ overlay1Rules: 'Rules',
211
+ openrpc1Rules: 'Rules',
212
+ preprocessors: 'Preprocessors',
213
+ oas2Preprocessors: 'Preprocessors',
214
+ oas3_0Preprocessors: 'Preprocessors',
215
+ oas3_1Preprocessors: 'Preprocessors',
216
+ oas3_2Preprocessors: 'Preprocessors',
217
+ async2Preprocessors: 'Preprocessors',
218
+ async3Preprocessors: 'Preprocessors',
219
+ arazzo1Preprocessors: 'Preprocessors',
220
+ overlay1Preprocessors: 'Preprocessors',
221
+ openrpc1Preprocessors: 'Preprocessors',
222
+ decorators: 'Decorators',
223
+ oas2Decorators: 'Decorators',
224
+ oas3_0Decorators: 'Decorators',
225
+ oas3_1Decorators: 'Decorators',
226
+ oas3_2Decorators: 'Decorators',
227
+ async2Decorators: 'Decorators',
228
+ async3Decorators: 'Decorators',
229
+ arazzo1Decorators: 'Decorators',
230
+ overlay1Decorators: 'Decorators',
231
+ openrpc1Decorators: 'Decorators',
232
+ };
233
+ const ConfigGovernance = {
234
+ properties: configGovernanceProperties,
235
+ };
236
+ const createConfigRoot = (nodeTypes) => ({
237
+ ...nodeTypes.rootRedoclyConfigSchema,
238
+ properties: {
239
+ ...nodeTypes.rootRedoclyConfigSchema.properties,
240
+ ...ConfigGovernance.properties,
241
+ apis: 'ConfigApis', // Override apis with internal format
242
+ telemetry: { enum: ['on', 'off'] },
243
+ resolve: {
244
+ properties: {
245
+ http: 'ConfigHTTP',
246
+ doNotResolveExamples: { type: 'boolean' },
247
+ },
248
+ },
249
+ },
250
+ });
251
+ const ConfigApis = {
252
+ properties: {},
253
+ additionalProperties: 'ConfigApisProperties',
254
+ description: 'The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.',
255
+ documentationLink: 'https://redocly.com/docs/cli/configuration/reference/apis',
256
+ };
257
+ const createConfigApisProperties = (nodeTypes) => ({
258
+ ...nodeTypes['rootRedoclyConfigSchema.apis_additionalProperties'],
259
+ properties: {
260
+ ...nodeTypes['rootRedoclyConfigSchema.apis_additionalProperties']?.properties,
261
+ ...omit(ConfigGovernance.properties, ['plugins']), // plugins are not allowed in apis
262
+ },
263
+ });
264
+ const ConfigHTTP = {
265
+ properties: {
266
+ headers: {
267
+ type: 'array',
268
+ items: {
269
+ type: 'string',
270
+ },
271
+ },
272
+ },
273
+ };
274
+ const Rules = {
275
+ properties: {},
276
+ description: 'The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.',
277
+ documentationLink: 'https://redocly.com/docs/cli/configuration/reference/rules#rules',
278
+ additionalProperties: (value, key) => {
279
+ if (key.startsWith('rule/')) {
280
+ if (typeof value === 'string') {
281
+ return { enum: ['error', 'warn', 'off'] };
282
+ }
283
+ else {
284
+ return 'ConfigurableRule';
285
+ }
286
+ }
287
+ else if (builtInRules.includes(key) || isCustomRuleId(key)) {
288
+ if (typeof value === 'string') {
289
+ return { enum: ['error', 'warn', 'off'] };
290
+ }
291
+ else {
292
+ return 'BuiltinRule';
293
+ }
294
+ }
295
+ else if (key === 'metadata-schema' || key === 'custom-fields-schema') {
296
+ return 'Schema';
297
+ }
298
+ // Otherwise is considered as invalid
299
+ return;
300
+ },
301
+ };
302
+ const BuiltinRule = {
303
+ properties: {
304
+ severity: { enum: ['error', 'warn', 'off'] },
305
+ },
306
+ additionalProperties: {},
307
+ required: ['severity'],
308
+ description: 'Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.',
309
+ documentationLink: 'https://redocly.com/docs/cli/rules/built-in-rules',
310
+ };
311
+ const Decorators = {
312
+ properties: {},
313
+ additionalProperties: {},
314
+ description: 'Decorators define transformations that can be applied to the API document during the bundle step.',
315
+ documentationLink: 'https://redocly.com/docs/cli/configuration/reference/decorators',
316
+ };
317
+ const Preprocessors = {
318
+ properties: {},
319
+ additionalProperties: {},
320
+ description: 'Preprocessors define transformations that can be applied to the API document before bundling.',
321
+ documentationLink: 'https://redocly.com/docs/cli/configuration/reference/preprocessors',
322
+ };
323
+ // TODO: add better type tree for this
324
+ const Schema = {
325
+ properties: {
326
+ properties: mapOf('Schema'),
327
+ },
328
+ additionalProperties: {},
329
+ };
330
+ function createAssertionDefinitionSubject(nodeNames) {
331
+ return {
332
+ properties: {
333
+ type: {
334
+ enum: [...new Set(['any', ...nodeNames, 'SpecExtension'])],
335
+ description: 'REQUIRED. Locates the OpenAPI node type that the lint command evaluates.',
336
+ },
337
+ property: (value) => {
338
+ if (Array.isArray(value)) {
339
+ return {
340
+ type: 'array',
341
+ items: { type: 'string' },
342
+ description: 'Property name corresponding to the OpenAPI node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.',
343
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#property-example',
344
+ };
345
+ }
346
+ else if (value === null) {
347
+ return null;
348
+ }
349
+ else {
350
+ return {
351
+ type: 'string',
352
+ description: 'Property name corresponding to the OpenAPI node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.',
353
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#property-example',
354
+ };
355
+ }
356
+ },
357
+ filterInParentKeys: {
358
+ type: 'array',
359
+ items: { type: 'string' },
360
+ description: `The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.`,
361
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example',
362
+ },
363
+ filterOutParentKeys: {
364
+ type: 'array',
365
+ items: { type: 'string' },
366
+ description: `The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions.`,
367
+ },
368
+ matchParentKeys: {
369
+ type: 'string',
370
+ description: `Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions.`,
371
+ },
372
+ },
373
+ required: ['type'],
374
+ description: 'REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.',
375
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#subject-object',
376
+ };
377
+ }
378
+ function createScorecardLevelsItems(nodeTypes) {
379
+ return {
380
+ ...nodeTypes[redoclyConfig.CONFIG_NODE_TYPE_NAMES.ScorecardClassicLevel],
381
+ properties: {
382
+ ...nodeTypes[redoclyConfig.CONFIG_NODE_TYPE_NAMES.ScorecardClassicLevel]?.properties,
383
+ ...configGovernanceProperties,
384
+ },
385
+ };
386
+ }
387
+ const Assertions = {
388
+ properties: {
389
+ enum: {
390
+ type: 'array',
391
+ items: { type: 'string' },
392
+ description: 'Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.',
393
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#enum-example',
394
+ },
395
+ pattern: {
396
+ type: 'string',
397
+ description: 'Asserts a value matches a regex pattern.',
398
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#pattern-example',
399
+ },
400
+ notPattern: {
401
+ type: 'string',
402
+ description: `Asserts a value doesn't match a regex pattern.`,
403
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example',
404
+ },
405
+ casing: {
406
+ enum: [
407
+ 'camelCase',
408
+ 'kebab-case',
409
+ 'snake_case',
410
+ 'PascalCase',
411
+ 'MACRO_CASE',
412
+ 'COBOL-CASE',
413
+ 'flatcase',
414
+ ],
415
+ description: 'Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.',
416
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#casing-example',
417
+ },
418
+ mutuallyExclusive: {
419
+ type: 'array',
420
+ items: { type: 'string' },
421
+ description: 'Asserts that listed properties (key names only) are mutually exclusive.',
422
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example',
423
+ },
424
+ mutuallyRequired: {
425
+ type: 'array',
426
+ items: { type: 'string' },
427
+ description: 'Asserts that listed properties (key names only) are mutually required.',
428
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example',
429
+ },
430
+ required: {
431
+ type: 'array',
432
+ items: { type: 'string' },
433
+ description: 'Asserts all listed values are defined.',
434
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#required-example',
435
+ },
436
+ requireAny: {
437
+ type: 'array',
438
+ items: { type: 'string' },
439
+ description: 'Asserts that at least one of the listed properties (key names only) is defined. ',
440
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#requireany-example',
441
+ },
442
+ disallowed: {
443
+ type: 'array',
444
+ items: { type: 'string' },
445
+ description: 'Asserts all listed values are not defined.',
446
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example',
447
+ },
448
+ defined: {
449
+ type: 'boolean',
450
+ description: 'Asserts a property is defined.',
451
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#defined-example',
452
+ },
453
+ nonEmpty: {
454
+ type: 'boolean',
455
+ description: 'Asserts a property is not empty.',
456
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example',
457
+ },
458
+ minLength: {
459
+ type: 'integer',
460
+ description: 'Asserts a minimum length (inclusive) of a string or list (array).',
461
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#minlength-example',
462
+ },
463
+ maxLength: {
464
+ type: 'integer',
465
+ description: 'Asserts a maximum length (inclusive) of a string or list (array).',
466
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example',
467
+ },
468
+ ref: (value) => typeof value === 'string'
469
+ ? {
470
+ type: 'string',
471
+ description: `Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').`,
472
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#ref-example',
473
+ }
474
+ : {
475
+ type: 'boolean',
476
+ description: `Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').`,
477
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#ref-example',
478
+ },
479
+ const: (value) => {
480
+ if (typeof value === 'string') {
481
+ return {
482
+ type: 'string',
483
+ description: 'Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.',
484
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#const-example',
485
+ };
486
+ }
487
+ if (typeof value === 'number') {
488
+ return {
489
+ type: 'number',
490
+ description: 'Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.',
491
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#const-example',
492
+ };
493
+ }
494
+ if (typeof value === 'boolean') {
495
+ return {
496
+ type: 'boolean',
497
+ description: 'Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.',
498
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#const-example',
499
+ };
500
+ }
501
+ else {
502
+ return;
503
+ }
504
+ },
505
+ },
506
+ additionalProperties: (_value, key) => {
507
+ if (/^\w+\/\w+$/.test(key))
508
+ return {};
509
+ return;
510
+ },
511
+ description: 'A minimum of one assertion property is required to be defined.',
512
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#assertion-object',
513
+ };
514
+ const Where = {
515
+ properties: {
516
+ subject: 'Subject',
517
+ assertions: 'Assertions',
518
+ },
519
+ required: ['subject', 'assertions'],
520
+ description: 'The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.',
521
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#where-object',
522
+ };
523
+ const ConfigurableRule = {
524
+ properties: {
525
+ subject: 'Subject',
526
+ assertions: 'Assertions',
527
+ where: listOf('Where'),
528
+ message: { type: 'string' },
529
+ suggest: { type: 'array', items: { type: 'string' } },
530
+ severity: { enum: ['error', 'warn', 'off'] },
531
+ },
532
+ required: ['subject', 'assertions'],
533
+ description: 'Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.',
534
+ documentationLink: 'https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object',
535
+ };
536
+ export function createConfigTypes(extraSchemas, config) {
537
+ const nodeNames = specVersions.flatMap((version) => {
538
+ const types = config ? config.extendTypes(getTypes(version), version) : getTypes(version);
539
+ return Object.keys(types);
540
+ });
541
+ // Create types based on external schemas
542
+ const { ctx: nodeTypes } = getNodeTypesFromJSONSchema('rootRedoclyConfigSchema', extraSchemas);
543
+ return {
544
+ ...CoreConfigTypes,
545
+ ConfigRoot: createConfigRoot(nodeTypes), // This is the REAL config root type
546
+ ConfigApisProperties: createConfigApisProperties(nodeTypes),
547
+ Subject: createAssertionDefinitionSubject(nodeNames),
548
+ ...nodeTypes,
549
+ [redoclyConfig.CONFIG_NODE_TYPE_NAMES.ScorecardClassicLevel]: createScorecardLevelsItems(nodeTypes),
550
+ };
551
+ }
552
+ const CoreConfigTypes = {
553
+ ConfigurableRule,
554
+ ConfigApis,
555
+ ConfigGovernance,
556
+ ConfigHTTP,
557
+ Where,
558
+ BuiltinRule,
559
+ Schema,
560
+ Rules,
561
+ Decorators,
562
+ Preprocessors,
563
+ Assertions,
564
+ };
565
+ // FIXME: remove this once we remove `theme` from the schema
566
+ const { theme: _, ...propertiesWithoutTheme } = redoclyConfig.rootRedoclyConfigSchema.properties;
567
+ const redoclyConfigSchemaWithoutTheme = {
568
+ ...redoclyConfig.rootRedoclyConfigSchema,
569
+ properties: propertiesWithoutTheme,
570
+ };
571
+ export const ConfigTypes = createConfigTypes(redoclyConfigSchemaWithoutTheme);
572
+ export const NormalizedConfigTypes = normalizeTypes(ConfigTypes);
573
+ //# sourceMappingURL=redocly-yaml.js.map
@@ -0,0 +1,3 @@
1
+ export const VERSION_PATTERN = /^1\.0\.\d+(-.+)?$/;
2
+ export const ARAZZO_VERSIONS_SUPPORTED_BY_RESPECT = ['1.0.1'];
3
+ //# sourceMappingURL=arazzo.js.map
@@ -0,0 +1,28 @@
1
+ import { isPlainObject } from './is-plain-object.js';
2
+ export const assignConfig = (target, obj) => {
3
+ if (!obj)
4
+ return;
5
+ for (const k of Object.keys(obj)) {
6
+ if (isPlainObject(target[k]) && typeof obj[k] === 'string') {
7
+ target[k] = { ...target[k], severity: obj[k] };
8
+ }
9
+ else {
10
+ target[k] = obj[k];
11
+ }
12
+ }
13
+ };
14
+ export function assignOnlyExistingConfig(target, obj) {
15
+ if (!obj)
16
+ return;
17
+ for (const k of Object.keys(obj)) {
18
+ if (!target.hasOwnProperty(k))
19
+ continue;
20
+ if (isPlainObject(target[k]) && typeof obj[k] === 'string') {
21
+ target[k] = { ...target[k], severity: obj[k] };
22
+ }
23
+ else {
24
+ target[k] = obj[k];
25
+ }
26
+ }
27
+ }
28
+ //# sourceMappingURL=assign-config.js.map
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Checks if two objects are deeply equal.
3
+ * Borrowed the source code from https://github.com/lukeed/dequal.
4
+ */
5
+ export function dequal(foo, bar) {
6
+ let ctor, len;
7
+ if (foo === bar)
8
+ return true;
9
+ if (foo && bar && (ctor = foo.constructor) === bar.constructor) {
10
+ if (ctor === Date)
11
+ return foo.getTime() === bar.getTime();
12
+ if (ctor === RegExp)
13
+ return foo.toString() === bar.toString();
14
+ if (ctor === Array) {
15
+ if ((len = foo.length) === bar.length) {
16
+ while (len-- && dequal(foo[len], bar[len]))
17
+ ;
18
+ }
19
+ return len === -1;
20
+ }
21
+ if (!ctor || typeof foo === 'object') {
22
+ len = 0;
23
+ for (ctor in foo) {
24
+ if (Object.prototype.hasOwnProperty.call(foo, ctor) &&
25
+ ++len &&
26
+ !Object.prototype.hasOwnProperty.call(bar, ctor))
27
+ return false;
28
+ if (!(ctor in bar) || !dequal(foo[ctor], bar[ctor]))
29
+ return false;
30
+ }
31
+ return Object.keys(bar).length === len;
32
+ }
33
+ }
34
+ return foo !== foo && bar !== bar;
35
+ }
36
+ //# sourceMappingURL=dequal.js.map
@@ -0,0 +1,7 @@
1
+ import * as fs from 'node:fs';
2
+ import * as path from 'node:path';
3
+ export function doesYamlFileExist(filePath) {
4
+ return ((path.extname(filePath) === '.yaml' || path.extname(filePath) === '.yml') &&
5
+ !!fs?.existsSync?.(filePath));
6
+ }
7
+ //# sourceMappingURL=does-yaml-file-exist.js.map
@@ -0,0 +1,3 @@
1
+ export class HandledError extends Error {
2
+ }
3
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1,11 @@
1
+ export function getIntersectionLength(keys, properties) {
2
+ const props = new Set(properties);
3
+ let count = 0;
4
+ for (const key of keys) {
5
+ if (props.has(key)) {
6
+ count++;
7
+ }
8
+ }
9
+ return count;
10
+ }
11
+ //# sourceMappingURL=get-intersection-length.js.map
@@ -0,0 +1,4 @@
1
+ export function getMatchingStatusCodeRange(code) {
2
+ return `${code}`.replace(/^(\d)\d\d$/, (_, firstDigit) => `${firstDigit}XX`);
3
+ }
4
+ //# sourceMappingURL=get-matching-status-code-range.js.map
@@ -0,0 +1,4 @@
1
+ export function getOwn(obj, key) {
2
+ return obj.hasOwnProperty(key) ? obj[key] : undefined;
3
+ }
4
+ //# sourceMappingURL=get-own.js.map