@redocly/openapi-core 0.0.0-snapshot.1744362365 → 0.0.0-snapshot.1744801622

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 (651) hide show
  1. package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts +1 -2
  2. package/lib/benchmark/benches/lint-with-many-rules.bench.js +19 -17
  3. package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts +1 -2
  4. package/lib/benchmark/benches/lint-with-nested-rule.bench.js +19 -15
  5. package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts +1 -2
  6. package/lib/benchmark/benches/lint-with-no-rules.bench.js +19 -15
  7. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts +1 -2
  8. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +19 -15
  9. package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts +1 -2
  10. package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +19 -15
  11. package/lib/benchmark/benches/recommended-oas3.bench.d.ts +1 -2
  12. package/lib/benchmark/benches/recommended-oas3.bench.js +18 -15
  13. package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts +1 -2
  14. package/lib/benchmark/benches/resolve-with-no-external.bench.js +17 -14
  15. package/lib/benchmark/utils.d.ts +4 -5
  16. package/lib/benchmark/utils.js +14 -11
  17. package/lib/bundle.d.ts +9 -8
  18. package/lib/bundle.js +84 -72
  19. package/lib/config/all.d.ts +1 -2
  20. package/lib/config/all.js +3 -2
  21. package/lib/config/builtIn.d.ts +1 -2
  22. package/lib/config/builtIn.js +49 -44
  23. package/lib/config/config-resolvers.d.ts +5 -6
  24. package/lib/config/config-resolvers.js +94 -85
  25. package/lib/config/config.d.ts +8 -6
  26. package/lib/config/config.js +73 -66
  27. package/lib/config/index.d.ts +7 -8
  28. package/lib/config/index.js +23 -8
  29. package/lib/config/load.d.ts +8 -5
  30. package/lib/config/load.js +73 -28
  31. package/lib/config/minimal.d.ts +1 -2
  32. package/lib/config/minimal.js +3 -2
  33. package/lib/config/recommended-strict.d.ts +1 -2
  34. package/lib/config/recommended-strict.js +3 -2
  35. package/lib/config/recommended.d.ts +1 -2
  36. package/lib/config/recommended.js +3 -2
  37. package/lib/config/rules.d.ts +3 -4
  38. package/lib/config/rules.js +6 -4
  39. package/lib/config/spec.d.ts +1 -2
  40. package/lib/config/spec.js +3 -2
  41. package/lib/config/types.d.ts +13 -6
  42. package/lib/config/types.js +2 -2
  43. package/lib/config/utils.d.ts +2 -3
  44. package/lib/config/utils.js +89 -75
  45. package/lib/decorators/arazzo/index.d.ts +0 -1
  46. package/lib/decorators/arazzo/index.js +4 -2
  47. package/lib/decorators/async2/index.d.ts +0 -1
  48. package/lib/decorators/async2/index.js +4 -2
  49. package/lib/decorators/async3/index.d.ts +0 -1
  50. package/lib/decorators/async3/index.js +4 -2
  51. package/lib/decorators/common/filters/filter-helper.d.ts +1 -2
  52. package/lib/decorators/common/filters/filter-helper.js +12 -9
  53. package/lib/decorators/common/filters/filter-in.d.ts +1 -2
  54. package/lib/decorators/common/filters/filter-in.js +8 -5
  55. package/lib/decorators/common/filters/filter-out.d.ts +1 -2
  56. package/lib/decorators/common/filters/filter-out.js +8 -5
  57. package/lib/decorators/common/info-description-override.d.ts +1 -2
  58. package/lib/decorators/common/info-description-override.js +7 -4
  59. package/lib/decorators/common/info-override.d.ts +1 -2
  60. package/lib/decorators/common/info-override.js +5 -2
  61. package/lib/decorators/common/media-type-examples-override.d.ts +1 -2
  62. package/lib/decorators/common/media-type-examples-override.js +10 -7
  63. package/lib/decorators/common/operation-description-override.d.ts +1 -2
  64. package/lib/decorators/common/operation-description-override.js +7 -4
  65. package/lib/decorators/common/registry-dependencies.d.ts +2 -0
  66. package/lib/decorators/common/registry-dependencies.js +24 -0
  67. package/lib/decorators/common/remove-x-internal.d.ts +1 -2
  68. package/lib/decorators/common/remove-x-internal.js +14 -11
  69. package/lib/decorators/common/tag-description-override.d.ts +1 -2
  70. package/lib/decorators/common/tag-description-override.js +7 -4
  71. package/lib/decorators/oas2/index.d.ts +2 -2
  72. package/lib/decorators/oas2/index.js +20 -16
  73. package/lib/decorators/oas2/remove-unused-components.d.ts +1 -2
  74. package/lib/decorators/oas2/remove-unused-components.js +7 -4
  75. package/lib/decorators/oas3/index.d.ts +2 -2
  76. package/lib/decorators/oas3/index.js +22 -18
  77. package/lib/decorators/oas3/remove-unused-components.d.ts +1 -2
  78. package/lib/decorators/oas3/remove-unused-components.js +8 -5
  79. package/lib/decorators/overlay1/index.d.ts +0 -1
  80. package/lib/decorators/overlay1/index.js +4 -2
  81. package/lib/env.d.ts +0 -1
  82. package/lib/env.js +5 -3
  83. package/lib/format/codeframes.d.ts +1 -2
  84. package/lib/format/codeframes.js +19 -15
  85. package/lib/format/format.d.ts +1 -2
  86. package/lib/format/format.js +62 -57
  87. package/lib/index.d.ts +26 -29
  88. package/lib/index.js +98 -24
  89. package/lib/js-yaml/index.d.ts +0 -1
  90. package/lib/js-yaml/index.js +11 -7
  91. package/lib/lint.d.ts +10 -11
  92. package/lib/lint.js +44 -39
  93. package/lib/logger.d.ts +1 -2
  94. package/lib/logger.js +17 -15
  95. package/lib/oas-types.d.ts +3 -4
  96. package/lib/oas-types.js +32 -27
  97. package/lib/output.d.ts +3 -0
  98. package/lib/output.js +9 -0
  99. package/lib/redocly/domains.d.ts +14 -0
  100. package/lib/redocly/domains.js +41 -0
  101. package/lib/redocly/index.d.ts +30 -0
  102. package/lib/redocly/index.js +131 -0
  103. package/lib/redocly/redocly-client-types.d.ts +8 -0
  104. package/lib/redocly/redocly-client-types.js +2 -0
  105. package/lib/redocly/registry-api-types.d.ts +29 -0
  106. package/lib/redocly/registry-api-types.js +2 -0
  107. package/lib/redocly/registry-api.d.ts +17 -0
  108. package/lib/redocly/registry-api.js +100 -0
  109. package/lib/ref-utils.d.ts +2 -3
  110. package/lib/ref-utils.js +33 -18
  111. package/lib/resolve.d.ts +2 -3
  112. package/lib/resolve.js +45 -36
  113. package/lib/rules/ajv.d.ts +3 -4
  114. package/lib/rules/ajv.js +10 -7
  115. package/lib/rules/arazzo/criteria-unique.d.ts +1 -2
  116. package/lib/rules/arazzo/criteria-unique.js +5 -2
  117. package/lib/rules/arazzo/index.d.ts +1 -2
  118. package/lib/rules/arazzo/index.js +35 -33
  119. package/lib/rules/arazzo/parameters-unique.d.ts +1 -2
  120. package/lib/rules/arazzo/parameters-unique.js +5 -2
  121. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +1 -2
  122. package/lib/rules/arazzo/requestBody-replacements-unique.js +5 -2
  123. package/lib/rules/arazzo/sourceDescription-type.d.ts +1 -2
  124. package/lib/rules/arazzo/sourceDescription-type.js +5 -2
  125. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +1 -2
  126. package/lib/rules/arazzo/sourceDescriptions-name-unique.js +5 -2
  127. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +1 -2
  128. package/lib/rules/arazzo/sourceDescriptions-not-empty.js +5 -2
  129. package/lib/rules/arazzo/step-onFailure-unique.d.ts +1 -2
  130. package/lib/rules/arazzo/step-onFailure-unique.js +5 -2
  131. package/lib/rules/arazzo/step-onSuccess-unique.d.ts +1 -2
  132. package/lib/rules/arazzo/step-onSuccess-unique.js +5 -2
  133. package/lib/rules/arazzo/stepId-unique.d.ts +1 -2
  134. package/lib/rules/arazzo/stepId-unique.js +5 -2
  135. package/lib/rules/arazzo/workflow-dependsOn.d.ts +1 -2
  136. package/lib/rules/arazzo/workflow-dependsOn.js +5 -2
  137. package/lib/rules/arazzo/workflowId-unique.d.ts +1 -2
  138. package/lib/rules/arazzo/workflowId-unique.js +5 -2
  139. package/lib/rules/async2/channels-kebab-case.d.ts +1 -2
  140. package/lib/rules/async2/channels-kebab-case.js +5 -2
  141. package/lib/rules/async2/index.d.ts +1 -2
  142. package/lib/rules/async2/index.js +24 -22
  143. package/lib/rules/async2/no-channel-trailing-slash.d.ts +1 -2
  144. package/lib/rules/async2/no-channel-trailing-slash.js +5 -2
  145. package/lib/rules/async3/channels-kebab-case.d.ts +1 -2
  146. package/lib/rules/async3/channels-kebab-case.js +5 -2
  147. package/lib/rules/async3/index.d.ts +1 -2
  148. package/lib/rules/async3/index.js +24 -22
  149. package/lib/rules/async3/no-channel-trailing-slash.d.ts +1 -2
  150. package/lib/rules/async3/no-channel-trailing-slash.js +6 -3
  151. package/lib/rules/common/assertions/asserts.d.ts +2 -3
  152. package/lib/rules/common/assertions/asserts.js +38 -35
  153. package/lib/rules/common/assertions/index.d.ts +3 -4
  154. package/lib/rules/common/assertions/index.js +10 -7
  155. package/lib/rules/common/assertions/utils.d.ts +4 -5
  156. package/lib/rules/common/assertions/utils.js +29 -21
  157. package/lib/rules/common/info-contact.d.ts +1 -2
  158. package/lib/rules/common/info-contact.js +7 -4
  159. package/lib/rules/common/info-license-strict.d.ts +1 -2
  160. package/lib/rules/common/info-license-strict.js +10 -7
  161. package/lib/rules/common/info-license-url.d.ts +1 -2
  162. package/lib/rules/common/info-license-url.js +7 -4
  163. package/lib/rules/common/info-license.d.ts +1 -2
  164. package/lib/rules/common/info-license.js +7 -4
  165. package/lib/rules/common/no-ambiguous-paths.d.ts +1 -2
  166. package/lib/rules/common/no-ambiguous-paths.js +5 -2
  167. package/lib/rules/common/no-enum-type-mismatch.d.ts +1 -2
  168. package/lib/rules/common/no-enum-type-mismatch.js +9 -6
  169. package/lib/rules/common/no-http-verbs-in-paths.d.ts +1 -2
  170. package/lib/rules/common/no-http-verbs-in-paths.js +8 -5
  171. package/lib/rules/common/no-identical-paths.d.ts +1 -2
  172. package/lib/rules/common/no-identical-paths.js +5 -2
  173. package/lib/rules/common/no-invalid-parameter-examples.d.ts +0 -1
  174. package/lib/rules/common/no-invalid-parameter-examples.js +9 -6
  175. package/lib/rules/common/no-invalid-schema-examples.d.ts +1 -2
  176. package/lib/rules/common/no-invalid-schema-examples.js +9 -6
  177. package/lib/rules/common/no-path-trailing-slash.d.ts +1 -2
  178. package/lib/rules/common/no-path-trailing-slash.js +5 -2
  179. package/lib/rules/common/no-required-schema-properties-undefined.d.ts +1 -2
  180. package/lib/rules/common/no-required-schema-properties-undefined.js +7 -4
  181. package/lib/rules/common/no-schema-type-mismatch.d.ts +1 -2
  182. package/lib/rules/common/no-schema-type-mismatch.js +5 -2
  183. package/lib/rules/common/operation-2xx-response.d.ts +1 -2
  184. package/lib/rules/common/operation-2xx-response.js +8 -5
  185. package/lib/rules/common/operation-4xx-response.d.ts +1 -2
  186. package/lib/rules/common/operation-4xx-response.js +8 -5
  187. package/lib/rules/common/operation-description.d.ts +1 -2
  188. package/lib/rules/common/operation-description.js +7 -4
  189. package/lib/rules/common/operation-operationId-unique.d.ts +1 -2
  190. package/lib/rules/common/operation-operationId-unique.js +5 -2
  191. package/lib/rules/common/operation-operationId-url-safe.d.ts +1 -2
  192. package/lib/rules/common/operation-operationId-url-safe.js +5 -2
  193. package/lib/rules/common/operation-operationId.d.ts +1 -2
  194. package/lib/rules/common/operation-operationId.js +7 -4
  195. package/lib/rules/common/operation-parameters-unique.d.ts +1 -2
  196. package/lib/rules/common/operation-parameters-unique.js +5 -2
  197. package/lib/rules/common/operation-singular-tag.d.ts +1 -2
  198. package/lib/rules/common/operation-singular-tag.js +5 -2
  199. package/lib/rules/common/operation-summary.d.ts +1 -2
  200. package/lib/rules/common/operation-summary.js +7 -4
  201. package/lib/rules/common/operation-tag-defined.d.ts +1 -2
  202. package/lib/rules/common/operation-tag-defined.js +5 -2
  203. package/lib/rules/common/parameter-description.d.ts +1 -2
  204. package/lib/rules/common/parameter-description.js +5 -2
  205. package/lib/rules/common/path-declaration-must-exist.d.ts +1 -2
  206. package/lib/rules/common/path-declaration-must-exist.js +5 -2
  207. package/lib/rules/common/path-excludes-patterns.d.ts +1 -2
  208. package/lib/rules/common/path-excludes-patterns.js +5 -2
  209. package/lib/rules/common/path-http-verbs-order.d.ts +1 -2
  210. package/lib/rules/common/path-http-verbs-order.js +5 -2
  211. package/lib/rules/common/path-not-include-query.d.ts +1 -2
  212. package/lib/rules/common/path-not-include-query.js +5 -2
  213. package/lib/rules/common/path-params-defined.d.ts +1 -2
  214. package/lib/rules/common/path-params-defined.js +5 -2
  215. package/lib/rules/common/path-segment-plural.d.ts +1 -2
  216. package/lib/rules/common/path-segment-plural.js +8 -5
  217. package/lib/rules/common/paths-kebab-case.d.ts +1 -2
  218. package/lib/rules/common/paths-kebab-case.js +5 -2
  219. package/lib/rules/common/required-string-property-missing-min-length.d.ts +1 -2
  220. package/lib/rules/common/required-string-property-missing-min-length.js +5 -2
  221. package/lib/rules/common/response-contains-header.d.ts +1 -2
  222. package/lib/rules/common/response-contains-header.js +8 -5
  223. package/lib/rules/common/scalar-property-missing-example.d.ts +1 -2
  224. package/lib/rules/common/scalar-property-missing-example.js +7 -4
  225. package/lib/rules/common/security-defined.d.ts +1 -2
  226. package/lib/rules/common/security-defined.js +5 -2
  227. package/lib/rules/common/spec-strict-refs.d.ts +1 -2
  228. package/lib/rules/common/spec-strict-refs.js +7 -4
  229. package/lib/rules/common/struct.d.ts +1 -2
  230. package/lib/rules/common/struct.js +21 -18
  231. package/lib/rules/common/tag-description.d.ts +1 -2
  232. package/lib/rules/common/tag-description.js +7 -4
  233. package/lib/rules/common/tags-alphabetical.d.ts +1 -2
  234. package/lib/rules/common/tags-alphabetical.js +5 -2
  235. package/lib/rules/no-unresolved-refs.d.ts +3 -4
  236. package/lib/rules/no-unresolved-refs.js +9 -5
  237. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +1 -2
  238. package/lib/rules/oas2/boolean-parameter-prefixes.js +5 -2
  239. package/lib/rules/oas2/index.d.ts +1 -2
  240. package/lib/rules/oas2/index.js +97 -95
  241. package/lib/rules/oas2/request-mime-type.d.ts +1 -2
  242. package/lib/rules/oas2/request-mime-type.js +8 -5
  243. package/lib/rules/oas2/response-contains-property.d.ts +1 -2
  244. package/lib/rules/oas2/response-contains-property.js +8 -5
  245. package/lib/rules/oas2/response-mime-type.d.ts +1 -2
  246. package/lib/rules/oas2/response-mime-type.js +8 -5
  247. package/lib/rules/oas3/array-parameter-serialization.d.ts +1 -2
  248. package/lib/rules/oas3/array-parameter-serialization.js +7 -4
  249. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +1 -2
  250. package/lib/rules/oas3/boolean-parameter-prefixes.js +5 -2
  251. package/lib/rules/oas3/component-name-unique.d.ts +1 -2
  252. package/lib/rules/oas3/component-name-unique.js +5 -2
  253. package/lib/rules/oas3/index.d.ts +1 -2
  254. package/lib/rules/oas3/index.js +121 -119
  255. package/lib/rules/oas3/no-empty-servers.d.ts +1 -2
  256. package/lib/rules/oas3/no-empty-servers.js +5 -2
  257. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +1 -2
  258. package/lib/rules/oas3/no-example-value-and-externalValue.js +5 -2
  259. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +1 -2
  260. package/lib/rules/oas3/no-invalid-media-type-examples.js +10 -7
  261. package/lib/rules/oas3/no-server-example.com.d.ts +1 -2
  262. package/lib/rules/oas3/no-server-example.com.js +5 -2
  263. package/lib/rules/oas3/no-server-trailing-slash.d.ts +1 -2
  264. package/lib/rules/oas3/no-server-trailing-slash.js +5 -2
  265. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +1 -2
  266. package/lib/rules/oas3/no-server-variables-empty-enum.js +5 -2
  267. package/lib/rules/oas3/no-undefined-server-variable.d.ts +1 -2
  268. package/lib/rules/oas3/no-undefined-server-variable.js +5 -2
  269. package/lib/rules/oas3/no-unused-components.d.ts +1 -2
  270. package/lib/rules/oas3/no-unused-components.js +5 -2
  271. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +1 -2
  272. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +9 -6
  273. package/lib/rules/oas3/request-mime-type.d.ts +1 -2
  274. package/lib/rules/oas3/request-mime-type.js +9 -6
  275. package/lib/rules/oas3/response-contains-property.d.ts +1 -2
  276. package/lib/rules/oas3/response-contains-property.js +8 -5
  277. package/lib/rules/oas3/response-mime-type.d.ts +1 -2
  278. package/lib/rules/oas3/response-mime-type.js +9 -6
  279. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +1 -2
  280. package/lib/rules/oas3/spec-components-invalid-map-name.js +5 -2
  281. package/lib/rules/other/stats.d.ts +3 -4
  282. package/lib/rules/other/stats.js +5 -2
  283. package/lib/rules/overlay1/index.d.ts +1 -2
  284. package/lib/rules/overlay1/index.js +11 -9
  285. package/lib/rules/respect/no-criteria-xpath.d.ts +1 -2
  286. package/lib/rules/respect/no-criteria-xpath.js +5 -2
  287. package/lib/rules/respect/respect-supported-versions.d.ts +1 -2
  288. package/lib/rules/respect/respect-supported-versions.js +10 -7
  289. package/lib/rules/utils.d.ts +3 -4
  290. package/lib/rules/utils.js +36 -23
  291. package/lib/types/arazzo.d.ts +1 -2
  292. package/lib/types/arazzo.js +23 -21
  293. package/lib/types/asyncapi2.d.ts +1 -2
  294. package/lib/types/asyncapi2.js +56 -54
  295. package/lib/types/asyncapi3.d.ts +1 -2
  296. package/lib/types/asyncapi3.js +43 -41
  297. package/lib/types/index.d.ts +0 -1
  298. package/lib/types/index.js +13 -7
  299. package/lib/types/json-schema-adapter.d.ts +1 -2
  300. package/lib/types/json-schema-adapter.js +17 -15
  301. package/lib/types/oas2.d.ts +2 -3
  302. package/lib/types/oas2.js +19 -17
  303. package/lib/types/oas3.d.ts +2 -3
  304. package/lib/types/oas3.js +41 -39
  305. package/lib/types/oas3_1.d.ts +2 -3
  306. package/lib/types/oas3_1.js +20 -18
  307. package/lib/types/overlay.d.ts +1 -2
  308. package/lib/types/overlay.js +6 -4
  309. package/lib/types/redocly-yaml.d.ts +3 -4
  310. package/lib/types/redocly-yaml.js +48 -31
  311. package/lib/typings/arazzo.d.ts +0 -1
  312. package/lib/typings/arazzo.js +5 -3
  313. package/lib/typings/asyncapi.d.ts +0 -1
  314. package/lib/typings/asyncapi.js +2 -2
  315. package/lib/typings/asyncapi3.d.ts +0 -1
  316. package/lib/typings/asyncapi3.js +2 -2
  317. package/lib/typings/common.d.ts +0 -1
  318. package/lib/typings/common.js +2 -2
  319. package/lib/typings/openapi.d.ts +0 -1
  320. package/lib/typings/openapi.js +2 -2
  321. package/lib/typings/overlay.d.ts +0 -1
  322. package/lib/typings/overlay.js +4 -2
  323. package/lib/typings/swagger.d.ts +1 -2
  324. package/lib/typings/swagger.js +2 -2
  325. package/lib/utils.d.ts +5 -4
  326. package/lib/utils.js +99 -52
  327. package/lib/visitors.d.ts +10 -11
  328. package/lib/visitors.js +6 -4
  329. package/lib/walk.d.ts +8 -9
  330. package/lib/walk.js +25 -23
  331. package/package.json +9 -30
  332. package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts.map +0 -1
  333. package/lib/benchmark/benches/lint-with-many-rules.bench.js.map +0 -1
  334. package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts.map +0 -1
  335. package/lib/benchmark/benches/lint-with-nested-rule.bench.js.map +0 -1
  336. package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts.map +0 -1
  337. package/lib/benchmark/benches/lint-with-no-rules.bench.js.map +0 -1
  338. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts.map +0 -1
  339. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js.map +0 -1
  340. package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts.map +0 -1
  341. package/lib/benchmark/benches/lint-with-top-level-rule.bench.js.map +0 -1
  342. package/lib/benchmark/benches/recommended-oas3.bench.d.ts.map +0 -1
  343. package/lib/benchmark/benches/recommended-oas3.bench.js.map +0 -1
  344. package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts.map +0 -1
  345. package/lib/benchmark/benches/resolve-with-no-external.bench.js.map +0 -1
  346. package/lib/benchmark/utils.d.ts.map +0 -1
  347. package/lib/benchmark/utils.js.map +0 -1
  348. package/lib/bundle.d.ts.map +0 -1
  349. package/lib/bundle.js.map +0 -1
  350. package/lib/config/all.d.ts.map +0 -1
  351. package/lib/config/all.js.map +0 -1
  352. package/lib/config/builtIn.d.ts.map +0 -1
  353. package/lib/config/builtIn.js.map +0 -1
  354. package/lib/config/config-resolvers.d.ts.map +0 -1
  355. package/lib/config/config-resolvers.js.map +0 -1
  356. package/lib/config/config.d.ts.map +0 -1
  357. package/lib/config/config.js.map +0 -1
  358. package/lib/config/index.d.ts.map +0 -1
  359. package/lib/config/index.js.map +0 -1
  360. package/lib/config/load.d.ts.map +0 -1
  361. package/lib/config/load.js.map +0 -1
  362. package/lib/config/minimal.d.ts.map +0 -1
  363. package/lib/config/minimal.js.map +0 -1
  364. package/lib/config/recommended-strict.d.ts.map +0 -1
  365. package/lib/config/recommended-strict.js.map +0 -1
  366. package/lib/config/recommended.d.ts.map +0 -1
  367. package/lib/config/recommended.js.map +0 -1
  368. package/lib/config/rules.d.ts.map +0 -1
  369. package/lib/config/rules.js.map +0 -1
  370. package/lib/config/spec.d.ts.map +0 -1
  371. package/lib/config/spec.js.map +0 -1
  372. package/lib/config/types.d.ts.map +0 -1
  373. package/lib/config/types.js.map +0 -1
  374. package/lib/config/utils.d.ts.map +0 -1
  375. package/lib/config/utils.js.map +0 -1
  376. package/lib/decorators/arazzo/index.d.ts.map +0 -1
  377. package/lib/decorators/arazzo/index.js.map +0 -1
  378. package/lib/decorators/async2/index.d.ts.map +0 -1
  379. package/lib/decorators/async2/index.js.map +0 -1
  380. package/lib/decorators/async3/index.d.ts.map +0 -1
  381. package/lib/decorators/async3/index.js.map +0 -1
  382. package/lib/decorators/common/filters/filter-helper.d.ts.map +0 -1
  383. package/lib/decorators/common/filters/filter-helper.js.map +0 -1
  384. package/lib/decorators/common/filters/filter-in.d.ts.map +0 -1
  385. package/lib/decorators/common/filters/filter-in.js.map +0 -1
  386. package/lib/decorators/common/filters/filter-out.d.ts.map +0 -1
  387. package/lib/decorators/common/filters/filter-out.js.map +0 -1
  388. package/lib/decorators/common/info-description-override.d.ts.map +0 -1
  389. package/lib/decorators/common/info-description-override.js.map +0 -1
  390. package/lib/decorators/common/info-override.d.ts.map +0 -1
  391. package/lib/decorators/common/info-override.js.map +0 -1
  392. package/lib/decorators/common/media-type-examples-override.d.ts.map +0 -1
  393. package/lib/decorators/common/media-type-examples-override.js.map +0 -1
  394. package/lib/decorators/common/operation-description-override.d.ts.map +0 -1
  395. package/lib/decorators/common/operation-description-override.js.map +0 -1
  396. package/lib/decorators/common/remove-x-internal.d.ts.map +0 -1
  397. package/lib/decorators/common/remove-x-internal.js.map +0 -1
  398. package/lib/decorators/common/tag-description-override.d.ts.map +0 -1
  399. package/lib/decorators/common/tag-description-override.js.map +0 -1
  400. package/lib/decorators/oas2/index.d.ts.map +0 -1
  401. package/lib/decorators/oas2/index.js.map +0 -1
  402. package/lib/decorators/oas2/remove-unused-components.d.ts.map +0 -1
  403. package/lib/decorators/oas2/remove-unused-components.js.map +0 -1
  404. package/lib/decorators/oas3/index.d.ts.map +0 -1
  405. package/lib/decorators/oas3/index.js.map +0 -1
  406. package/lib/decorators/oas3/remove-unused-components.d.ts.map +0 -1
  407. package/lib/decorators/oas3/remove-unused-components.js.map +0 -1
  408. package/lib/decorators/overlay1/index.d.ts.map +0 -1
  409. package/lib/decorators/overlay1/index.js.map +0 -1
  410. package/lib/env.d.ts.map +0 -1
  411. package/lib/env.js.map +0 -1
  412. package/lib/format/codeframes.d.ts.map +0 -1
  413. package/lib/format/codeframes.js.map +0 -1
  414. package/lib/format/format.d.ts.map +0 -1
  415. package/lib/format/format.js.map +0 -1
  416. package/lib/index.d.ts.map +0 -1
  417. package/lib/index.js.map +0 -1
  418. package/lib/js-yaml/index.d.ts.map +0 -1
  419. package/lib/js-yaml/index.js.map +0 -1
  420. package/lib/lint.d.ts.map +0 -1
  421. package/lib/lint.js.map +0 -1
  422. package/lib/logger.d.ts.map +0 -1
  423. package/lib/logger.js.map +0 -1
  424. package/lib/oas-types.d.ts.map +0 -1
  425. package/lib/oas-types.js.map +0 -1
  426. package/lib/ref-utils.d.ts.map +0 -1
  427. package/lib/ref-utils.js.map +0 -1
  428. package/lib/resolve.d.ts.map +0 -1
  429. package/lib/resolve.js.map +0 -1
  430. package/lib/rules/ajv.d.ts.map +0 -1
  431. package/lib/rules/ajv.js.map +0 -1
  432. package/lib/rules/arazzo/criteria-unique.d.ts.map +0 -1
  433. package/lib/rules/arazzo/criteria-unique.js.map +0 -1
  434. package/lib/rules/arazzo/index.d.ts.map +0 -1
  435. package/lib/rules/arazzo/index.js.map +0 -1
  436. package/lib/rules/arazzo/parameters-unique.d.ts.map +0 -1
  437. package/lib/rules/arazzo/parameters-unique.js.map +0 -1
  438. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +0 -1
  439. package/lib/rules/arazzo/requestBody-replacements-unique.js.map +0 -1
  440. package/lib/rules/arazzo/sourceDescription-type.d.ts.map +0 -1
  441. package/lib/rules/arazzo/sourceDescription-type.js.map +0 -1
  442. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +0 -1
  443. package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +0 -1
  444. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +0 -1
  445. package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +0 -1
  446. package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +0 -1
  447. package/lib/rules/arazzo/step-onFailure-unique.js.map +0 -1
  448. package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +0 -1
  449. package/lib/rules/arazzo/step-onSuccess-unique.js.map +0 -1
  450. package/lib/rules/arazzo/stepId-unique.d.ts.map +0 -1
  451. package/lib/rules/arazzo/stepId-unique.js.map +0 -1
  452. package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +0 -1
  453. package/lib/rules/arazzo/workflow-dependsOn.js.map +0 -1
  454. package/lib/rules/arazzo/workflowId-unique.d.ts.map +0 -1
  455. package/lib/rules/arazzo/workflowId-unique.js.map +0 -1
  456. package/lib/rules/async2/channels-kebab-case.d.ts.map +0 -1
  457. package/lib/rules/async2/channels-kebab-case.js.map +0 -1
  458. package/lib/rules/async2/index.d.ts.map +0 -1
  459. package/lib/rules/async2/index.js.map +0 -1
  460. package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +0 -1
  461. package/lib/rules/async2/no-channel-trailing-slash.js.map +0 -1
  462. package/lib/rules/async3/channels-kebab-case.d.ts.map +0 -1
  463. package/lib/rules/async3/channels-kebab-case.js.map +0 -1
  464. package/lib/rules/async3/index.d.ts.map +0 -1
  465. package/lib/rules/async3/index.js.map +0 -1
  466. package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +0 -1
  467. package/lib/rules/async3/no-channel-trailing-slash.js.map +0 -1
  468. package/lib/rules/common/assertions/asserts.d.ts.map +0 -1
  469. package/lib/rules/common/assertions/asserts.js.map +0 -1
  470. package/lib/rules/common/assertions/index.d.ts.map +0 -1
  471. package/lib/rules/common/assertions/index.js.map +0 -1
  472. package/lib/rules/common/assertions/utils.d.ts.map +0 -1
  473. package/lib/rules/common/assertions/utils.js.map +0 -1
  474. package/lib/rules/common/info-contact.d.ts.map +0 -1
  475. package/lib/rules/common/info-contact.js.map +0 -1
  476. package/lib/rules/common/info-license-strict.d.ts.map +0 -1
  477. package/lib/rules/common/info-license-strict.js.map +0 -1
  478. package/lib/rules/common/info-license-url.d.ts.map +0 -1
  479. package/lib/rules/common/info-license-url.js.map +0 -1
  480. package/lib/rules/common/info-license.d.ts.map +0 -1
  481. package/lib/rules/common/info-license.js.map +0 -1
  482. package/lib/rules/common/no-ambiguous-paths.d.ts.map +0 -1
  483. package/lib/rules/common/no-ambiguous-paths.js.map +0 -1
  484. package/lib/rules/common/no-enum-type-mismatch.d.ts.map +0 -1
  485. package/lib/rules/common/no-enum-type-mismatch.js.map +0 -1
  486. package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +0 -1
  487. package/lib/rules/common/no-http-verbs-in-paths.js.map +0 -1
  488. package/lib/rules/common/no-identical-paths.d.ts.map +0 -1
  489. package/lib/rules/common/no-identical-paths.js.map +0 -1
  490. package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +0 -1
  491. package/lib/rules/common/no-invalid-parameter-examples.js.map +0 -1
  492. package/lib/rules/common/no-invalid-schema-examples.d.ts.map +0 -1
  493. package/lib/rules/common/no-invalid-schema-examples.js.map +0 -1
  494. package/lib/rules/common/no-path-trailing-slash.d.ts.map +0 -1
  495. package/lib/rules/common/no-path-trailing-slash.js.map +0 -1
  496. package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +0 -1
  497. package/lib/rules/common/no-required-schema-properties-undefined.js.map +0 -1
  498. package/lib/rules/common/no-schema-type-mismatch.d.ts.map +0 -1
  499. package/lib/rules/common/no-schema-type-mismatch.js.map +0 -1
  500. package/lib/rules/common/operation-2xx-response.d.ts.map +0 -1
  501. package/lib/rules/common/operation-2xx-response.js.map +0 -1
  502. package/lib/rules/common/operation-4xx-response.d.ts.map +0 -1
  503. package/lib/rules/common/operation-4xx-response.js.map +0 -1
  504. package/lib/rules/common/operation-description.d.ts.map +0 -1
  505. package/lib/rules/common/operation-description.js.map +0 -1
  506. package/lib/rules/common/operation-operationId-unique.d.ts.map +0 -1
  507. package/lib/rules/common/operation-operationId-unique.js.map +0 -1
  508. package/lib/rules/common/operation-operationId-url-safe.d.ts.map +0 -1
  509. package/lib/rules/common/operation-operationId-url-safe.js.map +0 -1
  510. package/lib/rules/common/operation-operationId.d.ts.map +0 -1
  511. package/lib/rules/common/operation-operationId.js.map +0 -1
  512. package/lib/rules/common/operation-parameters-unique.d.ts.map +0 -1
  513. package/lib/rules/common/operation-parameters-unique.js.map +0 -1
  514. package/lib/rules/common/operation-singular-tag.d.ts.map +0 -1
  515. package/lib/rules/common/operation-singular-tag.js.map +0 -1
  516. package/lib/rules/common/operation-summary.d.ts.map +0 -1
  517. package/lib/rules/common/operation-summary.js.map +0 -1
  518. package/lib/rules/common/operation-tag-defined.d.ts.map +0 -1
  519. package/lib/rules/common/operation-tag-defined.js.map +0 -1
  520. package/lib/rules/common/parameter-description.d.ts.map +0 -1
  521. package/lib/rules/common/parameter-description.js.map +0 -1
  522. package/lib/rules/common/path-declaration-must-exist.d.ts.map +0 -1
  523. package/lib/rules/common/path-declaration-must-exist.js.map +0 -1
  524. package/lib/rules/common/path-excludes-patterns.d.ts.map +0 -1
  525. package/lib/rules/common/path-excludes-patterns.js.map +0 -1
  526. package/lib/rules/common/path-http-verbs-order.d.ts.map +0 -1
  527. package/lib/rules/common/path-http-verbs-order.js.map +0 -1
  528. package/lib/rules/common/path-not-include-query.d.ts.map +0 -1
  529. package/lib/rules/common/path-not-include-query.js.map +0 -1
  530. package/lib/rules/common/path-params-defined.d.ts.map +0 -1
  531. package/lib/rules/common/path-params-defined.js.map +0 -1
  532. package/lib/rules/common/path-segment-plural.d.ts.map +0 -1
  533. package/lib/rules/common/path-segment-plural.js.map +0 -1
  534. package/lib/rules/common/paths-kebab-case.d.ts.map +0 -1
  535. package/lib/rules/common/paths-kebab-case.js.map +0 -1
  536. package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +0 -1
  537. package/lib/rules/common/required-string-property-missing-min-length.js.map +0 -1
  538. package/lib/rules/common/response-contains-header.d.ts.map +0 -1
  539. package/lib/rules/common/response-contains-header.js.map +0 -1
  540. package/lib/rules/common/scalar-property-missing-example.d.ts.map +0 -1
  541. package/lib/rules/common/scalar-property-missing-example.js.map +0 -1
  542. package/lib/rules/common/security-defined.d.ts.map +0 -1
  543. package/lib/rules/common/security-defined.js.map +0 -1
  544. package/lib/rules/common/spec-strict-refs.d.ts.map +0 -1
  545. package/lib/rules/common/spec-strict-refs.js.map +0 -1
  546. package/lib/rules/common/struct.d.ts.map +0 -1
  547. package/lib/rules/common/struct.js.map +0 -1
  548. package/lib/rules/common/tag-description.d.ts.map +0 -1
  549. package/lib/rules/common/tag-description.js.map +0 -1
  550. package/lib/rules/common/tags-alphabetical.d.ts.map +0 -1
  551. package/lib/rules/common/tags-alphabetical.js.map +0 -1
  552. package/lib/rules/no-unresolved-refs.d.ts.map +0 -1
  553. package/lib/rules/no-unresolved-refs.js.map +0 -1
  554. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +0 -1
  555. package/lib/rules/oas2/boolean-parameter-prefixes.js.map +0 -1
  556. package/lib/rules/oas2/index.d.ts.map +0 -1
  557. package/lib/rules/oas2/index.js.map +0 -1
  558. package/lib/rules/oas2/request-mime-type.d.ts.map +0 -1
  559. package/lib/rules/oas2/request-mime-type.js.map +0 -1
  560. package/lib/rules/oas2/response-contains-property.d.ts.map +0 -1
  561. package/lib/rules/oas2/response-contains-property.js.map +0 -1
  562. package/lib/rules/oas2/response-mime-type.d.ts.map +0 -1
  563. package/lib/rules/oas2/response-mime-type.js.map +0 -1
  564. package/lib/rules/oas3/array-parameter-serialization.d.ts.map +0 -1
  565. package/lib/rules/oas3/array-parameter-serialization.js.map +0 -1
  566. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +0 -1
  567. package/lib/rules/oas3/boolean-parameter-prefixes.js.map +0 -1
  568. package/lib/rules/oas3/component-name-unique.d.ts.map +0 -1
  569. package/lib/rules/oas3/component-name-unique.js.map +0 -1
  570. package/lib/rules/oas3/index.d.ts.map +0 -1
  571. package/lib/rules/oas3/index.js.map +0 -1
  572. package/lib/rules/oas3/no-empty-servers.d.ts.map +0 -1
  573. package/lib/rules/oas3/no-empty-servers.js.map +0 -1
  574. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +0 -1
  575. package/lib/rules/oas3/no-example-value-and-externalValue.js.map +0 -1
  576. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +0 -1
  577. package/lib/rules/oas3/no-invalid-media-type-examples.js.map +0 -1
  578. package/lib/rules/oas3/no-server-example.com.d.ts.map +0 -1
  579. package/lib/rules/oas3/no-server-example.com.js.map +0 -1
  580. package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +0 -1
  581. package/lib/rules/oas3/no-server-trailing-slash.js.map +0 -1
  582. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +0 -1
  583. package/lib/rules/oas3/no-server-variables-empty-enum.js.map +0 -1
  584. package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +0 -1
  585. package/lib/rules/oas3/no-undefined-server-variable.js.map +0 -1
  586. package/lib/rules/oas3/no-unused-components.d.ts.map +0 -1
  587. package/lib/rules/oas3/no-unused-components.js.map +0 -1
  588. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +0 -1
  589. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +0 -1
  590. package/lib/rules/oas3/request-mime-type.d.ts.map +0 -1
  591. package/lib/rules/oas3/request-mime-type.js.map +0 -1
  592. package/lib/rules/oas3/response-contains-property.d.ts.map +0 -1
  593. package/lib/rules/oas3/response-contains-property.js.map +0 -1
  594. package/lib/rules/oas3/response-mime-type.d.ts.map +0 -1
  595. package/lib/rules/oas3/response-mime-type.js.map +0 -1
  596. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +0 -1
  597. package/lib/rules/oas3/spec-components-invalid-map-name.js.map +0 -1
  598. package/lib/rules/other/stats.d.ts.map +0 -1
  599. package/lib/rules/other/stats.js.map +0 -1
  600. package/lib/rules/overlay1/index.d.ts.map +0 -1
  601. package/lib/rules/overlay1/index.js.map +0 -1
  602. package/lib/rules/respect/no-criteria-xpath.d.ts.map +0 -1
  603. package/lib/rules/respect/no-criteria-xpath.js.map +0 -1
  604. package/lib/rules/respect/respect-supported-versions.d.ts.map +0 -1
  605. package/lib/rules/respect/respect-supported-versions.js.map +0 -1
  606. package/lib/rules/utils.d.ts.map +0 -1
  607. package/lib/rules/utils.js.map +0 -1
  608. package/lib/types/arazzo.d.ts.map +0 -1
  609. package/lib/types/arazzo.js.map +0 -1
  610. package/lib/types/asyncapi2.d.ts.map +0 -1
  611. package/lib/types/asyncapi2.js.map +0 -1
  612. package/lib/types/asyncapi3.d.ts.map +0 -1
  613. package/lib/types/asyncapi3.js.map +0 -1
  614. package/lib/types/index.d.ts.map +0 -1
  615. package/lib/types/index.js.map +0 -1
  616. package/lib/types/json-schema-adapter.d.ts.map +0 -1
  617. package/lib/types/json-schema-adapter.js.map +0 -1
  618. package/lib/types/oas2.d.ts.map +0 -1
  619. package/lib/types/oas2.js.map +0 -1
  620. package/lib/types/oas3.d.ts.map +0 -1
  621. package/lib/types/oas3.js.map +0 -1
  622. package/lib/types/oas3_1.d.ts.map +0 -1
  623. package/lib/types/oas3_1.js.map +0 -1
  624. package/lib/types/overlay.d.ts.map +0 -1
  625. package/lib/types/overlay.js.map +0 -1
  626. package/lib/types/redocly-yaml.d.ts.map +0 -1
  627. package/lib/types/redocly-yaml.js.map +0 -1
  628. package/lib/typings/arazzo.d.ts.map +0 -1
  629. package/lib/typings/arazzo.js.map +0 -1
  630. package/lib/typings/asyncapi.d.ts.map +0 -1
  631. package/lib/typings/asyncapi.js.map +0 -1
  632. package/lib/typings/asyncapi3.d.ts.map +0 -1
  633. package/lib/typings/asyncapi3.js.map +0 -1
  634. package/lib/typings/common.d.ts.map +0 -1
  635. package/lib/typings/common.js.map +0 -1
  636. package/lib/typings/openapi.d.ts.map +0 -1
  637. package/lib/typings/openapi.js.map +0 -1
  638. package/lib/typings/overlay.d.ts.map +0 -1
  639. package/lib/typings/overlay.js.map +0 -1
  640. package/lib/typings/swagger.d.ts.map +0 -1
  641. package/lib/typings/swagger.js.map +0 -1
  642. package/lib/utils/error.d.ts +0 -3
  643. package/lib/utils/error.d.ts.map +0 -1
  644. package/lib/utils/error.js +0 -3
  645. package/lib/utils/error.js.map +0 -1
  646. package/lib/utils.d.ts.map +0 -1
  647. package/lib/utils.js.map +0 -1
  648. package/lib/visitors.d.ts.map +0 -1
  649. package/lib/visitors.js.map +0 -1
  650. package/lib/walk.d.ts.map +0 -1
  651. package/lib/walk.js.map +0 -1
