@kubb/agent 4.27.2 → 4.27.4

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 (383) hide show
  1. package/.output/nitro.json +1 -1
  2. package/.output/server/chunks/nitro/nitro.mjs +64 -62
  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/package.json +1 -10
  7. package/LICENSE +21 -0
  8. package/package.json +17 -17
  9. package/.output/server/node_modules/@redocly/ajv/dist/2020.js +0 -55
  10. package/.output/server/node_modules/@redocly/ajv/dist/ajv.js +0 -50
  11. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/code.js +0 -156
  12. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/index.js +0 -697
  13. package/.output/server/node_modules/@redocly/ajv/dist/compile/codegen/scope.js +0 -143
  14. package/.output/server/node_modules/@redocly/ajv/dist/compile/errors.js +0 -123
  15. package/.output/server/node_modules/@redocly/ajv/dist/compile/index.js +0 -249
  16. package/.output/server/node_modules/@redocly/ajv/dist/compile/names.js +0 -29
  17. package/.output/server/node_modules/@redocly/ajv/dist/compile/ref_error.js +0 -12
  18. package/.output/server/node_modules/@redocly/ajv/dist/compile/resolve.js +0 -155
  19. package/.output/server/node_modules/@redocly/ajv/dist/compile/rules.js +0 -26
  20. package/.output/server/node_modules/@redocly/ajv/dist/compile/util.js +0 -178
  21. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/applicability.js +0 -19
  22. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/boolSchema.js +0 -50
  23. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/dataType.js +0 -203
  24. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/defaults.js +0 -35
  25. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/index.js +0 -534
  26. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/keyword.js +0 -124
  27. package/.output/server/node_modules/@redocly/ajv/dist/compile/validate/subschema.js +0 -81
  28. package/.output/server/node_modules/@redocly/ajv/dist/core.js +0 -632
  29. package/.output/server/node_modules/@redocly/ajv/dist/draft4.js +0 -56
  30. package/.output/server/node_modules/@redocly/ajv/dist/refs/data.json +0 -13
  31. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/index.js +0 -30
  32. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +0 -48
  33. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/content.json +0 -17
  34. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/core.json +0 -51
  35. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +0 -14
  36. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +0 -37
  37. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +0 -15
  38. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/meta/validation.json +0 -90
  39. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-2020-12/schema.json +0 -55
  40. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-04.json +0 -138
  41. package/.output/server/node_modules/@redocly/ajv/dist/refs/json-schema-draft-07.json +0 -151
  42. package/.output/server/node_modules/@redocly/ajv/dist/runtime/equal.js +0 -7
  43. package/.output/server/node_modules/@redocly/ajv/dist/runtime/ucs2length.js +0 -24
  44. package/.output/server/node_modules/@redocly/ajv/dist/runtime/uri.js +0 -6
  45. package/.output/server/node_modules/@redocly/ajv/dist/runtime/validation_error.js +0 -11
  46. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalItems.js +0 -49
  47. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/additionalProperties.js +0 -107
  48. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/allOf.js +0 -23
  49. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/anyOf.js +0 -12
  50. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/contains.js +0 -95
  51. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependencies.js +0 -85
  52. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/dependentSchemas.js +0 -11
  53. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/if.js +0 -66
  54. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/index.js +0 -44
  55. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items.js +0 -52
  56. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/items2020.js +0 -30
  57. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/not.js +0 -26
  58. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/oneOf.js +0 -60
  59. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/patternProperties.js +0 -75
  60. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/prefixItems.js +0 -12
  61. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/properties.js +0 -55
  62. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/propertyNames.js +0 -38
  63. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/applicator/thenElse.js +0 -13
  64. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/code.js +0 -138
  65. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/id.js +0 -10
  66. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/index.js +0 -16
  67. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/core/ref.js +0 -132
  68. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/index.js +0 -139
  69. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/discriminator/types.js +0 -9
  70. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft2020.js +0 -23
  71. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft4.js +0 -29
  72. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/draft7.js +0 -17
  73. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +0 -30
  74. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/dynamicRef.js +0 -51
  75. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/index.js +0 -9
  76. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +0 -16
  77. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/dynamic/recursiveRef.js +0 -10
  78. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/format.js +0 -92
  79. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/format/index.js +0 -6
  80. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/metadata.js +0 -26
  81. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/next.js +0 -8
  82. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/oasContext.js +0 -26
  83. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/index.js +0 -7
  84. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +0 -40
  85. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +0 -84
  86. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/const.js +0 -25
  87. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/dependentRequired.js +0 -12
  88. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumber.js +0 -43
  89. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/draft04/limitNumberExclusive.js +0 -19
  90. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/enum.js +0 -48
  91. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/index.js +0 -37
  92. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitContains.js +0 -15
  93. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitItems.js +0 -24
  94. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitLength.js +0 -27
  95. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitNumber.js +0 -27
  96. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/limitProperties.js +0 -24
  97. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/multipleOf.js +0 -26
  98. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/pattern.js +0 -24
  99. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/readOnly.js +0 -20
  100. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/required.js +0 -86
  101. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/uniqueItems.js +0 -64
  102. package/.output/server/node_modules/@redocly/ajv/dist/vocabularies/validation/writeOnly.js +0 -20
  103. package/.output/server/node_modules/@redocly/ajv/package.json +0 -130
  104. package/.output/server/node_modules/@redocly/config/lib/common.js +0 -90
  105. package/.output/server/node_modules/@redocly/config/lib/constants.js +0 -73
  106. package/.output/server/node_modules/@redocly/config/lib/default-theme-config-schema.js +0 -54
  107. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-config-schema.js +0 -186
  108. package/.output/server/node_modules/@redocly/config/lib/entities-catalog-entity-file-schema.js +0 -283
  109. package/.output/server/node_modules/@redocly/config/lib/ex-theme-config-schemas.js +0 -661
  110. package/.output/server/node_modules/@redocly/config/lib/feedback-config-schema.js +0 -88
  111. package/.output/server/node_modules/@redocly/config/lib/graphql-config-schema.js +0 -157
  112. package/.output/server/node_modules/@redocly/config/lib/index.js +0 -38
  113. package/.output/server/node_modules/@redocly/config/lib/product-override-schema.js +0 -43
  114. package/.output/server/node_modules/@redocly/config/lib/redoc-config-schema.js +0 -120
  115. package/.output/server/node_modules/@redocly/config/lib/reference-docs-config-schema.js +0 -518
  116. package/.output/server/node_modules/@redocly/config/lib/remove-property-recursively.js +0 -25
  117. package/.output/server/node_modules/@redocly/config/lib/reunite-config-schema.js +0 -103
  118. package/.output/server/node_modules/@redocly/config/lib/root-config-schema.js +0 -551
  119. package/.output/server/node_modules/@redocly/config/lib/scorecards-config-schema.js +0 -244
  120. package/.output/server/node_modules/@redocly/config/lib/types/api-functions-types.js +0 -3
  121. package/.output/server/node_modules/@redocly/config/lib/types/catalog-entity-types.js +0 -3
  122. package/.output/server/node_modules/@redocly/config/lib/types/code-walkthrough-types.js +0 -3
  123. package/.output/server/node_modules/@redocly/config/lib/types/config-types.js +0 -3
  124. package/.output/server/node_modules/@redocly/config/lib/types/index.js +0 -21
  125. package/.output/server/node_modules/@redocly/config/lib/types/portal-shared-types.js +0 -18
  126. package/.output/server/node_modules/@redocly/config/package.json +0 -28
  127. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-document.js +0 -85
  128. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle-visitor.js +0 -257
  129. package/.output/server/node_modules/@redocly/openapi-core/lib/bundle/bundle.js +0 -74
  130. package/.output/server/node_modules/@redocly/openapi-core/lib/config/all.js +0 -310
  131. package/.output/server/node_modules/@redocly/openapi-core/lib/config/builtIn.js +0 -58
  132. package/.output/server/node_modules/@redocly/openapi-core/lib/config/bundle-extends.js +0 -27
  133. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config-resolvers.js +0 -335
  134. package/.output/server/node_modules/@redocly/openapi-core/lib/config/config.js +0 -338
  135. package/.output/server/node_modules/@redocly/openapi-core/lib/config/constants.js +0 -13
  136. package/.output/server/node_modules/@redocly/openapi-core/lib/config/get-resolve-config.js +0 -9
  137. package/.output/server/node_modules/@redocly/openapi-core/lib/config/group-assertion-rules.js +0 -51
  138. package/.output/server/node_modules/@redocly/openapi-core/lib/config/index.js +0 -8
  139. package/.output/server/node_modules/@redocly/openapi-core/lib/config/load.js +0 -98
  140. package/.output/server/node_modules/@redocly/openapi-core/lib/config/minimal.js +0 -289
  141. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended-strict.js +0 -289
  142. package/.output/server/node_modules/@redocly/openapi-core/lib/config/recommended.js +0 -289
  143. package/.output/server/node_modules/@redocly/openapi-core/lib/config/rules.js +0 -35
  144. package/.output/server/node_modules/@redocly/openapi-core/lib/config/spec.js +0 -289
  145. package/.output/server/node_modules/@redocly/openapi-core/lib/config/types.js +0 -2
  146. package/.output/server/node_modules/@redocly/openapi-core/lib/config/utils.js +0 -129
  147. package/.output/server/node_modules/@redocly/openapi-core/lib/config/visitors.js +0 -88
  148. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/arazzo/index.js +0 -2
  149. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async2/index.js +0 -2
  150. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/async3/index.js +0 -2
  151. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-helper.js +0 -65
  152. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-in.js +0 -14
  153. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/filters/filter-out.js +0 -14
  154. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-description-override.js +0 -21
  155. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/info-override.js +0 -14
  156. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/media-type-examples-override.js +0 -58
  157. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/operation-description-override.js +0 -27
  158. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/remove-x-internal.js +0 -68
  159. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/common/tag-description-override.js +0 -23
  160. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/index.js +0 -19
  161. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas2/remove-unused-components.js +0 -88
  162. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/index.js +0 -21
  163. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/oas3/remove-unused-components.js +0 -116
  164. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/openrpc/index.js +0 -2
  165. package/.output/server/node_modules/@redocly/openapi-core/lib/decorators/overlay1/index.js +0 -2
  166. package/.output/server/node_modules/@redocly/openapi-core/lib/detect-spec.js +0 -79
  167. package/.output/server/node_modules/@redocly/openapi-core/lib/env.js +0 -5
  168. package/.output/server/node_modules/@redocly/openapi-core/lib/errors/yaml-parse-error.js +0 -14
  169. package/.output/server/node_modules/@redocly/openapi-core/lib/format/codeframes.js +0 -177
  170. package/.output/server/node_modules/@redocly/openapi-core/lib/format/format.js +0 -365
  171. package/.output/server/node_modules/@redocly/openapi-core/lib/index.js +0 -49
  172. package/.output/server/node_modules/@redocly/openapi-core/lib/js-yaml/index.js +0 -11
  173. package/.output/server/node_modules/@redocly/openapi-core/lib/lint-entity.js +0 -171
  174. package/.output/server/node_modules/@redocly/openapi-core/lib/lint.js +0 -123
  175. package/.output/server/node_modules/@redocly/openapi-core/lib/logger.js +0 -56
  176. package/.output/server/node_modules/@redocly/openapi-core/lib/oas-types.js +0 -35
  177. package/.output/server/node_modules/@redocly/openapi-core/lib/ref-utils.js +0 -106
  178. package/.output/server/node_modules/@redocly/openapi-core/lib/resolve.js +0 -326
  179. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/ajv.js +0 -106
  180. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/criteria-unique.js +0 -68
  181. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/index.js +0 -52
  182. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/outputs-defined.js +0 -139
  183. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/parameters-unique.js +0 -27
  184. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/requestBody-replacements-unique.js +0 -30
  185. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescription-type.js +0 -19
  186. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-name-unique.js +0 -21
  187. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/sourceDescriptions-not-empty.js +0 -15
  188. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onFailure-unique.js +0 -27
  189. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/step-onSuccess-unique.js +0 -27
  190. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/stepId-unique.js +0 -23
  191. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflow-dependsOn.js +0 -53
  192. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/arazzo/workflowId-unique.js +0 -19
  193. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/channels-kebab-case.js +0 -16
  194. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/index.js +0 -32
  195. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async2/no-channel-trailing-slash.js +0 -13
  196. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/channels-kebab-case.js +0 -16
  197. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/index.js +0 -32
  198. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/async3/no-channel-trailing-slash.js +0 -13
  199. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/catalog-entity/entity-key-valid.js +0 -39
  200. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/asserts.js +0 -269
  201. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/index.js +0 -22
  202. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/assertions/utils.js +0 -215
  203. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-contact.js +0 -14
  204. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license-strict.js +0 -23
  205. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/info-license.js +0 -14
  206. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-ambiguous-paths.js +0 -42
  207. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-duplicated-tag-names.js +0 -21
  208. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-enum-type-mismatch.js +0 -38
  209. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-http-verbs-in-paths.js +0 -31
  210. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-identical-paths.js +0 -21
  211. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-parameter-examples.js +0 -32
  212. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-invalid-schema-examples.js +0 -34
  213. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-path-trailing-slash.js +0 -13
  214. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-required-schema-properties-undefined.js +0 -78
  215. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-schema-type-mismatch.js +0 -19
  216. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/no-unresolved-refs.js +0 -42
  217. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-2xx-response.js +0 -20
  218. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-4xx-response.js +0 -20
  219. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-description.js +0 -9
  220. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-unique.js +0 -17
  221. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId-url-safe.js +0 -15
  222. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-operationId.js +0 -13
  223. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-parameters-unique.js +0 -37
  224. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-singular-tag.js +0 -13
  225. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-summary.js +0 -9
  226. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/operation-tag-defined.js +0 -27
  227. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/parameter-description.js +0 -19
  228. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-declaration-must-exist.js +0 -13
  229. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-http-verbs-order.js +0 -23
  230. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-not-include-query.js +0 -15
  231. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-params-defined.js +0 -125
  232. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/path-segment-plural.js +0 -30
  233. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/paths-kebab-case.js +0 -17
  234. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/required-string-property-missing-min-length.js +0 -34
  235. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/response-contains-header.js +0 -26
  236. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/scalar-property-missing-example.js +0 -39
  237. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/security-defined.js +0 -62
  238. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/spec-strict-refs.js +0 -27
  239. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/struct.js +0 -150
  240. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tag-description.js +0 -9
  241. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/common/tags-alphabetical.js +0 -18
  242. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/boolean-parameter-prefixes.js +0 -19
  243. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/index.js +0 -93
  244. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/request-mime-type.js +0 -14
  245. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-contains-property.js +0 -34
  246. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas2/response-mime-type.js +0 -14
  247. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/array-parameter-serialization.js +0 -26
  248. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/boolean-parameter-prefixes.js +0 -21
  249. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/component-name-unique.js +0 -130
  250. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/index.js +0 -129
  251. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-empty-servers.js +0 -20
  252. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-example-value-and-externalValue.js +0 -13
  253. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-invalid-media-type-examples.js +0 -59
  254. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-example.com.js +0 -15
  255. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-trailing-slash.js +0 -15
  256. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-server-variables-empty-enum.js +0 -58
  257. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-undefined-server-variable.js +0 -28
  258. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/no-unused-components.js +0 -83
  259. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/nullable-type-sibling.js +0 -15
  260. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +0 -33
  261. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/request-mime-type.js +0 -28
  262. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-contains-property.js +0 -36
  263. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/response-mime-type.js +0 -28
  264. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-components-invalid-map-name.js +0 -59
  265. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-discriminator-defaultMapping.js +0 -32
  266. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-example-values.js +0 -31
  267. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +0 -16
  268. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-no-invalid-tag-parents.js +0 -38
  269. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/oas3/spec-querystring-parameters.js +0 -65
  270. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/index.js +0 -20
  271. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/no-unused-components.js +0 -82
  272. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-duplicated-method-params.js +0 -28
  273. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/openrpc/spec-no-required-params-after-optional.js +0 -31
  274. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/other/stats.js +0 -74
  275. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/overlay1/index.js +0 -12
  276. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-criteria-xpath.js +0 -20
  277. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +0 -30
  278. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +0 -25
  279. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/respect-supported-versions.js +0 -18
  280. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-name-reference.js +0 -35
  281. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/respect/x-security-scheme-required-values.js +0 -60
  282. package/.output/server/node_modules/@redocly/openapi-core/lib/rules/utils.js +0 -172
  283. package/.output/server/node_modules/@redocly/openapi-core/lib/types/arazzo.js +0 -482
  284. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi2.js +0 -1157
  285. package/.output/server/node_modules/@redocly/openapi-core/lib/types/asyncapi3.js +0 -511
  286. package/.output/server/node_modules/@redocly/openapi-core/lib/types/entity.js +0 -32
  287. package/.output/server/node_modules/@redocly/openapi-core/lib/types/index.js +0 -90
  288. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-adapter.js +0 -174
  289. package/.output/server/node_modules/@redocly/openapi-core/lib/types/json-schema-draft7.shared.js +0 -101
  290. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas2.js +0 -454
  291. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3.js +0 -828
  292. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_1.js +0 -292
  293. package/.output/server/node_modules/@redocly/openapi-core/lib/types/oas3_2.js +0 -306
  294. package/.output/server/node_modules/@redocly/openapi-core/lib/types/openrpc.js +0 -360
  295. package/.output/server/node_modules/@redocly/openapi-core/lib/types/overlay.js +0 -61
  296. package/.output/server/node_modules/@redocly/openapi-core/lib/types/redocly-yaml.js +0 -555
  297. package/.output/server/node_modules/@redocly/openapi-core/lib/typings/arazzo.js +0 -3
  298. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/assign-config.js +0 -28
  299. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/dequal.js +0 -36
  300. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/does-yaml-file-exist.js +0 -7
  301. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/error.js +0 -3
  302. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-intersection-length.js +0 -11
  303. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-matching-status-code-range.js +0 -4
  304. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/get-own.js +0 -4
  305. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/identity.js +0 -4
  306. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-custom-rule-id.js +0 -4
  307. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-defined.js +0 -4
  308. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-array.js +0 -4
  309. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-empty-object.js +0 -5
  310. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-array.js +0 -4
  311. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-empty-object.js +0 -6
  312. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-not-string.js +0 -5
  313. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-ordered.js +0 -27
  314. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-path-parameter.js +0 -4
  315. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-plain-object.js +0 -4
  316. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-string.js +0 -4
  317. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/is-truthy.js +0 -4
  318. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/keys-of.js +0 -6
  319. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/make-ref-id.js +0 -4
  320. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/next-tick.js +0 -6
  321. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/oas-has-component.js +0 -4
  322. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/omit.js +0 -8
  323. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pause.js +0 -4
  324. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/pluralize.js +0 -8
  325. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/read-file-from-url.js +0 -26
  326. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/regex-from-string.js +0 -5
  327. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/scorecards.js +0 -99
  328. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/slash.js +0 -11
  329. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/split-camel-case-into-words.js +0 -13
  330. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/stack.js +0 -7
  331. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/validate-mime-type.js +0 -31
  332. package/.output/server/node_modules/@redocly/openapi-core/lib/utils/yaml-fs-helper.js +0 -23
  333. package/.output/server/node_modules/@redocly/openapi-core/lib/visitors.js +0 -177
  334. package/.output/server/node_modules/@redocly/openapi-core/lib/walk.js +0 -303
  335. package/.output/server/node_modules/@redocly/openapi-core/package.json +0 -74
  336. package/.output/server/node_modules/ajv-formats/dist/formats.js +0 -208
  337. package/.output/server/node_modules/ajv-formats/dist/index.js +0 -37
  338. package/.output/server/node_modules/ajv-formats/dist/limit.js +0 -69
  339. package/.output/server/node_modules/ajv-formats/package.json +0 -74
  340. package/.output/server/node_modules/colorette/index.js +0 -82
  341. package/.output/server/node_modules/colorette/package.json +0 -39
  342. package/.output/server/node_modules/js-levenshtein/index.js +0 -105
  343. package/.output/server/node_modules/js-levenshtein/package.json +0 -49
  344. package/.output/server/node_modules/picomatch/index.js +0 -17
  345. package/.output/server/node_modules/picomatch/lib/constants.js +0 -180
  346. package/.output/server/node_modules/picomatch/lib/parse.js +0 -1085
  347. package/.output/server/node_modules/picomatch/lib/picomatch.js +0 -341
  348. package/.output/server/node_modules/picomatch/lib/scan.js +0 -391
  349. package/.output/server/node_modules/picomatch/lib/utils.js +0 -72
  350. package/.output/server/node_modules/picomatch/package.json +0 -83
  351. package/.output/server/node_modules/pluralize/package.json +0 -40
  352. package/.output/server/node_modules/pluralize/pluralize.js +0 -503
  353. package/.output/server/node_modules/yaml-ast-parser/dist/src/common.js +0 -45
  354. package/.output/server/node_modules/yaml-ast-parser/dist/src/dumper.js +0 -644
  355. package/.output/server/node_modules/yaml-ast-parser/dist/src/exception.js +0 -40
  356. package/.output/server/node_modules/yaml-ast-parser/dist/src/index.js +0 -22
  357. package/.output/server/node_modules/yaml-ast-parser/dist/src/loader.js +0 -1416
  358. package/.output/server/node_modules/yaml-ast-parser/dist/src/mark.js +0 -62
  359. package/.output/server/node_modules/yaml-ast-parser/dist/src/scalarInference.js +0 -82
  360. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/core.js +0 -8
  361. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_full.js +0 -14
  362. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/default_safe.js +0 -19
  363. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/failsafe.js +0 -10
  364. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema/json.js +0 -14
  365. package/.output/server/node_modules/yaml-ast-parser/dist/src/schema.js +0 -78
  366. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/binary.js +0 -92
  367. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/bool.js +0 -32
  368. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/float.js +0 -95
  369. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/int.js +0 -155
  370. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/regexp.js +0 -64
  371. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/js/undefined.js +0 -22
  372. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/map.js +0 -7
  373. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/merge.js +0 -10
  374. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/null.js +0 -30
  375. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/omap.js +0 -46
  376. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/pairs.js +0 -55
  377. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/seq.js +0 -7
  378. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/set.js +0 -22
  379. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/str.js +0 -7
  380. package/.output/server/node_modules/yaml-ast-parser/dist/src/type/timestamp.js +0 -70
  381. package/.output/server/node_modules/yaml-ast-parser/dist/src/type.js +0 -54
  382. package/.output/server/node_modules/yaml-ast-parser/dist/src/yamlAST.js +0 -82
  383. package/.output/server/node_modules/yaml-ast-parser/package.json +0 -39
@@ -1,14 +0,0 @@
1
- import { validateMimeType } from '../../utils/validate-mime-type.js';
2
- export const RequestMimeType = ({ allowedValues }) => {
3
- return {
4
- Root(root, ctx) {
5
- validateMimeType({ type: 'consumes', value: root }, ctx, allowedValues);
6
- },
7
- Operation: {
8
- leave(operation, ctx) {
9
- validateMimeType({ type: 'consumes', value: operation }, ctx, allowedValues);
10
- },
11
- },
12
- };
13
- };
14
- //# sourceMappingURL=request-mime-type.js.map
@@ -1,34 +0,0 @@
1
- import { getMatchingStatusCodeRange } from '../../utils/get-matching-status-code-range.js';
2
- export const ResponseContainsProperty = (options) => {
3
- const names = options.names || {};
4
- let key;
5
- return {
6
- Operation: {
7
- Response: {
8
- skip: (_response, key) => {
9
- return `${key}` === '204';
10
- },
11
- enter: (_response, ctx) => {
12
- key = ctx.key;
13
- },
14
- Schema(schema, { report, location }) {
15
- if (schema.type !== 'object')
16
- return;
17
- const expectedProperties = names[key] ||
18
- names[getMatchingStatusCodeRange(key)] ||
19
- names[getMatchingStatusCodeRange(key).toLowerCase()] ||
20
- [];
21
- for (const expectedProperty of expectedProperties) {
22
- if (!schema.properties?.[expectedProperty]) {
23
- report({
24
- message: `Response object must contain a top-level "${expectedProperty}" property.`,
25
- location: location.child('properties').key(),
26
- });
27
- }
28
- }
29
- },
30
- },
31
- },
32
- };
33
- };
34
- //# sourceMappingURL=response-contains-property.js.map
@@ -1,14 +0,0 @@
1
- import { validateMimeType } from '../../utils/validate-mime-type.js';
2
- export const ResponseMimeType = ({ allowedValues }) => {
3
- return {
4
- Root(root, ctx) {
5
- validateMimeType({ type: 'produces', value: root }, ctx, allowedValues);
6
- },
7
- Operation: {
8
- leave(operation, ctx) {
9
- validateMimeType({ type: 'produces', value: operation }, ctx, allowedValues);
10
- },
11
- },
12
- };
13
- };
14
- //# sourceMappingURL=response-mime-type.js.map
@@ -1,26 +0,0 @@
1
- import { isRef } from '../../ref-utils.js';
2
- export const ArrayParameterSerialization = (options) => {
3
- return {
4
- Parameter: {
5
- leave(node, ctx) {
6
- if (!node.schema) {
7
- return;
8
- }
9
- const schema = (isRef(node.schema) ? ctx.resolve(node.schema).node : node.schema);
10
- if (schema &&
11
- shouldReportMissingStyleAndExplode(node, schema, options)) {
12
- ctx.report({
13
- message: `Parameter \`${node.name}\` should have \`style\` and \`explode \` fields`,
14
- location: ctx.location,
15
- });
16
- }
17
- },
18
- },
19
- };
20
- };
21
- function shouldReportMissingStyleAndExplode(node, schema, options) {
22
- return ((schema.type === 'array' || schema.items || schema.prefixItems) &&
23
- (node.style === undefined || node.explode === undefined) &&
24
- (!options.in || (node.in && options.in?.includes(node.in))));
25
- }
26
- //# sourceMappingURL=array-parameter-serialization.js.map
@@ -1,21 +0,0 @@
1
- export const BooleanParameterPrefixes = (options) => {
2
- const prefixes = options.prefixes || ['is', 'has'];
3
- const regexp = new RegExp(`^(${prefixes.join('|')})[A-Z-_]`);
4
- const wrappedPrefixes = prefixes.map((p) => `\`${p}\``);
5
- const prefixesString = wrappedPrefixes.length === 1
6
- ? wrappedPrefixes[0]
7
- : wrappedPrefixes.slice(0, -1).join(', ') + ' or ' + wrappedPrefixes[prefixes.length - 1];
8
- return {
9
- Parameter: {
10
- Schema(schema, { report, parentLocations }, parents) {
11
- if (schema.type === 'boolean' && !regexp.test(parents.Parameter.name)) {
12
- report({
13
- message: `Boolean parameter \`${parents.Parameter.name}\` should have ${prefixesString} prefix.`,
14
- location: parentLocations.Parameter.child(['name']),
15
- });
16
- }
17
- },
18
- },
19
- };
20
- };
21
- //# sourceMappingURL=boolean-parameter-prefixes.js.map
@@ -1,130 +0,0 @@
1
- const TYPE_NAME_SCHEMA = 'Schema';
2
- const TYPE_NAME_PARAMETER = 'Parameter';
3
- const TYPE_NAME_RESPONSE = 'Response';
4
- const TYPE_NAME_REQUEST_BODY = 'RequestBody';
5
- const TYPE_NAME_TO_OPTION_COMPONENT_NAME = {
6
- [TYPE_NAME_SCHEMA]: 'schemas',
7
- [TYPE_NAME_PARAMETER]: 'parameters',
8
- [TYPE_NAME_RESPONSE]: 'responses',
9
- [TYPE_NAME_REQUEST_BODY]: 'requestBodies',
10
- };
11
- export const ComponentNameUnique = (options) => {
12
- const components = new Map();
13
- const typeNames = [];
14
- if (options.schemas !== 'off') {
15
- typeNames.push(TYPE_NAME_SCHEMA);
16
- }
17
- if (options.parameters !== 'off') {
18
- typeNames.push(TYPE_NAME_PARAMETER);
19
- }
20
- if (options.responses !== 'off') {
21
- typeNames.push(TYPE_NAME_RESPONSE);
22
- }
23
- if (options.requestBodies !== 'off') {
24
- typeNames.push(TYPE_NAME_REQUEST_BODY);
25
- }
26
- const rule = {
27
- ref: {
28
- leave(ref, { type, resolve }) {
29
- const typeName = type.name;
30
- if (typeNames.includes(typeName)) {
31
- const resolvedRef = resolve(ref);
32
- if (!resolvedRef.location)
33
- return;
34
- addComponentFromAbsoluteLocation(typeName, resolvedRef.location);
35
- }
36
- },
37
- },
38
- Root: {
39
- leave(root, ctx) {
40
- components.forEach((value, key, _) => {
41
- if (value.absolutePointers.size > 1) {
42
- const component = getComponentFromKey(key);
43
- const optionComponentName = getOptionComponentNameForTypeName(component.typeName);
44
- const componentSeverity = optionComponentName ? options[optionComponentName] : null;
45
- for (const location of value.locations) {
46
- const definitions = Array.from(value.absolutePointers)
47
- .filter((v) => v !== location.absolutePointer.toString())
48
- .map((v) => `- ${v}`)
49
- .join('\n');
50
- const problem = {
51
- message: `Component '${optionComponentName}/${component.componentName}' is not unique. It is also defined at:\n${definitions}`,
52
- location: location,
53
- };
54
- if (componentSeverity) {
55
- problem.forceSeverity = componentSeverity;
56
- }
57
- ctx.report(problem);
58
- }
59
- }
60
- });
61
- },
62
- },
63
- };
64
- if (options.schemas != 'off') {
65
- rule.NamedSchemas = {
66
- Schema(_, { location }) {
67
- addComponentFromAbsoluteLocation(TYPE_NAME_SCHEMA, location);
68
- },
69
- };
70
- }
71
- if (options.responses != 'off') {
72
- rule.NamedResponses = {
73
- Response(_, { location }) {
74
- addComponentFromAbsoluteLocation(TYPE_NAME_RESPONSE, location);
75
- },
76
- };
77
- }
78
- if (options.parameters != 'off') {
79
- rule.NamedParameters = {
80
- Parameter(_, { location }) {
81
- addComponentFromAbsoluteLocation(TYPE_NAME_PARAMETER, location);
82
- },
83
- };
84
- }
85
- if (options.requestBodies != 'off') {
86
- rule.NamedRequestBodies = {
87
- RequestBody(_, { location }) {
88
- addComponentFromAbsoluteLocation(TYPE_NAME_REQUEST_BODY, location);
89
- },
90
- };
91
- }
92
- return rule;
93
- function getComponentNameFromAbsoluteLocation(absoluteLocation) {
94
- const componentName = absoluteLocation.split('/').slice(-1)[0];
95
- if (componentName.endsWith('.yml') ||
96
- componentName.endsWith('.yaml') ||
97
- componentName.endsWith('.json')) {
98
- return componentName.slice(0, componentName.lastIndexOf('.'));
99
- }
100
- return componentName;
101
- }
102
- function addFoundComponent(typeName, componentName, location) {
103
- const key = getKeyForComponent(typeName, componentName);
104
- const entry = components.get(key) ?? {
105
- absolutePointers: new Set(),
106
- locations: [],
107
- };
108
- const absoluteLocation = location.absolutePointer.toString();
109
- if (!entry.absolutePointers.has(absoluteLocation)) {
110
- entry.absolutePointers.add(absoluteLocation);
111
- entry.locations.push(location);
112
- }
113
- components.set(key, entry);
114
- }
115
- function addComponentFromAbsoluteLocation(typeName, location) {
116
- const componentName = getComponentNameFromAbsoluteLocation(location.absolutePointer.toString());
117
- addFoundComponent(typeName, componentName, location);
118
- }
119
- };
120
- function getOptionComponentNameForTypeName(typeName) {
121
- return TYPE_NAME_TO_OPTION_COMPONENT_NAME[typeName] ?? null;
122
- }
123
- function getKeyForComponent(typeName, componentName) {
124
- return `${typeName}/${componentName}`;
125
- }
126
- function getComponentFromKey(key) {
127
- const [typeName, componentName] = key.split('/');
128
- return { typeName, componentName };
129
- }
130
- //# sourceMappingURL=component-name-unique.js.map
@@ -1,129 +0,0 @@
1
- import { Struct } from '../common/struct.js';
2
- import { Operation2xxResponse } from '../common/operation-2xx-response.js';
3
- import { Operation4xxResponse } from '../common/operation-4xx-response.js';
4
- import { Assertions } from '../common/assertions/index.js';
5
- import { OperationIdUnique } from '../common/operation-operationId-unique.js';
6
- import { OperationParametersUnique } from '../common/operation-parameters-unique.js';
7
- import { PathParamsDefined } from '../common/path-params-defined.js';
8
- import { OperationTagDefined } from '../common/operation-tag-defined.js';
9
- import { NoExampleValueAndExternalValue } from './no-example-value-and-externalValue.js';
10
- import { NoEnumTypeMismatch } from '../common/no-enum-type-mismatch.js';
11
- import { NoPathTrailingSlash } from '../common/no-path-trailing-slash.js';
12
- import { PathDeclarationMustExist } from '../common/path-declaration-must-exist.js';
13
- import { OperationIdUrlSafe } from '../common/operation-operationId-url-safe.js';
14
- import { TagsAlphabetical } from '../common/tags-alphabetical.js';
15
- import { NoServerExample } from './no-server-example.com.js';
16
- import { NoServerTrailingSlash } from './no-server-trailing-slash.js';
17
- import { TagDescription } from '../common/tag-description.js';
18
- import { InfoContact } from '../common/info-contact.js';
19
- import { InfoLicense } from '../common/info-license.js';
20
- import { InfoLicenseStrict } from '../common/info-license-strict.js';
21
- import { OperationDescription } from '../common/operation-description.js';
22
- import { NoUnusedComponents } from './no-unused-components.js';
23
- import { PathNotIncludeQuery } from '../common/path-not-include-query.js';
24
- import { ParameterDescription } from '../common/parameter-description.js';
25
- import { OperationSingularTag } from '../common/operation-singular-tag.js';
26
- import { SecurityDefined } from '../common/security-defined.js';
27
- import { NoUnresolvedRefs } from '../common/no-unresolved-refs.js';
28
- import { BooleanParameterPrefixes } from './boolean-parameter-prefixes.js';
29
- import { PathsKebabCase } from '../common/paths-kebab-case.js';
30
- import { PathHttpVerbsOrder } from '../common/path-http-verbs-order.js';
31
- import { NoEmptyServers } from './no-empty-servers.js';
32
- import { ValidContentExamples } from './no-invalid-media-type-examples.js';
33
- import { NoIdenticalPaths } from '../common/no-identical-paths.js';
34
- import { NoUndefinedServerVariable } from './no-undefined-server-variable.js';
35
- import { OperationOperationId } from '../common/operation-operationId.js';
36
- import { OperationSummary } from '../common/operation-summary.js';
37
- import { NoAmbiguousPaths } from '../common/no-ambiguous-paths.js';
38
- import { NoServerVariablesEmptyEnum } from './no-server-variables-empty-enum.js';
39
- import { NoHttpVerbsInPaths } from '../common/no-http-verbs-in-paths.js';
40
- import { RequestMimeType } from './request-mime-type.js';
41
- import { ResponseMimeType } from './response-mime-type.js';
42
- import { PathSegmentPlural } from '../common/path-segment-plural.js';
43
- import { NoInvalidSchemaExamples } from '../common/no-invalid-schema-examples.js';
44
- import { NoInvalidParameterExamples } from '../common/no-invalid-parameter-examples.js';
45
- import { ResponseContainsHeader } from '../common/response-contains-header.js';
46
- import { ResponseContainsProperty } from './response-contains-property.js';
47
- import { ScalarPropertyMissingExample } from '../common/scalar-property-missing-example.js';
48
- import { SpecComponentsInvalidMapName } from './spec-components-invalid-map-name.js';
49
- import { Operation4xxProblemDetailsRfc7807 } from './operation-4xx-problem-details-rfc7807.js';
50
- import { RequiredStringPropertyMissingMinLength } from '../common/required-string-property-missing-min-length.js';
51
- import { SpecStrictRefs } from '../common/spec-strict-refs.js';
52
- import { ComponentNameUnique } from './component-name-unique.js';
53
- import { ArrayParameterSerialization } from './array-parameter-serialization.js';
54
- import { NoRequiredSchemaPropertiesUndefined } from '../common/no-required-schema-properties-undefined.js';
55
- import { NoSchemaTypeMismatch } from '../common/no-schema-type-mismatch.js';
56
- import { NoDuplicatedTagNames } from '../common/no-duplicated-tag-names.js';
57
- import { NullableTypeSibling } from './nullable-type-sibling.js';
58
- import { SpecNoInvalidTagParents } from './spec-no-invalid-tag-parents.js';
59
- import { SpecNoInvalidEncodingCombinations } from './spec-no-invalid-encoding-combinations.js';
60
- import { SpecDiscriminatorDefaultMapping } from './spec-discriminator-defaultMapping.js';
61
- import { SpecExampleValues } from './spec-example-values.js';
62
- import { SpecQuerystringParameters } from './spec-querystring-parameters.js';
63
- export const rules = {
64
- struct: Struct,
65
- 'info-contact': InfoContact,
66
- 'info-license': InfoLicense,
67
- 'info-license-strict': InfoLicenseStrict,
68
- 'operation-2xx-response': Operation2xxResponse,
69
- 'operation-4xx-response': Operation4xxResponse,
70
- 'operation-4xx-problem-details-rfc7807': Operation4xxProblemDetailsRfc7807,
71
- assertions: Assertions,
72
- 'operation-operationId-unique': OperationIdUnique,
73
- 'operation-parameters-unique': OperationParametersUnique,
74
- 'operation-tag-defined': OperationTagDefined,
75
- 'no-example-value-and-externalValue': NoExampleValueAndExternalValue,
76
- 'no-enum-type-mismatch': NoEnumTypeMismatch,
77
- 'no-path-trailing-slash': NoPathTrailingSlash,
78
- 'no-empty-servers': NoEmptyServers,
79
- 'path-declaration-must-exist': PathDeclarationMustExist,
80
- 'operation-operationId-url-safe': OperationIdUrlSafe,
81
- 'operation-operationId': OperationOperationId,
82
- 'operation-summary': OperationSummary,
83
- 'tags-alphabetical': TagsAlphabetical,
84
- 'no-server-example.com': NoServerExample,
85
- 'no-server-trailing-slash': NoServerTrailingSlash,
86
- 'tag-description': TagDescription,
87
- 'operation-description': OperationDescription,
88
- 'no-unused-components': NoUnusedComponents,
89
- 'path-not-include-query': PathNotIncludeQuery,
90
- 'path-parameters-defined': PathParamsDefined,
91
- 'path-params-defined': PathParamsDefined,
92
- 'parameter-description': ParameterDescription,
93
- 'operation-singular-tag': OperationSingularTag,
94
- 'security-defined': SecurityDefined,
95
- 'no-unresolved-refs': NoUnresolvedRefs,
96
- 'paths-kebab-case': PathsKebabCase,
97
- 'boolean-parameter-prefixes': BooleanParameterPrefixes,
98
- 'path-http-verbs-order': PathHttpVerbsOrder,
99
- 'no-invalid-media-type-examples': ValidContentExamples,
100
- 'no-identical-paths': NoIdenticalPaths,
101
- 'no-ambiguous-paths': NoAmbiguousPaths,
102
- 'no-undefined-server-variable': NoUndefinedServerVariable,
103
- 'no-server-variables-empty-enum': NoServerVariablesEmptyEnum,
104
- 'no-http-verbs-in-paths': NoHttpVerbsInPaths,
105
- 'request-mime-type': RequestMimeType,
106
- 'response-mime-type': ResponseMimeType,
107
- 'path-segment-plural': PathSegmentPlural,
108
- 'no-invalid-schema-examples': NoInvalidSchemaExamples,
109
- 'no-invalid-parameter-examples': NoInvalidParameterExamples,
110
- 'response-contains-header': ResponseContainsHeader,
111
- 'response-contains-property': ResponseContainsProperty,
112
- 'scalar-property-missing-example': ScalarPropertyMissingExample,
113
- 'spec-components-invalid-map-name': SpecComponentsInvalidMapName,
114
- 'required-string-property-missing-min-length': RequiredStringPropertyMissingMinLength,
115
- 'spec-strict-refs': SpecStrictRefs,
116
- 'component-name-unique': ComponentNameUnique,
117
- 'array-parameter-serialization': ArrayParameterSerialization,
118
- 'no-required-schema-properties-undefined': NoRequiredSchemaPropertiesUndefined,
119
- 'no-schema-type-mismatch': NoSchemaTypeMismatch,
120
- 'no-duplicated-tag-names': NoDuplicatedTagNames,
121
- 'nullable-type-sibling': NullableTypeSibling,
122
- 'spec-no-invalid-tag-parents': SpecNoInvalidTagParents,
123
- 'spec-no-invalid-encoding-combinations': SpecNoInvalidEncodingCombinations,
124
- 'spec-discriminator-defaultMapping': SpecDiscriminatorDefaultMapping,
125
- 'spec-example-values': SpecExampleValues,
126
- 'spec-querystring-parameters': SpecQuerystringParameters,
127
- };
128
- export const preprocessors = {};
129
- //# sourceMappingURL=index.js.map
@@ -1,20 +0,0 @@
1
- export const NoEmptyServers = () => {
2
- return {
3
- Root(root, { report, location }) {
4
- if (!root.hasOwnProperty('servers')) {
5
- report({
6
- message: 'Servers must be present.',
7
- location: location.child(['openapi']).key(),
8
- });
9
- return;
10
- }
11
- if (!Array.isArray(root.servers) || root.servers.length === 0) {
12
- report({
13
- message: 'Servers must be a non-empty array.',
14
- location: location.child(['servers']).key(),
15
- });
16
- }
17
- },
18
- };
19
- };
20
- //# sourceMappingURL=no-empty-servers.js.map
@@ -1,13 +0,0 @@
1
- export const NoExampleValueAndExternalValue = () => {
2
- return {
3
- Example(example, { report, location }) {
4
- if (example.value && example.externalValue) {
5
- report({
6
- message: 'Example object can have either `value` or `externalValue` fields.',
7
- location: location.child(['value']).key(),
8
- });
9
- }
10
- },
11
- };
12
- };
13
- //# sourceMappingURL=no-example-value-and-externalValue.js.map
@@ -1,59 +0,0 @@
1
- import { isRef } from '../../ref-utils.js';
2
- import { validateExample } from '../utils.js';
3
- import { isDefined } from '../../utils/is-defined.js';
4
- import { isPlainObject } from '../../utils/is-plain-object.js';
5
- export const ValidContentExamples = (opts) => {
6
- const skip = (mediaType) => {
7
- return mediaType.schema === undefined;
8
- };
9
- const leave = (context) => (mediaType, ctx) => {
10
- const { location, resolve } = ctx;
11
- if (isDefined(mediaType.example)) {
12
- resolveAndValidateExample(mediaType.example, location.child('example'));
13
- }
14
- else if (isPlainObject(mediaType.examples)) {
15
- for (const exampleName of Object.keys(mediaType.examples)) {
16
- resolveAndValidateExample(mediaType.examples[exampleName], location.child(['examples', exampleName, 'value']), true);
17
- }
18
- }
19
- function resolveAndValidateExample(example, location, isMultiple) {
20
- if (isRef(example)) {
21
- const resolved = resolve(example);
22
- if (!resolved.location)
23
- return;
24
- location = isMultiple ? resolved.location.child('value') : resolved.location;
25
- example = resolved.node;
26
- }
27
- if (isMultiple && typeof example?.value === 'undefined') {
28
- return;
29
- }
30
- validateExample(isMultiple ? example.value : example, mediaType.schema, {
31
- location,
32
- ctx,
33
- allowAdditionalProperties: !!opts.allowAdditionalProperties,
34
- ajvContext: context,
35
- });
36
- }
37
- };
38
- return {
39
- Parameter: {
40
- MediaType: {
41
- skip,
42
- leave: leave({ apiContext: 'request' }),
43
- },
44
- },
45
- RequestBody: {
46
- MediaType: {
47
- skip,
48
- leave: leave({ apiContext: 'request' }),
49
- },
50
- },
51
- Response: {
52
- MediaType: {
53
- skip,
54
- leave: leave({ apiContext: 'response' }),
55
- },
56
- },
57
- };
58
- };
59
- //# sourceMappingURL=no-invalid-media-type-examples.js.map
@@ -1,15 +0,0 @@
1
- export const NoServerExample = () => {
2
- return {
3
- Server(server, { report, location }) {
4
- // eslint-disable-next-line no-useless-escape
5
- const pattern = /^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;
6
- if (server.url && pattern.test(server.url)) {
7
- report({
8
- message: 'Server `url` should not point to example.com or localhost.',
9
- location: location.child(['url']),
10
- });
11
- }
12
- },
13
- };
14
- };
15
- //# sourceMappingURL=no-server-example.com.js.map
@@ -1,15 +0,0 @@
1
- export const NoServerTrailingSlash = () => {
2
- return {
3
- Server(server, { report, location }) {
4
- if (!server.url)
5
- return;
6
- if (server.url.endsWith('/') && server.url !== '/') {
7
- report({
8
- message: 'Server `url` should not have a trailing slash.',
9
- location: location.child(['url']),
10
- });
11
- }
12
- },
13
- };
14
- };
15
- //# sourceMappingURL=no-server-trailing-slash.js.map
@@ -1,58 +0,0 @@
1
- export const NoServerVariablesEmptyEnum = () => {
2
- return {
3
- Root(root, { report, location }) {
4
- if (!root.servers || root.servers.length === 0)
5
- return;
6
- const invalidVariables = [];
7
- if (Array.isArray(root.servers)) {
8
- for (const server of root.servers) {
9
- const enumErrors = checkEnumVariables(server);
10
- if (!enumErrors)
11
- continue;
12
- invalidVariables.push(...enumErrors);
13
- }
14
- }
15
- else {
16
- const enumErrors = checkEnumVariables(root.servers);
17
- if (!enumErrors)
18
- return;
19
- invalidVariables.push(...enumErrors);
20
- }
21
- for (const invalidVariable of invalidVariables) {
22
- if (invalidVariable === 'empty') {
23
- report({
24
- message: 'Server variable with `enum` must be a non-empty array.',
25
- location: location.child(['servers']).key(),
26
- });
27
- }
28
- if (invalidVariable === 'invalidDefaultValue') {
29
- report({
30
- message: 'Server variable define `enum` and `default`. `enum` must include default value',
31
- location: location.child(['servers']).key(),
32
- });
33
- }
34
- }
35
- },
36
- };
37
- };
38
- function checkEnumVariables(server) {
39
- if (server.variables && Object.keys(server.variables).length === 0)
40
- return;
41
- const errors = [];
42
- for (const variable in server.variables) {
43
- const serverVariable = server.variables[variable];
44
- if (!serverVariable.enum)
45
- continue;
46
- if (Array.isArray(serverVariable.enum) && serverVariable.enum?.length === 0)
47
- errors.push('empty');
48
- if (!serverVariable.default)
49
- continue;
50
- const defaultValue = server.variables[variable].default;
51
- if (serverVariable.enum && !serverVariable.enum.includes(defaultValue))
52
- errors.push('invalidDefaultValue');
53
- }
54
- if (errors.length)
55
- return errors;
56
- return;
57
- }
58
- //# sourceMappingURL=no-server-variables-empty-enum.js.map
@@ -1,28 +0,0 @@
1
- export const NoUndefinedServerVariable = () => {
2
- return {
3
- Server(server, { report, location }) {
4
- if (!server?.url)
5
- return;
6
- const urlVariables = server.url.match(/{[^}]+}/g)?.map((e) => e.slice(1, e.length - 1)) || [];
7
- const definedVariables = (server?.variables && Object.keys(server.variables)) || [];
8
- for (const serverVar of urlVariables) {
9
- if (!definedVariables.includes(serverVar)) {
10
- report({
11
- message: `The \`${serverVar}\` variable is not defined in the \`variables\` objects.`,
12
- location: location.child(['url']),
13
- });
14
- }
15
- }
16
- for (const definedServerVar of definedVariables) {
17
- if (!urlVariables.includes(definedServerVar)) {
18
- report({
19
- message: `The \`${definedServerVar}\` variable is not used in the server's \`url\` field.`,
20
- location: location.child(['variables', definedServerVar]).key(),
21
- from: location.child('url'),
22
- });
23
- }
24
- }
25
- },
26
- };
27
- };
28
- //# sourceMappingURL=no-undefined-server-variable.js.map