@@ -1,3 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentNameUnique = void 0;
1
4
  const TYPE_NAME_SCHEMA = 'Schema';
2
5
  const TYPE_NAME_PARAMETER = 'Parameter';
3
6
  const TYPE_NAME_RESPONSE = 'Response';
@@ -8,7 +11,7 @@ const TYPE_NAME_TO_OPTION_COMPONENT_NAME = {
8
11
  [TYPE_NAME_RESPONSE]: 'responses',
9
12
  [TYPE_NAME_REQUEST_BODY]: 'requestBodies',
10
13
  };
11
- export const ComponentNameUnique = (options) => {
14
+ const ComponentNameUnique = (options) => {
12
15
  const components = new Map();
13
16
  const typeNames = [];
14
17
  if (options.schemas !== 'off') {
@@ -117,6 +120,7 @@ export const ComponentNameUnique = (options) => {
117
120
  addFoundComponent(typeName, componentName, location);
118
121
  }
119
122
  };
123
+ exports.ComponentNameUnique = ComponentNameUnique;
120
124
  function getOptionComponentNameForTypeName(typeName) {
121
125
  return TYPE_NAME_TO_OPTION_COMPONENT_NAME[typeName] ?? null;
122
126
  }
@@ -127,4 +131,3 @@ function getComponentFromKey(key) {
127
131
  const [typeName, componentName] = key.split('/');
128
132
  return { typeName, componentName };
129
133
  }
130
- //# sourceMappingURL=component-name-unique.js.map
@@ -1,4 +1,3 @@
1
- import type { Oas3RuleSet } from '../../oas-types.js';
1
+ import type { Oas3RuleSet } from '../../oas-types';
2
2
  export declare const rules: Oas3RuleSet<'built-in'>;
3
3
  export declare const preprocessors: {};
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,122 +1,124 @@
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 { InfoLicenseUrl } from '../common/info-license-url.js';
21
- import { InfoLicenseStrict } from '../common/info-license-strict.js';
22
- import { OperationDescription } from '../common/operation-description.js';
23
- import { NoUnusedComponents } from './no-unused-components.js';
24
- import { PathNotIncludeQuery } from '../common/path-not-include-query.js';
25
- import { ParameterDescription } from '../common/parameter-description.js';
26
- import { OperationSingularTag } from '../common/operation-singular-tag.js';
27
- import { SecurityDefined } from '../common/security-defined.js';
28
- import { NoUnresolvedRefs } from '../no-unresolved-refs.js';
29
- import { BooleanParameterPrefixes } from './boolean-parameter-prefixes.js';
30
- import { PathsKebabCase } from '../common/paths-kebab-case.js';
31
- import { PathHttpVerbsOrder } from '../common/path-http-verbs-order.js';
32
- import { NoEmptyServers } from './no-empty-servers.js';
33
- import { ValidContentExamples } from './no-invalid-media-type-examples.js';
34
- import { NoIdenticalPaths } from '../common/no-identical-paths.js';
35
- import { NoUndefinedServerVariable } from './no-undefined-server-variable.js';
36
- import { OperationOperationId } from '../common/operation-operationId.js';
37
- import { OperationSummary } from '../common/operation-summary.js';
38
- import { NoAmbiguousPaths } from '../common/no-ambiguous-paths.js';
39
- import { NoServerVariablesEmptyEnum } from './no-server-variables-empty-enum.js';
40
- import { NoHttpVerbsInPaths } from '../common/no-http-verbs-in-paths.js';
41
- import { RequestMimeType } from './request-mime-type.js';
42
- import { ResponseMimeType } from './response-mime-type.js';
43
- import { PathSegmentPlural } from '../common/path-segment-plural.js';
44
- import { PathExcludesPatterns } from '../common/path-excludes-patterns.js';
45
- import { NoInvalidSchemaExamples } from '../common/no-invalid-schema-examples.js';
46
- import { NoInvalidParameterExamples } from '../common/no-invalid-parameter-examples.js';
47
- import { ResponseContainsHeader } from '../common/response-contains-header.js';
48
- import { ResponseContainsProperty } from './response-contains-property.js';
49
- import { ScalarPropertyMissingExample } from '../common/scalar-property-missing-example.js';
50
- import { SpecComponentsInvalidMapName } from './spec-components-invalid-map-name.js';
51
- import { Operation4xxProblemDetailsRfc7807 } from './operation-4xx-problem-details-rfc7807.js';
52
- import { RequiredStringPropertyMissingMinLength } from '../common/required-string-property-missing-min-length.js';
53
- import { SpecStrictRefs } from '../common/spec-strict-refs.js';
54
- import { ComponentNameUnique } from './component-name-unique.js';
55
- import { ArrayParameterSerialization } from './array-parameter-serialization.js';
56
- import { NoRequiredSchemaPropertiesUndefined } from '../common/no-required-schema-properties-undefined.js';
57
- import { NoSchemaTypeMismatch } from '../common/no-schema-type-mismatch.js';
58
- export const rules = {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.preprocessors = exports.rules = void 0;
4
+ const struct_1 = require("../common/struct");
5
+ const operation_2xx_response_1 = require("../common/operation-2xx-response");
6
+ const operation_4xx_response_1 = require("../common/operation-4xx-response");
7
+ const assertions_1 = require("../common/assertions");
8
+ const operation_operationId_unique_1 = require("../common/operation-operationId-unique");
9
+ const operation_parameters_unique_1 = require("../common/operation-parameters-unique");
10
+ const path_params_defined_1 = require("../common/path-params-defined");
11
+ const operation_tag_defined_1 = require("../common/operation-tag-defined");
12
+ const no_example_value_and_externalValue_1 = require("./no-example-value-and-externalValue");
13
+ const no_enum_type_mismatch_1 = require("../common/no-enum-type-mismatch");
14
+ const no_path_trailing_slash_1 = require("../common/no-path-trailing-slash");
15
+ const path_declaration_must_exist_1 = require("../common/path-declaration-must-exist");
16
+ const operation_operationId_url_safe_1 = require("../common/operation-operationId-url-safe");
17
+ const tags_alphabetical_1 = require("../common/tags-alphabetical");
18
+ const no_server_example_com_1 = require("./no-server-example.com");
19
+ const no_server_trailing_slash_1 = require("./no-server-trailing-slash");
20
+ const tag_description_1 = require("../common/tag-description");
21
+ const info_contact_1 = require("../common/info-contact");
22
+ const info_license_1 = require("../common/info-license");
23
+ const info_license_url_1 = require("../common/info-license-url");
24
+ const info_license_strict_1 = require("../common/info-license-strict");
25
+ const operation_description_1 = require("../common/operation-description");
26
+ const no_unused_components_1 = require("./no-unused-components");
27
+ const path_not_include_query_1 = require("../common/path-not-include-query");
28
+ const parameter_description_1 = require("../common/parameter-description");
29
+ const operation_singular_tag_1 = require("../common/operation-singular-tag");
30
+ const security_defined_1 = require("../common/security-defined");
31
+ const no_unresolved_refs_1 = require("../no-unresolved-refs");
32
+ const boolean_parameter_prefixes_1 = require("./boolean-parameter-prefixes");
33
+ const paths_kebab_case_1 = require("../common/paths-kebab-case");
34
+ const path_http_verbs_order_1 = require("../common/path-http-verbs-order");
35
+ const no_empty_servers_1 = require("./no-empty-servers");
36
+ const no_invalid_media_type_examples_1 = require("./no-invalid-media-type-examples");
37
+ const no_identical_paths_1 = require("../common/no-identical-paths");
38
+ const no_undefined_server_variable_1 = require("./no-undefined-server-variable");
39
+ const operation_operationId_1 = require("../common/operation-operationId");
40
+ const operation_summary_1 = require("../common/operation-summary");
41
+ const no_ambiguous_paths_1 = require("../common/no-ambiguous-paths");
42
+ const no_server_variables_empty_enum_1 = require("./no-server-variables-empty-enum");
43
+ const no_http_verbs_in_paths_1 = require("../common/no-http-verbs-in-paths");
44
+ const request_mime_type_1 = require("./request-mime-type");
45
+ const response_mime_type_1 = require("./response-mime-type");
46
+ const path_segment_plural_1 = require("../common/path-segment-plural");
47
+ const path_excludes_patterns_1 = require("../common/path-excludes-patterns");
48
+ const no_invalid_schema_examples_1 = require("../common/no-invalid-schema-examples");
49
+ const no_invalid_parameter_examples_1 = require("../common/no-invalid-parameter-examples");
50
+ const response_contains_header_1 = require("../common/response-contains-header");
51
+ const response_contains_property_1 = require("./response-contains-property");
52
+ const scalar_property_missing_example_1 = require("../common/scalar-property-missing-example");
53
+ const spec_components_invalid_map_name_1 = require("./spec-components-invalid-map-name");
54
+ const operation_4xx_problem_details_rfc7807_1 = require("./operation-4xx-problem-details-rfc7807");
55
+ const required_string_property_missing_min_length_1 = require("../common/required-string-property-missing-min-length");
56
+ const spec_strict_refs_1 = require("../common/spec-strict-refs");
57
+ const component_name_unique_1 = require("./component-name-unique");
58
+ const array_parameter_serialization_1 = require("./array-parameter-serialization");
59
+ const no_required_schema_properties_undefined_1 = require("../common/no-required-schema-properties-undefined");
60
+ const no_schema_type_mismatch_1 = require("../common/no-schema-type-mismatch");
61
+ exports.rules = {
59
62
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
60
63
  //@ts-ignore TODO: This is depricated property `spec` and should be removed in the future
61
- spec: Struct,
62
- struct: Struct,
63
- 'info-contact': InfoContact,
64
- 'info-license': InfoLicense,
65
- 'info-license-url': InfoLicenseUrl,
66
- 'info-license-strict': InfoLicenseStrict,
67
- 'operation-2xx-response': Operation2xxResponse,
68
- 'operation-4xx-response': Operation4xxResponse,
69
- 'operation-4xx-problem-details-rfc7807': Operation4xxProblemDetailsRfc7807,
70
- assertions: Assertions,
71
- 'operation-operationId-unique': OperationIdUnique,
72
- 'operation-parameters-unique': OperationParametersUnique,
73
- 'operation-tag-defined': OperationTagDefined,
74
- 'no-example-value-and-externalValue': NoExampleValueAndExternalValue,
75
- 'no-enum-type-mismatch': NoEnumTypeMismatch,
76
- 'no-path-trailing-slash': NoPathTrailingSlash,
77
- 'no-empty-servers': NoEmptyServers,
78
- 'path-declaration-must-exist': PathDeclarationMustExist,
79
- 'operation-operationId-url-safe': OperationIdUrlSafe,
80
- 'operation-operationId': OperationOperationId,
81
- 'operation-summary': OperationSummary,
82
- 'tags-alphabetical': TagsAlphabetical,
83
- 'no-server-example.com': NoServerExample,
84
- 'no-server-trailing-slash': NoServerTrailingSlash,
85
- 'tag-description': TagDescription,
86
- 'operation-description': OperationDescription,
87
- 'no-unused-components': NoUnusedComponents,
88
- 'path-not-include-query': PathNotIncludeQuery,
89
- 'path-parameters-defined': PathParamsDefined,
90
- 'path-params-defined': PathParamsDefined,
91
- 'parameter-description': ParameterDescription,
92
- 'operation-singular-tag': OperationSingularTag,
93
- 'security-defined': SecurityDefined,
94
- 'no-unresolved-refs': NoUnresolvedRefs,
95
- 'paths-kebab-case': PathsKebabCase,
96
- 'boolean-parameter-prefixes': BooleanParameterPrefixes,
97
- 'path-http-verbs-order': PathHttpVerbsOrder,
98
- 'no-invalid-media-type-examples': ValidContentExamples,
99
- 'no-identical-paths': NoIdenticalPaths,
100
- 'no-ambiguous-paths': NoAmbiguousPaths,
101
- 'no-undefined-server-variable': NoUndefinedServerVariable,
102
- 'no-server-variables-empty-enum': NoServerVariablesEmptyEnum,
103
- 'no-http-verbs-in-paths': NoHttpVerbsInPaths,
104
- 'path-excludes-patterns': PathExcludesPatterns,
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,
64
+ spec: struct_1.Struct,
65
+ struct: struct_1.Struct,
66
+ 'info-contact': info_contact_1.InfoContact,
67
+ 'info-license': info_license_1.InfoLicense,
68
+ 'info-license-url': info_license_url_1.InfoLicenseUrl,
69
+ 'info-license-strict': info_license_strict_1.InfoLicenseStrict,
70
+ 'operation-2xx-response': operation_2xx_response_1.Operation2xxResponse,
71
+ 'operation-4xx-response': operation_4xx_response_1.Operation4xxResponse,
72
+ 'operation-4xx-problem-details-rfc7807': operation_4xx_problem_details_rfc7807_1.Operation4xxProblemDetailsRfc7807,
73
+ assertions: assertions_1.Assertions,
74
+ 'operation-operationId-unique': operation_operationId_unique_1.OperationIdUnique,
75
+ 'operation-parameters-unique': operation_parameters_unique_1.OperationParametersUnique,
76
+ 'operation-tag-defined': operation_tag_defined_1.OperationTagDefined,
77
+ 'no-example-value-and-externalValue': no_example_value_and_externalValue_1.NoExampleValueAndExternalValue,
78
+ 'no-enum-type-mismatch': no_enum_type_mismatch_1.NoEnumTypeMismatch,
79
+ 'no-path-trailing-slash': no_path_trailing_slash_1.NoPathTrailingSlash,
80
+ 'no-empty-servers': no_empty_servers_1.NoEmptyServers,
81
+ 'path-declaration-must-exist': path_declaration_must_exist_1.PathDeclarationMustExist,
82
+ 'operation-operationId-url-safe': operation_operationId_url_safe_1.OperationIdUrlSafe,
83
+ 'operation-operationId': operation_operationId_1.OperationOperationId,
84
+ 'operation-summary': operation_summary_1.OperationSummary,
85
+ 'tags-alphabetical': tags_alphabetical_1.TagsAlphabetical,
86
+ 'no-server-example.com': no_server_example_com_1.NoServerExample,
87
+ 'no-server-trailing-slash': no_server_trailing_slash_1.NoServerTrailingSlash,
88
+ 'tag-description': tag_description_1.TagDescription,
89
+ 'operation-description': operation_description_1.OperationDescription,
90
+ 'no-unused-components': no_unused_components_1.NoUnusedComponents,
91
+ 'path-not-include-query': path_not_include_query_1.PathNotIncludeQuery,
92
+ 'path-parameters-defined': path_params_defined_1.PathParamsDefined,
93
+ 'path-params-defined': path_params_defined_1.PathParamsDefined,
94
+ 'parameter-description': parameter_description_1.ParameterDescription,
95
+ 'operation-singular-tag': operation_singular_tag_1.OperationSingularTag,
96
+ 'security-defined': security_defined_1.SecurityDefined,
97
+ 'no-unresolved-refs': no_unresolved_refs_1.NoUnresolvedRefs,
98
+ 'paths-kebab-case': paths_kebab_case_1.PathsKebabCase,
99
+ 'boolean-parameter-prefixes': boolean_parameter_prefixes_1.BooleanParameterPrefixes,
100
+ 'path-http-verbs-order': path_http_verbs_order_1.PathHttpVerbsOrder,
101
+ 'no-invalid-media-type-examples': no_invalid_media_type_examples_1.ValidContentExamples,
102
+ 'no-identical-paths': no_identical_paths_1.NoIdenticalPaths,
103
+ 'no-ambiguous-paths': no_ambiguous_paths_1.NoAmbiguousPaths,
104
+ 'no-undefined-server-variable': no_undefined_server_variable_1.NoUndefinedServerVariable,
105
+ 'no-server-variables-empty-enum': no_server_variables_empty_enum_1.NoServerVariablesEmptyEnum,
106
+ 'no-http-verbs-in-paths': no_http_verbs_in_paths_1.NoHttpVerbsInPaths,
107
+ 'path-excludes-patterns': path_excludes_patterns_1.PathExcludesPatterns,
108
+ 'request-mime-type': request_mime_type_1.RequestMimeType,
109
+ 'response-mime-type': response_mime_type_1.ResponseMimeType,
110
+ 'path-segment-plural': path_segment_plural_1.PathSegmentPlural,
111
+ 'no-invalid-schema-examples': no_invalid_schema_examples_1.NoInvalidSchemaExamples,
112
+ 'no-invalid-parameter-examples': no_invalid_parameter_examples_1.NoInvalidParameterExamples,
113
+ 'response-contains-header': response_contains_header_1.ResponseContainsHeader,
114
+ 'response-contains-property': response_contains_property_1.ResponseContainsProperty,
115
+ 'scalar-property-missing-example': scalar_property_missing_example_1.ScalarPropertyMissingExample,
116
+ 'spec-components-invalid-map-name': spec_components_invalid_map_name_1.SpecComponentsInvalidMapName,
117
+ 'required-string-property-missing-min-length': required_string_property_missing_min_length_1.RequiredStringPropertyMissingMinLength,
118
+ 'spec-strict-refs': spec_strict_refs_1.SpecStrictRefs,
119
+ 'component-name-unique': component_name_unique_1.ComponentNameUnique,
120
+ 'array-parameter-serialization': array_parameter_serialization_1.ArrayParameterSerialization,
121
+ 'no-required-schema-properties-undefined': no_required_schema_properties_undefined_1.NoRequiredSchemaPropertiesUndefined,
122
+ 'no-schema-type-mismatch': no_schema_type_mismatch_1.NoSchemaTypeMismatch,
120
123
  };
121
- export const preprocessors = {};
122
- //# sourceMappingURL=index.js.map
124
+ exports.preprocessors = {};
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoEmptyServers: Oas3Rule;
3
- //# sourceMappingURL=no-empty-servers.d.ts.map
@@ -1,4 +1,7 @@
1
- export const NoEmptyServers = () => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoEmptyServers = void 0;
4
+ const NoEmptyServers = () => {
2
5
  return {
3
6
  Root(root, { report, location }) {
4
7
  if (!root.hasOwnProperty('servers')) {
@@ -17,4 +20,4 @@ export const NoEmptyServers = () => {
17
20
  },
18
21
  };
19
22
  };
20
- //# sourceMappingURL=no-empty-servers.js.map
23
+ exports.NoEmptyServers = NoEmptyServers;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoExampleValueAndExternalValue: Oas3Rule;
3
- //# sourceMappingURL=no-example-value-and-externalValue.d.ts.map
@@ -1,4 +1,7 @@
1
- export const NoExampleValueAndExternalValue = () => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoExampleValueAndExternalValue = void 0;
4
+ const NoExampleValueAndExternalValue = () => {
2
5
  return {
3
6
  Example(example, { report, location }) {
4
7
  if (example.value && example.externalValue) {
@@ -10,4 +13,4 @@ export const NoExampleValueAndExternalValue = () => {
10
13
  },
11
14
  };
12
15
  };
13
- //# sourceMappingURL=no-example-value-and-externalValue.js.map
16
+ exports.NoExampleValueAndExternalValue = NoExampleValueAndExternalValue;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const ValidContentExamples: Oas3Rule;
3
- //# sourceMappingURL=no-invalid-media-type-examples.d.ts.map
@@ -1,7 +1,10 @@
1
- import { isRef } from '../../ref-utils.js';
2
- import { getAdditionalPropertiesOption, validateExample } from '../utils.js';
3
- export const ValidContentExamples = (opts) => {
4
- const allowAdditionalProperties = getAdditionalPropertiesOption(opts) ?? false;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ValidContentExamples = void 0;
4
+ const ref_utils_1 = require("../../ref-utils");
5
+ const utils_1 = require("../utils");
6
+ const ValidContentExamples = (opts) => {
7
+ const allowAdditionalProperties = (0, utils_1.getAdditionalPropertiesOption)(opts) ?? false;
5
8
  return {
6
9
  MediaType: {
7
10
  leave(mediaType, ctx) {
@@ -17,7 +20,7 @@ export const ValidContentExamples = (opts) => {
17
20
  }
18
21
  }
19
22
  function resolveAndValidateExample(example, location, isMultiple) {
20
- if (isRef(example)) {
23
+ if ((0, ref_utils_1.isRef)(example)) {
21
24
  const resolved = resolve(example);
22
25
  if (!resolved.location)
23
26
  return;
@@ -27,10 +30,10 @@ export const ValidContentExamples = (opts) => {
27
30
  if (isMultiple && typeof example?.value === 'undefined') {
28
31
  return;
29
32
  }
30
- validateExample(isMultiple ? example.value : example, mediaType.schema, location, ctx, allowAdditionalProperties);
33
+ (0, utils_1.validateExample)(isMultiple ? example.value : example, mediaType.schema, location, ctx, allowAdditionalProperties);
31
34
  }
32
35
  },
33
36
  },
34
37
  };
35
38
  };
36
- //# sourceMappingURL=no-invalid-media-type-examples.js.map
39
+ exports.ValidContentExamples = ValidContentExamples;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoServerExample: Oas3Rule;
3
- //# sourceMappingURL=no-server-example.com.d.ts.map
@@ -1,4 +1,7 @@
1
- export const NoServerExample = () => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoServerExample = void 0;
4
+ const NoServerExample = () => {
2
5
  return {
3
6
  Server(server, { report, location }) {
4
7
  // eslint-disable-next-line no-useless-escape
@@ -12,4 +15,4 @@ export const NoServerExample = () => {
12
15
  },
13
16
  };
14
17
  };
15
- //# sourceMappingURL=no-server-example.com.js.map
18
+ exports.NoServerExample = NoServerExample;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoServerTrailingSlash: Oas3Rule;
3
- //# sourceMappingURL=no-server-trailing-slash.d.ts.map
@@ -1,4 +1,7 @@
1
- export const NoServerTrailingSlash = () => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoServerTrailingSlash = void 0;
4
+ const NoServerTrailingSlash = () => {
2
5
  return {
3
6
  Server(server, { report, location }) {
4
7
  if (!server.url)
@@ -12,4 +15,4 @@ export const NoServerTrailingSlash = () => {
12
15
  },
13
16
  };
14
17
  };
15
- //# sourceMappingURL=no-server-trailing-slash.js.map
18
+ exports.NoServerTrailingSlash = NoServerTrailingSlash;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoServerVariablesEmptyEnum: Oas3Rule;
3
- //# sourceMappingURL=no-server-variables-empty-enum.d.ts.map
@@ -1,9 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoServerVariablesEmptyEnum = void 0;
1
4
  var enumError;
2
5
  (function (enumError) {
3
6
  enumError["empty"] = "empty";
4
7
  enumError["invalidDefaultValue"] = "invalidDefaultValue";
5
8
  })(enumError || (enumError = {}));
6
- export const NoServerVariablesEmptyEnum = () => {
9
+ const NoServerVariablesEmptyEnum = () => {
7
10
  return {
8
11
  Root(root, { report, location }) {
9
12
  if (!root.servers || root.servers.length === 0)
@@ -40,6 +43,7 @@ export const NoServerVariablesEmptyEnum = () => {
40
43
  },
41
44
  };
42
45
  };
46
+ exports.NoServerVariablesEmptyEnum = NoServerVariablesEmptyEnum;
43
47
  function checkEnumVariables(server) {
44
48
  if (server.variables && Object.keys(server.variables).length === 0)
45
49
  return;
@@ -60,4 +64,3 @@ function checkEnumVariables(server) {
60
64
  return errors;
61
65
  return;
62
66
  }
63
- //# sourceMappingURL=no-server-variables-empty-enum.js.map
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoUndefinedServerVariable: Oas3Rule;
3
- //# sourceMappingURL=no-undefined-server-variable.d.ts.map
@@ -1,4 +1,7 @@
1
- export const NoUndefinedServerVariable = () => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoUndefinedServerVariable = void 0;
4
+ const NoUndefinedServerVariable = () => {
2
5
  return {
3
6
  Server(server, { report, location }) {
4
7
  if (!server.url)
@@ -25,4 +28,4 @@ export const NoUndefinedServerVariable = () => {
25
28
  },
26
29
  };
27
30
  };
28
- //# sourceMappingURL=no-undefined-server-variable.js.map
31
+ exports.NoUndefinedServerVariable = NoUndefinedServerVariable;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const NoUnusedComponents: Oas3Rule;
3
- //# sourceMappingURL=no-unused-components.d.ts.map
@@ -1,4 +1,7 @@
1
- export const NoUnusedComponents = () => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NoUnusedComponents = void 0;
4
+ const NoUnusedComponents = () => {
2
5
  const components = new Map();
3
6
  function registerComponent(location, name) {
4
7
  components.set(location.absolutePointer, {
@@ -67,4 +70,4 @@ export const NoUnusedComponents = () => {
67
70
  },
68
71
  };
69
72
  };
70
- //# sourceMappingURL=no-unused-components.js.map
73
+ exports.NoUnusedComponents = NoUnusedComponents;
@@ -1,6 +1,5 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  /**
3
3
  * Validation according to rfc7807 - https://datatracker.ietf.org/doc/html/rfc7807
4
4
  */
5
5
  export declare const Operation4xxProblemDetailsRfc7807: Oas3Rule;
6
- //# sourceMappingURL=operation-4xx-problem-details-rfc7807.d.ts.map
@@ -1,8 +1,11 @@
1
- import { validateDefinedAndNonEmpty } from '../utils.js';
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Operation4xxProblemDetailsRfc7807 = void 0;
4
+ const utils_1 = require("../utils");
2
5
  /**
3
6
  * Validation according to rfc7807 - https://datatracker.ietf.org/doc/html/rfc7807
4
7
  */
5
- export const Operation4xxProblemDetailsRfc7807 = () => {
8
+ const Operation4xxProblemDetailsRfc7807 = () => {
6
9
  return {
7
10
  Response: {
8
11
  skip(_, key) {
@@ -20,14 +23,14 @@ export const Operation4xxProblemDetailsRfc7807 = () => {
20
23
  return key !== 'application/problem+json';
21
24
  },
22
25
  enter(media, ctx) {
23
- validateDefinedAndNonEmpty('schema', media, ctx);
26
+ (0, utils_1.validateDefinedAndNonEmpty)('schema', media, ctx);
24
27
  },
25
28
  SchemaProperties(schema, ctx) {
26
- validateDefinedAndNonEmpty('type', schema, ctx);
27
- validateDefinedAndNonEmpty('title', schema, ctx);
29
+ (0, utils_1.validateDefinedAndNonEmpty)('type', schema, ctx);
30
+ (0, utils_1.validateDefinedAndNonEmpty)('title', schema, ctx);
28
31
  },
29
32
  },
30
33
  },
31
34
  };
32
35
  };
33
- //# sourceMappingURL=operation-4xx-problem-details-rfc7807.js.map
36
+ exports.Operation4xxProblemDetailsRfc7807 = Operation4xxProblemDetailsRfc7807;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const RequestMimeType: Oas3Rule;
3
- //# sourceMappingURL=request-mime-type.d.ts.map
@@ -1,17 +1,20 @@
1
- import { validateMimeTypeOAS3 } from '../../utils.js';
2
- export const RequestMimeType = ({ allowedValues }) => {
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RequestMimeType = void 0;
4
+ const utils_1 = require("../../utils");
5
+ const RequestMimeType = ({ allowedValues }) => {
3
6
  return {
4
7
  Paths: {
5
8
  RequestBody: {
6
9
  leave(requestBody, ctx) {
7
- validateMimeTypeOAS3({ type: 'consumes', value: requestBody }, ctx, allowedValues);
10
+ (0, utils_1.validateMimeTypeOAS3)({ type: 'consumes', value: requestBody }, ctx, allowedValues);
8
11
  },
9
12
  },
10
13
  Callback: {
11
14
  RequestBody() { },
12
15
  Response: {
13
16
  leave(response, ctx) {
14
- validateMimeTypeOAS3({ type: 'consumes', value: response }, ctx, allowedValues);
17
+ (0, utils_1.validateMimeTypeOAS3)({ type: 'consumes', value: response }, ctx, allowedValues);
15
18
  },
16
19
  },
17
20
  },
@@ -19,10 +22,10 @@ export const RequestMimeType = ({ allowedValues }) => {
19
22
  WebhooksMap: {
20
23
  Response: {
21
24
  leave(response, ctx) {
22
- validateMimeTypeOAS3({ type: 'consumes', value: response }, ctx, allowedValues);
25
+ (0, utils_1.validateMimeTypeOAS3)({ type: 'consumes', value: response }, ctx, allowedValues);
23
26
  },
24
27
  },
25
28
  },
26
29
  };
27
30
  };
28
- //# sourceMappingURL=request-mime-type.js.map
31
+ exports.RequestMimeType = RequestMimeType;
@@ -1,3 +1,2 @@
1
- import type { Oas3Rule } from '../../visitors.js';
1
+ import type { Oas3Rule } from '../../visitors';
2
2
  export declare const ResponseContainsProperty: Oas3Rule;
3
- //# sourceMappingURL=response-contains-property.d.ts.map