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

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 +2 -1
  2. package/lib/benchmark/benches/lint-with-many-rules.bench.d.ts.map +1 -0
  3. package/lib/benchmark/benches/lint-with-many-rules.bench.js +17 -19
  4. package/lib/benchmark/benches/lint-with-many-rules.bench.js.map +1 -0
  5. package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts +2 -1
  6. package/lib/benchmark/benches/lint-with-nested-rule.bench.d.ts.map +1 -0
  7. package/lib/benchmark/benches/lint-with-nested-rule.bench.js +15 -19
  8. package/lib/benchmark/benches/lint-with-nested-rule.bench.js.map +1 -0
  9. package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts +2 -1
  10. package/lib/benchmark/benches/lint-with-no-rules.bench.d.ts.map +1 -0
  11. package/lib/benchmark/benches/lint-with-no-rules.bench.js +15 -19
  12. package/lib/benchmark/benches/lint-with-no-rules.bench.js.map +1 -0
  13. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts +2 -1
  14. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.d.ts.map +1 -0
  15. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js +15 -19
  16. package/lib/benchmark/benches/lint-with-top-level-rule-report.bench.js.map +1 -0
  17. package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts +2 -1
  18. package/lib/benchmark/benches/lint-with-top-level-rule.bench.d.ts.map +1 -0
  19. package/lib/benchmark/benches/lint-with-top-level-rule.bench.js +15 -19
  20. package/lib/benchmark/benches/lint-with-top-level-rule.bench.js.map +1 -0
  21. package/lib/benchmark/benches/recommended-oas3.bench.d.ts +2 -1
  22. package/lib/benchmark/benches/recommended-oas3.bench.d.ts.map +1 -0
  23. package/lib/benchmark/benches/recommended-oas3.bench.js +15 -18
  24. package/lib/benchmark/benches/recommended-oas3.bench.js.map +1 -0
  25. package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts +2 -1
  26. package/lib/benchmark/benches/resolve-with-no-external.bench.d.ts.map +1 -0
  27. package/lib/benchmark/benches/resolve-with-no-external.bench.js +14 -17
  28. package/lib/benchmark/benches/resolve-with-no-external.bench.js.map +1 -0
  29. package/lib/benchmark/utils.d.ts +5 -4
  30. package/lib/benchmark/utils.d.ts.map +1 -0
  31. package/lib/benchmark/utils.js +11 -14
  32. package/lib/benchmark/utils.js.map +1 -0
  33. package/lib/bundle.d.ts +8 -9
  34. package/lib/bundle.d.ts.map +1 -0
  35. package/lib/bundle.js +72 -84
  36. package/lib/bundle.js.map +1 -0
  37. package/lib/config/all.d.ts +2 -1
  38. package/lib/config/all.d.ts.map +1 -0
  39. package/lib/config/all.js +2 -3
  40. package/lib/config/all.js.map +1 -0
  41. package/lib/config/builtIn.d.ts +2 -1
  42. package/lib/config/builtIn.d.ts.map +1 -0
  43. package/lib/config/builtIn.js +44 -49
  44. package/lib/config/builtIn.js.map +1 -0
  45. package/lib/config/config-resolvers.d.ts +6 -5
  46. package/lib/config/config-resolvers.d.ts.map +1 -0
  47. package/lib/config/config-resolvers.js +86 -98
  48. package/lib/config/config-resolvers.js.map +1 -0
  49. package/lib/config/config.d.ts +6 -8
  50. package/lib/config/config.d.ts.map +1 -0
  51. package/lib/config/config.js +63 -92
  52. package/lib/config/config.js.map +1 -0
  53. package/lib/config/index.d.ts +8 -7
  54. package/lib/config/index.d.ts.map +1 -0
  55. package/lib/config/index.js +8 -23
  56. package/lib/config/index.js.map +1 -0
  57. package/lib/config/load.d.ts +5 -8
  58. package/lib/config/load.d.ts.map +1 -0
  59. package/lib/config/load.js +28 -73
  60. package/lib/config/load.js.map +1 -0
  61. package/lib/config/minimal.d.ts +2 -1
  62. package/lib/config/minimal.d.ts.map +1 -0
  63. package/lib/config/minimal.js +2 -3
  64. package/lib/config/minimal.js.map +1 -0
  65. package/lib/config/recommended-strict.d.ts +2 -1
  66. package/lib/config/recommended-strict.d.ts.map +1 -0
  67. package/lib/config/recommended-strict.js +2 -3
  68. package/lib/config/recommended-strict.js.map +1 -0
  69. package/lib/config/recommended.d.ts +2 -1
  70. package/lib/config/recommended.d.ts.map +1 -0
  71. package/lib/config/recommended.js +2 -3
  72. package/lib/config/recommended.js.map +1 -0
  73. package/lib/config/rules.d.ts +4 -3
  74. package/lib/config/rules.d.ts.map +1 -0
  75. package/lib/config/rules.js +4 -6
  76. package/lib/config/rules.js.map +1 -0
  77. package/lib/config/spec.d.ts +2 -1
  78. package/lib/config/spec.d.ts.map +1 -0
  79. package/lib/config/spec.js +2 -3
  80. package/lib/config/spec.js.map +1 -0
  81. package/lib/config/types.d.ts +6 -13
  82. package/lib/config/types.d.ts.map +1 -0
  83. package/lib/config/types.js +2 -2
  84. package/lib/config/types.js.map +1 -0
  85. package/lib/config/utils.d.ts +3 -2
  86. package/lib/config/utils.d.ts.map +1 -0
  87. package/lib/config/utils.js +74 -100
  88. package/lib/config/utils.js.map +1 -0
  89. package/lib/decorators/arazzo/index.d.ts +1 -0
  90. package/lib/decorators/arazzo/index.d.ts.map +1 -0
  91. package/lib/decorators/arazzo/index.js +2 -4
  92. package/lib/decorators/arazzo/index.js.map +1 -0
  93. package/lib/decorators/async2/index.d.ts +1 -0
  94. package/lib/decorators/async2/index.d.ts.map +1 -0
  95. package/lib/decorators/async2/index.js +2 -4
  96. package/lib/decorators/async2/index.js.map +1 -0
  97. package/lib/decorators/async3/index.d.ts +1 -0
  98. package/lib/decorators/async3/index.d.ts.map +1 -0
  99. package/lib/decorators/async3/index.js +2 -4
  100. package/lib/decorators/async3/index.js.map +1 -0
  101. package/lib/decorators/common/filters/filter-helper.d.ts +2 -1
  102. package/lib/decorators/common/filters/filter-helper.d.ts.map +1 -0
  103. package/lib/decorators/common/filters/filter-helper.js +9 -12
  104. package/lib/decorators/common/filters/filter-helper.js.map +1 -0
  105. package/lib/decorators/common/filters/filter-in.d.ts +2 -1
  106. package/lib/decorators/common/filters/filter-in.d.ts.map +1 -0
  107. package/lib/decorators/common/filters/filter-in.js +5 -8
  108. package/lib/decorators/common/filters/filter-in.js.map +1 -0
  109. package/lib/decorators/common/filters/filter-out.d.ts +2 -1
  110. package/lib/decorators/common/filters/filter-out.d.ts.map +1 -0
  111. package/lib/decorators/common/filters/filter-out.js +5 -8
  112. package/lib/decorators/common/filters/filter-out.js.map +1 -0
  113. package/lib/decorators/common/info-description-override.d.ts +2 -1
  114. package/lib/decorators/common/info-description-override.d.ts.map +1 -0
  115. package/lib/decorators/common/info-description-override.js +4 -7
  116. package/lib/decorators/common/info-description-override.js.map +1 -0
  117. package/lib/decorators/common/info-override.d.ts +2 -1
  118. package/lib/decorators/common/info-override.d.ts.map +1 -0
  119. package/lib/decorators/common/info-override.js +2 -5
  120. package/lib/decorators/common/info-override.js.map +1 -0
  121. package/lib/decorators/common/media-type-examples-override.d.ts +2 -1
  122. package/lib/decorators/common/media-type-examples-override.d.ts.map +1 -0
  123. package/lib/decorators/common/media-type-examples-override.js +7 -10
  124. package/lib/decorators/common/media-type-examples-override.js.map +1 -0
  125. package/lib/decorators/common/operation-description-override.d.ts +2 -1
  126. package/lib/decorators/common/operation-description-override.d.ts.map +1 -0
  127. package/lib/decorators/common/operation-description-override.js +4 -7
  128. package/lib/decorators/common/operation-description-override.js.map +1 -0
  129. package/lib/decorators/common/remove-x-internal.d.ts +2 -1
  130. package/lib/decorators/common/remove-x-internal.d.ts.map +1 -0
  131. package/lib/decorators/common/remove-x-internal.js +11 -14
  132. package/lib/decorators/common/remove-x-internal.js.map +1 -0
  133. package/lib/decorators/common/tag-description-override.d.ts +2 -1
  134. package/lib/decorators/common/tag-description-override.d.ts.map +1 -0
  135. package/lib/decorators/common/tag-description-override.js +4 -7
  136. package/lib/decorators/common/tag-description-override.js.map +1 -0
  137. package/lib/decorators/oas2/index.d.ts +2 -2
  138. package/lib/decorators/oas2/index.d.ts.map +1 -0
  139. package/lib/decorators/oas2/index.js +16 -20
  140. package/lib/decorators/oas2/index.js.map +1 -0
  141. package/lib/decorators/oas2/remove-unused-components.d.ts +2 -1
  142. package/lib/decorators/oas2/remove-unused-components.d.ts.map +1 -0
  143. package/lib/decorators/oas2/remove-unused-components.js +4 -7
  144. package/lib/decorators/oas2/remove-unused-components.js.map +1 -0
  145. package/lib/decorators/oas3/index.d.ts +2 -2
  146. package/lib/decorators/oas3/index.d.ts.map +1 -0
  147. package/lib/decorators/oas3/index.js +18 -22
  148. package/lib/decorators/oas3/index.js.map +1 -0
  149. package/lib/decorators/oas3/remove-unused-components.d.ts +2 -1
  150. package/lib/decorators/oas3/remove-unused-components.d.ts.map +1 -0
  151. package/lib/decorators/oas3/remove-unused-components.js +5 -8
  152. package/lib/decorators/oas3/remove-unused-components.js.map +1 -0
  153. package/lib/decorators/overlay1/index.d.ts +1 -0
  154. package/lib/decorators/overlay1/index.d.ts.map +1 -0
  155. package/lib/decorators/overlay1/index.js +2 -4
  156. package/lib/decorators/overlay1/index.js.map +1 -0
  157. package/lib/env.d.ts +1 -0
  158. package/lib/env.d.ts.map +1 -0
  159. package/lib/env.js +3 -5
  160. package/lib/env.js.map +1 -0
  161. package/lib/format/codeframes.d.ts +2 -1
  162. package/lib/format/codeframes.d.ts.map +1 -0
  163. package/lib/format/codeframes.js +15 -19
  164. package/lib/format/codeframes.js.map +1 -0
  165. package/lib/format/format.d.ts +2 -1
  166. package/lib/format/format.d.ts.map +1 -0
  167. package/lib/format/format.js +57 -62
  168. package/lib/format/format.js.map +1 -0
  169. package/lib/index.d.ts +29 -26
  170. package/lib/index.d.ts.map +1 -0
  171. package/lib/index.js +24 -98
  172. package/lib/index.js.map +1 -0
  173. package/lib/js-yaml/index.d.ts +1 -0
  174. package/lib/js-yaml/index.d.ts.map +1 -0
  175. package/lib/js-yaml/index.js +7 -11
  176. package/lib/js-yaml/index.js.map +1 -0
  177. package/lib/lint.d.ts +11 -10
  178. package/lib/lint.d.ts.map +1 -0
  179. package/lib/lint.js +40 -45
  180. package/lib/lint.js.map +1 -0
  181. package/lib/logger.d.ts +2 -1
  182. package/lib/logger.d.ts.map +1 -0
  183. package/lib/logger.js +15 -17
  184. package/lib/logger.js.map +1 -0
  185. package/lib/oas-types.d.ts +4 -3
  186. package/lib/oas-types.d.ts.map +1 -0
  187. package/lib/oas-types.js +27 -32
  188. package/lib/oas-types.js.map +1 -0
  189. package/lib/ref-utils.d.ts +3 -2
  190. package/lib/ref-utils.d.ts.map +1 -0
  191. package/lib/ref-utils.js +18 -33
  192. package/lib/ref-utils.js.map +1 -0
  193. package/lib/resolve.d.ts +3 -2
  194. package/lib/resolve.d.ts.map +1 -0
  195. package/lib/resolve.js +36 -45
  196. package/lib/resolve.js.map +1 -0
  197. package/lib/rules/ajv.d.ts +4 -3
  198. package/lib/rules/ajv.d.ts.map +1 -0
  199. package/lib/rules/ajv.js +7 -10
  200. package/lib/rules/ajv.js.map +1 -0
  201. package/lib/rules/arazzo/criteria-unique.d.ts +2 -1
  202. package/lib/rules/arazzo/criteria-unique.d.ts.map +1 -0
  203. package/lib/rules/arazzo/criteria-unique.js +2 -5
  204. package/lib/rules/arazzo/criteria-unique.js.map +1 -0
  205. package/lib/rules/arazzo/index.d.ts +2 -1
  206. package/lib/rules/arazzo/index.d.ts.map +1 -0
  207. package/lib/rules/arazzo/index.js +33 -35
  208. package/lib/rules/arazzo/index.js.map +1 -0
  209. package/lib/rules/arazzo/parameters-unique.d.ts +2 -1
  210. package/lib/rules/arazzo/parameters-unique.d.ts.map +1 -0
  211. package/lib/rules/arazzo/parameters-unique.js +2 -5
  212. package/lib/rules/arazzo/parameters-unique.js.map +1 -0
  213. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +2 -1
  214. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +1 -0
  215. package/lib/rules/arazzo/requestBody-replacements-unique.js +2 -5
  216. package/lib/rules/arazzo/requestBody-replacements-unique.js.map +1 -0
  217. package/lib/rules/arazzo/sourceDescription-type.d.ts +2 -1
  218. package/lib/rules/arazzo/sourceDescription-type.d.ts.map +1 -0
  219. package/lib/rules/arazzo/sourceDescription-type.js +2 -5
  220. package/lib/rules/arazzo/sourceDescription-type.js.map +1 -0
  221. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +2 -1
  222. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +1 -0
  223. package/lib/rules/arazzo/sourceDescriptions-name-unique.js +2 -5
  224. package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +1 -0
  225. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +2 -1
  226. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +1 -0
  227. package/lib/rules/arazzo/sourceDescriptions-not-empty.js +2 -5
  228. package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +1 -0
  229. package/lib/rules/arazzo/step-onFailure-unique.d.ts +2 -1
  230. package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +1 -0
  231. package/lib/rules/arazzo/step-onFailure-unique.js +2 -5
  232. package/lib/rules/arazzo/step-onFailure-unique.js.map +1 -0
  233. package/lib/rules/arazzo/step-onSuccess-unique.d.ts +2 -1
  234. package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +1 -0
  235. package/lib/rules/arazzo/step-onSuccess-unique.js +2 -5
  236. package/lib/rules/arazzo/step-onSuccess-unique.js.map +1 -0
  237. package/lib/rules/arazzo/stepId-unique.d.ts +2 -1
  238. package/lib/rules/arazzo/stepId-unique.d.ts.map +1 -0
  239. package/lib/rules/arazzo/stepId-unique.js +2 -5
  240. package/lib/rules/arazzo/stepId-unique.js.map +1 -0
  241. package/lib/rules/arazzo/workflow-dependsOn.d.ts +2 -1
  242. package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +1 -0
  243. package/lib/rules/arazzo/workflow-dependsOn.js +2 -5
  244. package/lib/rules/arazzo/workflow-dependsOn.js.map +1 -0
  245. package/lib/rules/arazzo/workflowId-unique.d.ts +2 -1
  246. package/lib/rules/arazzo/workflowId-unique.d.ts.map +1 -0
  247. package/lib/rules/arazzo/workflowId-unique.js +2 -5
  248. package/lib/rules/arazzo/workflowId-unique.js.map +1 -0
  249. package/lib/rules/async2/channels-kebab-case.d.ts +2 -1
  250. package/lib/rules/async2/channels-kebab-case.d.ts.map +1 -0
  251. package/lib/rules/async2/channels-kebab-case.js +2 -5
  252. package/lib/rules/async2/channels-kebab-case.js.map +1 -0
  253. package/lib/rules/async2/index.d.ts +2 -1
  254. package/lib/rules/async2/index.d.ts.map +1 -0
  255. package/lib/rules/async2/index.js +21 -26
  256. package/lib/rules/async2/index.js.map +1 -0
  257. package/lib/rules/async2/no-channel-trailing-slash.d.ts +2 -1
  258. package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +1 -0
  259. package/lib/rules/async2/no-channel-trailing-slash.js +2 -5
  260. package/lib/rules/async2/no-channel-trailing-slash.js.map +1 -0
  261. package/lib/rules/async3/channels-kebab-case.d.ts +2 -1
  262. package/lib/rules/async3/channels-kebab-case.d.ts.map +1 -0
  263. package/lib/rules/async3/channels-kebab-case.js +2 -5
  264. package/lib/rules/async3/channels-kebab-case.js.map +1 -0
  265. package/lib/rules/async3/index.d.ts +2 -1
  266. package/lib/rules/async3/index.d.ts.map +1 -0
  267. package/lib/rules/async3/index.js +21 -26
  268. package/lib/rules/async3/index.js.map +1 -0
  269. package/lib/rules/async3/no-channel-trailing-slash.d.ts +2 -1
  270. package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +1 -0
  271. package/lib/rules/async3/no-channel-trailing-slash.js +3 -6
  272. package/lib/rules/async3/no-channel-trailing-slash.js.map +1 -0
  273. package/lib/rules/common/assertions/asserts.d.ts +3 -2
  274. package/lib/rules/common/assertions/asserts.d.ts.map +1 -0
  275. package/lib/rules/common/assertions/asserts.js +35 -38
  276. package/lib/rules/common/assertions/asserts.js.map +1 -0
  277. package/lib/rules/common/assertions/index.d.ts +4 -3
  278. package/lib/rules/common/assertions/index.d.ts.map +1 -0
  279. package/lib/rules/common/assertions/index.js +7 -10
  280. package/lib/rules/common/assertions/index.js.map +1 -0
  281. package/lib/rules/common/assertions/utils.d.ts +5 -4
  282. package/lib/rules/common/assertions/utils.d.ts.map +1 -0
  283. package/lib/rules/common/assertions/utils.js +21 -29
  284. package/lib/rules/common/assertions/utils.js.map +1 -0
  285. package/lib/rules/common/info-contact.d.ts +2 -1
  286. package/lib/rules/common/info-contact.d.ts.map +1 -0
  287. package/lib/rules/common/info-contact.js +4 -7
  288. package/lib/rules/common/info-contact.js.map +1 -0
  289. package/lib/rules/common/info-license-strict.d.ts +2 -1
  290. package/lib/rules/common/info-license-strict.d.ts.map +1 -0
  291. package/lib/rules/common/info-license-strict.js +7 -10
  292. package/lib/rules/common/info-license-strict.js.map +1 -0
  293. package/lib/rules/common/info-license-url.d.ts +2 -1
  294. package/lib/rules/common/info-license-url.d.ts.map +1 -0
  295. package/lib/rules/common/info-license-url.js +4 -7
  296. package/lib/rules/common/info-license-url.js.map +1 -0
  297. package/lib/rules/common/info-license.d.ts +2 -1
  298. package/lib/rules/common/info-license.d.ts.map +1 -0
  299. package/lib/rules/common/info-license.js +4 -7
  300. package/lib/rules/common/info-license.js.map +1 -0
  301. package/lib/rules/common/no-ambiguous-paths.d.ts +2 -1
  302. package/lib/rules/common/no-ambiguous-paths.d.ts.map +1 -0
  303. package/lib/rules/common/no-ambiguous-paths.js +2 -5
  304. package/lib/rules/common/no-ambiguous-paths.js.map +1 -0
  305. package/lib/rules/common/no-enum-type-mismatch.d.ts +2 -1
  306. package/lib/rules/common/no-enum-type-mismatch.d.ts.map +1 -0
  307. package/lib/rules/common/no-enum-type-mismatch.js +6 -9
  308. package/lib/rules/common/no-enum-type-mismatch.js.map +1 -0
  309. package/lib/rules/common/no-http-verbs-in-paths.d.ts +2 -1
  310. package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -0
  311. package/lib/rules/common/no-http-verbs-in-paths.js +5 -8
  312. package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -0
  313. package/lib/rules/common/no-identical-paths.d.ts +2 -1
  314. package/lib/rules/common/no-identical-paths.d.ts.map +1 -0
  315. package/lib/rules/common/no-identical-paths.js +2 -5
  316. package/lib/rules/common/no-identical-paths.js.map +1 -0
  317. package/lib/rules/common/no-invalid-parameter-examples.d.ts +1 -0
  318. package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +1 -0
  319. package/lib/rules/common/no-invalid-parameter-examples.js +6 -9
  320. package/lib/rules/common/no-invalid-parameter-examples.js.map +1 -0
  321. package/lib/rules/common/no-invalid-schema-examples.d.ts +2 -1
  322. package/lib/rules/common/no-invalid-schema-examples.d.ts.map +1 -0
  323. package/lib/rules/common/no-invalid-schema-examples.js +6 -9
  324. package/lib/rules/common/no-invalid-schema-examples.js.map +1 -0
  325. package/lib/rules/common/no-path-trailing-slash.d.ts +2 -1
  326. package/lib/rules/common/no-path-trailing-slash.d.ts.map +1 -0
  327. package/lib/rules/common/no-path-trailing-slash.js +2 -5
  328. package/lib/rules/common/no-path-trailing-slash.js.map +1 -0
  329. package/lib/rules/common/no-required-schema-properties-undefined.d.ts +2 -1
  330. package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +1 -0
  331. package/lib/rules/common/no-required-schema-properties-undefined.js +4 -7
  332. package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -0
  333. package/lib/rules/common/no-schema-type-mismatch.d.ts +2 -1
  334. package/lib/rules/common/no-schema-type-mismatch.d.ts.map +1 -0
  335. package/lib/rules/common/no-schema-type-mismatch.js +2 -5
  336. package/lib/rules/common/no-schema-type-mismatch.js.map +1 -0
  337. package/lib/rules/common/operation-2xx-response.d.ts +2 -1
  338. package/lib/rules/common/operation-2xx-response.d.ts.map +1 -0
  339. package/lib/rules/common/operation-2xx-response.js +5 -8
  340. package/lib/rules/common/operation-2xx-response.js.map +1 -0
  341. package/lib/rules/common/operation-4xx-response.d.ts +2 -1
  342. package/lib/rules/common/operation-4xx-response.d.ts.map +1 -0
  343. package/lib/rules/common/operation-4xx-response.js +5 -8
  344. package/lib/rules/common/operation-4xx-response.js.map +1 -0
  345. package/lib/rules/common/operation-description.d.ts +2 -1
  346. package/lib/rules/common/operation-description.d.ts.map +1 -0
  347. package/lib/rules/common/operation-description.js +4 -7
  348. package/lib/rules/common/operation-description.js.map +1 -0
  349. package/lib/rules/common/operation-operationId-unique.d.ts +2 -1
  350. package/lib/rules/common/operation-operationId-unique.d.ts.map +1 -0
  351. package/lib/rules/common/operation-operationId-unique.js +2 -5
  352. package/lib/rules/common/operation-operationId-unique.js.map +1 -0
  353. package/lib/rules/common/operation-operationId-url-safe.d.ts +2 -1
  354. package/lib/rules/common/operation-operationId-url-safe.d.ts.map +1 -0
  355. package/lib/rules/common/operation-operationId-url-safe.js +2 -5
  356. package/lib/rules/common/operation-operationId-url-safe.js.map +1 -0
  357. package/lib/rules/common/operation-operationId.d.ts +2 -1
  358. package/lib/rules/common/operation-operationId.d.ts.map +1 -0
  359. package/lib/rules/common/operation-operationId.js +4 -7
  360. package/lib/rules/common/operation-operationId.js.map +1 -0
  361. package/lib/rules/common/operation-parameters-unique.d.ts +2 -1
  362. package/lib/rules/common/operation-parameters-unique.d.ts.map +1 -0
  363. package/lib/rules/common/operation-parameters-unique.js +2 -5
  364. package/lib/rules/common/operation-parameters-unique.js.map +1 -0
  365. package/lib/rules/common/operation-singular-tag.d.ts +2 -1
  366. package/lib/rules/common/operation-singular-tag.d.ts.map +1 -0
  367. package/lib/rules/common/operation-singular-tag.js +2 -5
  368. package/lib/rules/common/operation-singular-tag.js.map +1 -0
  369. package/lib/rules/common/operation-summary.d.ts +2 -1
  370. package/lib/rules/common/operation-summary.d.ts.map +1 -0
  371. package/lib/rules/common/operation-summary.js +4 -7
  372. package/lib/rules/common/operation-summary.js.map +1 -0
  373. package/lib/rules/common/operation-tag-defined.d.ts +2 -1
  374. package/lib/rules/common/operation-tag-defined.d.ts.map +1 -0
  375. package/lib/rules/common/operation-tag-defined.js +2 -5
  376. package/lib/rules/common/operation-tag-defined.js.map +1 -0
  377. package/lib/rules/common/parameter-description.d.ts +2 -1
  378. package/lib/rules/common/parameter-description.d.ts.map +1 -0
  379. package/lib/rules/common/parameter-description.js +2 -5
  380. package/lib/rules/common/parameter-description.js.map +1 -0
  381. package/lib/rules/common/path-declaration-must-exist.d.ts +2 -1
  382. package/lib/rules/common/path-declaration-must-exist.d.ts.map +1 -0
  383. package/lib/rules/common/path-declaration-must-exist.js +2 -5
  384. package/lib/rules/common/path-declaration-must-exist.js.map +1 -0
  385. package/lib/rules/common/path-excludes-patterns.d.ts +2 -1
  386. package/lib/rules/common/path-excludes-patterns.d.ts.map +1 -0
  387. package/lib/rules/common/path-excludes-patterns.js +2 -5
  388. package/lib/rules/common/path-excludes-patterns.js.map +1 -0
  389. package/lib/rules/common/path-http-verbs-order.d.ts +2 -1
  390. package/lib/rules/common/path-http-verbs-order.d.ts.map +1 -0
  391. package/lib/rules/common/path-http-verbs-order.js +2 -5
  392. package/lib/rules/common/path-http-verbs-order.js.map +1 -0
  393. package/lib/rules/common/path-not-include-query.d.ts +2 -1
  394. package/lib/rules/common/path-not-include-query.d.ts.map +1 -0
  395. package/lib/rules/common/path-not-include-query.js +2 -5
  396. package/lib/rules/common/path-not-include-query.js.map +1 -0
  397. package/lib/rules/common/path-params-defined.d.ts +2 -1
  398. package/lib/rules/common/path-params-defined.d.ts.map +1 -0
  399. package/lib/rules/common/path-params-defined.js +2 -5
  400. package/lib/rules/common/path-params-defined.js.map +1 -0
  401. package/lib/rules/common/path-segment-plural.d.ts +2 -1
  402. package/lib/rules/common/path-segment-plural.d.ts.map +1 -0
  403. package/lib/rules/common/path-segment-plural.js +6 -9
  404. package/lib/rules/common/path-segment-plural.js.map +1 -0
  405. package/lib/rules/common/paths-kebab-case.d.ts +2 -1
  406. package/lib/rules/common/paths-kebab-case.d.ts.map +1 -0
  407. package/lib/rules/common/paths-kebab-case.js +2 -5
  408. package/lib/rules/common/paths-kebab-case.js.map +1 -0
  409. package/lib/rules/common/required-string-property-missing-min-length.d.ts +2 -1
  410. package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +1 -0
  411. package/lib/rules/common/required-string-property-missing-min-length.js +2 -5
  412. package/lib/rules/common/required-string-property-missing-min-length.js.map +1 -0
  413. package/lib/rules/common/response-contains-header.d.ts +2 -1
  414. package/lib/rules/common/response-contains-header.d.ts.map +1 -0
  415. package/lib/rules/common/response-contains-header.js +5 -8
  416. package/lib/rules/common/response-contains-header.js.map +1 -0
  417. package/lib/rules/common/scalar-property-missing-example.d.ts +2 -1
  418. package/lib/rules/common/scalar-property-missing-example.d.ts.map +1 -0
  419. package/lib/rules/common/scalar-property-missing-example.js +4 -7
  420. package/lib/rules/common/scalar-property-missing-example.js.map +1 -0
  421. package/lib/rules/common/security-defined.d.ts +2 -1
  422. package/lib/rules/common/security-defined.d.ts.map +1 -0
  423. package/lib/rules/common/security-defined.js +2 -5
  424. package/lib/rules/common/security-defined.js.map +1 -0
  425. package/lib/rules/common/spec-strict-refs.d.ts +2 -1
  426. package/lib/rules/common/spec-strict-refs.d.ts.map +1 -0
  427. package/lib/rules/common/spec-strict-refs.js +4 -7
  428. package/lib/rules/common/spec-strict-refs.js.map +1 -0
  429. package/lib/rules/common/struct.d.ts +2 -1
  430. package/lib/rules/common/struct.d.ts.map +1 -0
  431. package/lib/rules/common/struct.js +18 -21
  432. package/lib/rules/common/struct.js.map +1 -0
  433. package/lib/rules/common/tag-description.d.ts +2 -1
  434. package/lib/rules/common/tag-description.d.ts.map +1 -0
  435. package/lib/rules/common/tag-description.js +4 -7
  436. package/lib/rules/common/tag-description.js.map +1 -0
  437. package/lib/rules/common/tags-alphabetical.d.ts +2 -1
  438. package/lib/rules/common/tags-alphabetical.d.ts.map +1 -0
  439. package/lib/rules/common/tags-alphabetical.js +2 -5
  440. package/lib/rules/common/tags-alphabetical.js.map +1 -0
  441. package/lib/rules/no-unresolved-refs.d.ts +4 -3
  442. package/lib/rules/no-unresolved-refs.d.ts.map +1 -0
  443. package/lib/rules/no-unresolved-refs.js +5 -9
  444. package/lib/rules/no-unresolved-refs.js.map +1 -0
  445. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +2 -1
  446. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +1 -0
  447. package/lib/rules/oas2/boolean-parameter-prefixes.js +2 -5
  448. package/lib/rules/oas2/boolean-parameter-prefixes.js.map +1 -0
  449. package/lib/rules/oas2/index.d.ts +2 -1
  450. package/lib/rules/oas2/index.d.ts.map +1 -0
  451. package/lib/rules/oas2/index.js +94 -99
  452. package/lib/rules/oas2/index.js.map +1 -0
  453. package/lib/rules/oas2/request-mime-type.d.ts +2 -1
  454. package/lib/rules/oas2/request-mime-type.d.ts.map +1 -0
  455. package/lib/rules/oas2/request-mime-type.js +5 -8
  456. package/lib/rules/oas2/request-mime-type.js.map +1 -0
  457. package/lib/rules/oas2/response-contains-property.d.ts +2 -1
  458. package/lib/rules/oas2/response-contains-property.d.ts.map +1 -0
  459. package/lib/rules/oas2/response-contains-property.js +5 -8
  460. package/lib/rules/oas2/response-contains-property.js.map +1 -0
  461. package/lib/rules/oas2/response-mime-type.d.ts +2 -1
  462. package/lib/rules/oas2/response-mime-type.d.ts.map +1 -0
  463. package/lib/rules/oas2/response-mime-type.js +5 -8
  464. package/lib/rules/oas2/response-mime-type.js.map +1 -0
  465. package/lib/rules/oas3/array-parameter-serialization.d.ts +2 -1
  466. package/lib/rules/oas3/array-parameter-serialization.d.ts.map +1 -0
  467. package/lib/rules/oas3/array-parameter-serialization.js +4 -7
  468. package/lib/rules/oas3/array-parameter-serialization.js.map +1 -0
  469. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +2 -1
  470. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +1 -0
  471. package/lib/rules/oas3/boolean-parameter-prefixes.js +2 -5
  472. package/lib/rules/oas3/boolean-parameter-prefixes.js.map +1 -0
  473. package/lib/rules/oas3/component-name-unique.d.ts +2 -1
  474. package/lib/rules/oas3/component-name-unique.d.ts.map +1 -0
  475. package/lib/rules/oas3/component-name-unique.js +2 -5
  476. package/lib/rules/oas3/component-name-unique.js.map +1 -0
  477. package/lib/rules/oas3/index.d.ts +2 -1
  478. package/lib/rules/oas3/index.d.ts.map +1 -0
  479. package/lib/rules/oas3/index.js +118 -123
  480. package/lib/rules/oas3/index.js.map +1 -0
  481. package/lib/rules/oas3/no-empty-servers.d.ts +2 -1
  482. package/lib/rules/oas3/no-empty-servers.d.ts.map +1 -0
  483. package/lib/rules/oas3/no-empty-servers.js +2 -5
  484. package/lib/rules/oas3/no-empty-servers.js.map +1 -0
  485. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +2 -1
  486. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +1 -0
  487. package/lib/rules/oas3/no-example-value-and-externalValue.js +2 -5
  488. package/lib/rules/oas3/no-example-value-and-externalValue.js.map +1 -0
  489. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +2 -1
  490. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +1 -0
  491. package/lib/rules/oas3/no-invalid-media-type-examples.js +7 -10
  492. package/lib/rules/oas3/no-invalid-media-type-examples.js.map +1 -0
  493. package/lib/rules/oas3/no-server-example.com.d.ts +2 -1
  494. package/lib/rules/oas3/no-server-example.com.d.ts.map +1 -0
  495. package/lib/rules/oas3/no-server-example.com.js +2 -5
  496. package/lib/rules/oas3/no-server-example.com.js.map +1 -0
  497. package/lib/rules/oas3/no-server-trailing-slash.d.ts +2 -1
  498. package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +1 -0
  499. package/lib/rules/oas3/no-server-trailing-slash.js +2 -5
  500. package/lib/rules/oas3/no-server-trailing-slash.js.map +1 -0
  501. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +2 -1
  502. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +1 -0
  503. package/lib/rules/oas3/no-server-variables-empty-enum.js +2 -5
  504. package/lib/rules/oas3/no-server-variables-empty-enum.js.map +1 -0
  505. package/lib/rules/oas3/no-undefined-server-variable.d.ts +2 -1
  506. package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +1 -0
  507. package/lib/rules/oas3/no-undefined-server-variable.js +2 -5
  508. package/lib/rules/oas3/no-undefined-server-variable.js.map +1 -0
  509. package/lib/rules/oas3/no-unused-components.d.ts +2 -1
  510. package/lib/rules/oas3/no-unused-components.d.ts.map +1 -0
  511. package/lib/rules/oas3/no-unused-components.js +2 -5
  512. package/lib/rules/oas3/no-unused-components.js.map +1 -0
  513. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +2 -1
  514. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +1 -0
  515. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +6 -9
  516. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +1 -0
  517. package/lib/rules/oas3/request-mime-type.d.ts +2 -1
  518. package/lib/rules/oas3/request-mime-type.d.ts.map +1 -0
  519. package/lib/rules/oas3/request-mime-type.js +6 -9
  520. package/lib/rules/oas3/request-mime-type.js.map +1 -0
  521. package/lib/rules/oas3/response-contains-property.d.ts +2 -1
  522. package/lib/rules/oas3/response-contains-property.d.ts.map +1 -0
  523. package/lib/rules/oas3/response-contains-property.js +5 -8
  524. package/lib/rules/oas3/response-contains-property.js.map +1 -0
  525. package/lib/rules/oas3/response-mime-type.d.ts +2 -1
  526. package/lib/rules/oas3/response-mime-type.d.ts.map +1 -0
  527. package/lib/rules/oas3/response-mime-type.js +6 -9
  528. package/lib/rules/oas3/response-mime-type.js.map +1 -0
  529. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +2 -1
  530. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +1 -0
  531. package/lib/rules/oas3/spec-components-invalid-map-name.js +2 -5
  532. package/lib/rules/oas3/spec-components-invalid-map-name.js.map +1 -0
  533. package/lib/rules/other/stats.d.ts +4 -3
  534. package/lib/rules/other/stats.d.ts.map +1 -0
  535. package/lib/rules/other/stats.js +2 -5
  536. package/lib/rules/other/stats.js.map +1 -0
  537. package/lib/rules/overlay1/index.d.ts +2 -1
  538. package/lib/rules/overlay1/index.d.ts.map +1 -0
  539. package/lib/rules/overlay1/index.js +9 -11
  540. package/lib/rules/overlay1/index.js.map +1 -0
  541. package/lib/rules/respect/no-criteria-xpath.d.ts +2 -1
  542. package/lib/rules/respect/no-criteria-xpath.d.ts.map +1 -0
  543. package/lib/rules/respect/no-criteria-xpath.js +2 -5
  544. package/lib/rules/respect/no-criteria-xpath.js.map +1 -0
  545. package/lib/rules/respect/respect-supported-versions.d.ts +2 -1
  546. package/lib/rules/respect/respect-supported-versions.d.ts.map +1 -0
  547. package/lib/rules/respect/respect-supported-versions.js +7 -10
  548. package/lib/rules/respect/respect-supported-versions.js.map +1 -0
  549. package/lib/rules/utils.d.ts +4 -3
  550. package/lib/rules/utils.d.ts.map +1 -0
  551. package/lib/rules/utils.js +23 -36
  552. package/lib/rules/utils.js.map +1 -0
  553. package/lib/types/arazzo.d.ts +2 -1
  554. package/lib/types/arazzo.d.ts.map +1 -0
  555. package/lib/types/arazzo.js +21 -23
  556. package/lib/types/arazzo.js.map +1 -0
  557. package/lib/types/asyncapi2.d.ts +2 -1
  558. package/lib/types/asyncapi2.d.ts.map +1 -0
  559. package/lib/types/asyncapi2.js +54 -56
  560. package/lib/types/asyncapi2.js.map +1 -0
  561. package/lib/types/asyncapi3.d.ts +2 -1
  562. package/lib/types/asyncapi3.d.ts.map +1 -0
  563. package/lib/types/asyncapi3.js +41 -43
  564. package/lib/types/asyncapi3.js.map +1 -0
  565. package/lib/types/index.d.ts +1 -0
  566. package/lib/types/index.d.ts.map +1 -0
  567. package/lib/types/index.js +7 -13
  568. package/lib/types/index.js.map +1 -0
  569. package/lib/types/json-schema-adapter.d.ts +2 -1
  570. package/lib/types/json-schema-adapter.d.ts.map +1 -0
  571. package/lib/types/json-schema-adapter.js +15 -17
  572. package/lib/types/json-schema-adapter.js.map +1 -0
  573. package/lib/types/oas2.d.ts +3 -2
  574. package/lib/types/oas2.d.ts.map +1 -0
  575. package/lib/types/oas2.js +17 -19
  576. package/lib/types/oas2.js.map +1 -0
  577. package/lib/types/oas3.d.ts +3 -2
  578. package/lib/types/oas3.d.ts.map +1 -0
  579. package/lib/types/oas3.js +39 -41
  580. package/lib/types/oas3.js.map +1 -0
  581. package/lib/types/oas3_1.d.ts +3 -2
  582. package/lib/types/oas3_1.d.ts.map +1 -0
  583. package/lib/types/oas3_1.js +18 -20
  584. package/lib/types/oas3_1.js.map +1 -0
  585. package/lib/types/overlay.d.ts +2 -1
  586. package/lib/types/overlay.d.ts.map +1 -0
  587. package/lib/types/overlay.js +4 -6
  588. package/lib/types/overlay.js.map +1 -0
  589. package/lib/types/redocly-yaml.d.ts +4 -3
  590. package/lib/types/redocly-yaml.d.ts.map +1 -0
  591. package/lib/types/redocly-yaml.js +31 -58
  592. package/lib/types/redocly-yaml.js.map +1 -0
  593. package/lib/typings/arazzo.d.ts +1 -0
  594. package/lib/typings/arazzo.d.ts.map +1 -0
  595. package/lib/typings/arazzo.js +3 -5
  596. package/lib/typings/arazzo.js.map +1 -0
  597. package/lib/typings/asyncapi.d.ts +1 -0
  598. package/lib/typings/asyncapi.d.ts.map +1 -0
  599. package/lib/typings/asyncapi.js +2 -2
  600. package/lib/typings/asyncapi.js.map +1 -0
  601. package/lib/typings/asyncapi3.d.ts +1 -0
  602. package/lib/typings/asyncapi3.d.ts.map +1 -0
  603. package/lib/typings/asyncapi3.js +2 -2
  604. package/lib/typings/asyncapi3.js.map +1 -0
  605. package/lib/typings/common.d.ts +1 -0
  606. package/lib/typings/common.d.ts.map +1 -0
  607. package/lib/typings/common.js +2 -2
  608. package/lib/typings/common.js.map +1 -0
  609. package/lib/typings/openapi.d.ts +1 -0
  610. package/lib/typings/openapi.d.ts.map +1 -0
  611. package/lib/typings/openapi.js +2 -2
  612. package/lib/typings/openapi.js.map +1 -0
  613. package/lib/typings/overlay.d.ts +1 -0
  614. package/lib/typings/overlay.d.ts.map +1 -0
  615. package/lib/typings/overlay.js +2 -4
  616. package/lib/typings/overlay.js.map +1 -0
  617. package/lib/typings/swagger.d.ts +2 -1
  618. package/lib/typings/swagger.d.ts.map +1 -0
  619. package/lib/typings/swagger.js +2 -2
  620. package/lib/typings/swagger.js.map +1 -0
  621. package/lib/utils/error.d.ts +3 -0
  622. package/lib/utils/error.d.ts.map +1 -0
  623. package/lib/utils/error.js +3 -0
  624. package/lib/utils/error.js.map +1 -0
  625. package/lib/utils.d.ts +4 -5
  626. package/lib/utils.d.ts.map +1 -0
  627. package/lib/utils.js +52 -99
  628. package/lib/utils.js.map +1 -0
  629. package/lib/visitors.d.ts +11 -10
  630. package/lib/visitors.d.ts.map +1 -0
  631. package/lib/visitors.js +4 -6
  632. package/lib/visitors.js.map +1 -0
  633. package/lib/walk.d.ts +9 -8
  634. package/lib/walk.d.ts.map +1 -0
  635. package/lib/walk.js +23 -25
  636. package/lib/walk.js.map +1 -0
  637. package/package.json +31 -10
  638. package/lib/decorators/common/registry-dependencies.d.ts +0 -2
  639. package/lib/decorators/common/registry-dependencies.js +0 -24
  640. package/lib/output.d.ts +0 -3
  641. package/lib/output.js +0 -9
  642. package/lib/redocly/domains.d.ts +0 -14
  643. package/lib/redocly/domains.js +0 -41
  644. package/lib/redocly/index.d.ts +0 -30
  645. package/lib/redocly/index.js +0 -131
  646. package/lib/redocly/redocly-client-types.d.ts +0 -8
  647. package/lib/redocly/redocly-client-types.js +0 -2
  648. package/lib/redocly/registry-api-types.d.ts +0 -29
  649. package/lib/redocly/registry-api-types.js +0 -2
  650. package/lib/redocly/registry-api.d.ts +0 -17
  651. package/lib/redocly/registry-api.js +0 -100
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationIdUnique: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-operationId-unique.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-operationId-unique.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-operationId-unique.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,iBAAiB,EAAE,QAAQ,GAAG,QAe1C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationIdUnique = void 0;
4
- const OperationIdUnique = () => {
1
+ export const OperationIdUnique = () => {
5
2
  const seenOperations = new Set();
6
3
  return {
7
4
  Operation(operation, { report, location }) {
@@ -17,4 +14,4 @@ const OperationIdUnique = () => {
17
14
  },
18
15
  };
19
16
  };
20
- exports.OperationIdUnique = OperationIdUnique;
17
+ //# sourceMappingURL=operation-operationId-unique.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-operationId-unique.js","sourceRoot":"","sources":["../../../src/rules/common/operation-operationId-unique.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,iBAAiB,GAAwB,GAAG,EAAE;IACzD,MAAM,cAAc,GAAG,IAAI,GAAG,EAAE,CAAC;IAEjC,OAAO;QACL,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YACnF,IAAI,CAAC,SAAS,CAAC,WAAW;gBAAE,OAAO;YACnC,IAAI,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC9C,MAAM,CAAC;oBACL,OAAO,EAAE,mDAAmD;oBAC5D,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;iBAClD,CAAC,CAAC;YACL,CAAC;YACD,cAAc,CAAC,GAAG,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationIdUrlSafe: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-operationId-url-safe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-operationId-url-safe.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-operationId-url-safe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAQ5D,eAAO,MAAM,kBAAkB,EAAE,QAAQ,GAAG,QAW3C,CAAC"}
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationIdUrlSafe = void 0;
4
1
  // eslint-disable-next-line no-useless-escape
5
2
  const validUrlSymbols = /^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/;
6
- const OperationIdUrlSafe = () => {
3
+ export const OperationIdUrlSafe = () => {
7
4
  return {
8
5
  Operation(operation, { report, location }) {
9
6
  if (operation.operationId && !validUrlSymbols.test(operation.operationId)) {
@@ -15,4 +12,4 @@ const OperationIdUrlSafe = () => {
15
12
  },
16
13
  };
17
14
  };
18
- exports.OperationIdUrlSafe = OperationIdUrlSafe;
15
+ //# sourceMappingURL=operation-operationId-url-safe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-operationId-url-safe.js","sourceRoot":"","sources":["../../../src/rules/common/operation-operationId-url-safe.ts"],"names":[],"mappings":"AAKA,6CAA6C;AAC7C,MAAM,eAAe,GAAG,yCAAyC,CAAC;AAElE,MAAM,CAAC,MAAM,kBAAkB,GAAwB,GAAG,EAAE;IAC1D,OAAO;QACL,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YACnF,IAAI,SAAS,CAAC,WAAW,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,CAAC;gBAC1E,MAAM,CAAC;oBACL,OAAO,EAAE,iEAAiE;oBAC1E,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC;iBAC1C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationOperationId: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-operationId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-operationId.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-operationId.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,oBAAoB,EAAE,QAAQ,GAAG,QAU7C,CAAC"}
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationOperationId = void 0;
4
- const utils_1 = require("../utils");
5
- const OperationOperationId = () => {
1
+ import { validateDefinedAndNonEmpty } from '../utils.js';
2
+ export const OperationOperationId = () => {
6
3
  return {
7
4
  Root: {
8
5
  PathItem: {
9
6
  Operation(operation, ctx) {
10
- (0, utils_1.validateDefinedAndNonEmpty)('operationId', operation, ctx);
7
+ validateDefinedAndNonEmpty('operationId', operation, ctx);
11
8
  },
12
9
  },
13
10
  },
14
11
  };
15
12
  };
16
- exports.OperationOperationId = OperationOperationId;
13
+ //# sourceMappingURL=operation-operationId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-operationId.js","sourceRoot":"","sources":["../../../src/rules/common/operation-operationId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAOzD,MAAM,CAAC,MAAM,oBAAoB,GAAwB,GAAG,EAAE;IAC5D,OAAO;QACL,IAAI,EAAE;YACJ,QAAQ,EAAE;gBACR,SAAS,CAAC,SAAwC,EAAE,GAAgB;oBAClE,0BAA0B,CAAC,aAAa,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;gBAC5D,CAAC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationParametersUnique: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-parameters-unique.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-parameters-unique.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-parameters-unique.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,yBAAyB,EAAE,QAAQ,GAAG,QA0ClD,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationParametersUnique = void 0;
4
- const OperationParametersUnique = () => {
1
+ export const OperationParametersUnique = () => {
5
2
  let seenPathParams;
6
3
  let seenOperationParams;
7
4
  return {
@@ -37,4 +34,4 @@ const OperationParametersUnique = () => {
37
34
  },
38
35
  };
39
36
  };
40
- exports.OperationParametersUnique = OperationParametersUnique;
37
+ //# sourceMappingURL=operation-parameters-unique.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-parameters-unique.js","sourceRoot":"","sources":["../../../src/rules/common/operation-parameters-unique.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,yBAAyB,GAAwB,GAAG,EAAE;IACjE,IAAI,cAA2B,CAAC;IAChC,IAAI,mBAAgC,CAAC;IAErC,OAAO;QACL,QAAQ,EAAE;YACR,KAAK;gBACH,cAAc,GAAG,IAAI,GAAG,EAAE,CAAC;YAC7B,CAAC;YACD,SAAS,CACP,SAAwC,EACxC,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAe;gBAE7C,MAAM,OAAO,GAAG,GAAG,SAAS,CAAC,EAAE,MAAM,SAAS,CAAC,IAAI,EAAE,CAAC;gBACtD,IAAI,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;oBAChC,MAAM,CAAC;wBACL,OAAO,EAAE,yEAAyE,SAAS,CAAC,EAAE,eAAe,SAAS,CAAC,IAAI,KAAK;wBAChI,QAAQ,EAAE,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;qBAC9D,CAAC,CAAC;gBACL,CAAC;gBACD,cAAc,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,EAAE,MAAM,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;YAC5D,CAAC;YACD,SAAS,EAAE;gBACT,KAAK;oBACH,mBAAmB,GAAG,IAAI,GAAG,EAAE,CAAC;gBAClC,CAAC;gBACD,SAAS,CACP,SAAwC,EACxC,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,EAAe;oBAE7C,MAAM,OAAO,GAAG,GAAG,SAAS,CAAC,EAAE,MAAM,SAAS,CAAC,IAAI,EAAE,CAAC;oBACtD,IAAI,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;wBACrC,MAAM,CAAC;4BACL,OAAO,EAAE,6EAA6E,SAAS,CAAC,EAAE,eAAe,SAAS,CAAC,IAAI,KAAK;4BACpI,QAAQ,EAAE,eAAe,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,YAAY,EAAE,GAAG,CAAC,CAAC;yBAC/D,CAAC,CAAC;oBACL,CAAC;oBACD,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;gBACnC,CAAC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationSingularTag: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-singular-tag.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-singular-tag.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-singular-tag.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,oBAAoB,EAAE,QAAQ,GAAG,QAW7C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationSingularTag = void 0;
4
- const OperationSingularTag = () => {
1
+ export const OperationSingularTag = () => {
5
2
  return {
6
3
  Operation(operation, { report, location }) {
7
4
  if (operation.tags && operation.tags.length > 1) {
@@ -13,4 +10,4 @@ const OperationSingularTag = () => {
13
10
  },
14
11
  };
15
12
  };
16
- exports.OperationSingularTag = OperationSingularTag;
13
+ //# sourceMappingURL=operation-singular-tag.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-singular-tag.js","sourceRoot":"","sources":["../../../src/rules/common/operation-singular-tag.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,oBAAoB,GAAwB,GAAG,EAAE;IAC5D,OAAO;QACL,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YACnF,IAAI,SAAS,CAAC,IAAI,IAAI,SAAS,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAChD,MAAM,CAAC;oBACL,OAAO,EAAE,mDAAmD;oBAC5D,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE;iBACzC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationSummary: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-summary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-summary.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-summary.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,gBAAgB,EAAE,QAAQ,GAAG,QAMzC,CAAC"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationSummary = void 0;
4
- const utils_1 = require("../utils");
5
- const OperationSummary = () => {
1
+ import { validateDefinedAndNonEmpty } from '../utils.js';
2
+ export const OperationSummary = () => {
6
3
  return {
7
4
  Operation(operation, ctx) {
8
- (0, utils_1.validateDefinedAndNonEmpty)('summary', operation, ctx);
5
+ validateDefinedAndNonEmpty('summary', operation, ctx);
9
6
  },
10
7
  };
11
8
  };
12
- exports.OperationSummary = OperationSummary;
9
+ //# sourceMappingURL=operation-summary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-summary.js","sourceRoot":"","sources":["../../../src/rules/common/operation-summary.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAOzD,MAAM,CAAC,MAAM,gBAAgB,GAAwB,GAAG,EAAE;IACxD,OAAO;QACL,SAAS,CAAC,SAAwC,EAAE,GAAgB;YAClE,0BAA0B,CAAC,SAAS,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;QACxD,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const OperationTagDefined: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=operation-tag-defined.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-tag-defined.d.ts","sourceRoot":"","sources":["../../../src/rules/common/operation-tag-defined.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,mBAAmB,EAAE,QAAQ,GAAG,QAyB5C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationTagDefined = void 0;
4
- const OperationTagDefined = () => {
1
+ export const OperationTagDefined = () => {
5
2
  let definedTags;
6
3
  return {
7
4
  Root(root) {
@@ -27,4 +24,4 @@ const OperationTagDefined = () => {
27
24
  },
28
25
  };
29
26
  };
30
- exports.OperationTagDefined = OperationTagDefined;
27
+ //# sourceMappingURL=operation-tag-defined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-tag-defined.js","sourceRoot":"","sources":["../../../src/rules/common/operation-tag-defined.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,mBAAmB,GAAwB,GAAG,EAAE;IAC3D,IAAI,WAAwB,CAAC;IAE7B,OAAO;QACL,IAAI,CAAC,IAAwD;YAC3D,WAAW,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QAC9D,CAAC;QACD,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YACnF,IAAI,SAAS,EAAE,IAAI,EAAE,CAAC;gBACpB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBAC/C,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;wBACxC,MAAM,CAAC;4BACL,OAAO,EAAE,kDAAkD;4BAC3D,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;yBACtC,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,MAAM,CAAC;oBACL,OAAO,EAAE,kCAAkC;oBAC3C,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;iBACzB,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const ParameterDescription: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=parameter-description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameter-description.d.ts","sourceRoot":"","sources":["../../../src/rules/common/parameter-description.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,oBAAoB,EAAE,QAAQ,GAAG,QAgB7C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ParameterDescription = void 0;
4
- const ParameterDescription = () => {
1
+ export const ParameterDescription = () => {
5
2
  return {
6
3
  Parameter(parameter, { report, location }) {
7
4
  if (parameter.description === undefined) {
@@ -19,4 +16,4 @@ const ParameterDescription = () => {
19
16
  },
20
17
  };
21
18
  };
22
- exports.ParameterDescription = ParameterDescription;
19
+ //# sourceMappingURL=parameter-description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parameter-description.js","sourceRoot":"","sources":["../../../src/rules/common/parameter-description.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,oBAAoB,GAAwB,GAAG,EAAE;IAC5D,OAAO;QACL,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YACnF,IAAI,SAAS,CAAC,WAAW,KAAK,SAAS,EAAE,CAAC;gBACxC,MAAM,CAAC;oBACL,OAAO,EAAE,+CAA+C;oBACxD,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;iBAChC,CAAC,CAAC;YACL,CAAC;iBAAM,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;gBAClC,MAAM,CAAC;oBACL,OAAO,EAAE,wDAAwD;oBACjE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC;iBAC1C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const PathDeclarationMustExist: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-declaration-must-exist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-declaration-must-exist.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-declaration-must-exist.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,wBAAwB,EAAE,QAAQ,GAAG,QAWjD,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathDeclarationMustExist = void 0;
4
- const PathDeclarationMustExist = () => {
1
+ export const PathDeclarationMustExist = () => {
5
2
  return {
6
3
  PathItem(_path, { report, key }) {
7
4
  if (key.indexOf('{}') !== -1) {
@@ -13,4 +10,4 @@ const PathDeclarationMustExist = () => {
13
10
  },
14
11
  };
15
12
  };
16
- exports.PathDeclarationMustExist = PathDeclarationMustExist;
13
+ //# sourceMappingURL=path-declaration-must-exist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-declaration-must-exist.js","sourceRoot":"","sources":["../../../src/rules/common/path-declaration-must-exist.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,wBAAwB,GAAwB,GAAG,EAAE;IAChE,OAAO;QACL,QAAQ,CAAC,KAAa,EAAE,EAAE,MAAM,EAAE,GAAG,EAAe;YAClD,IAAK,GAAc,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;gBACzC,MAAM,CAAC;oBACL,OAAO,EAAE,iEAAiE;oBAC1E,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;iBAChC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas2Rule, Oas3Rule } from '../../visitors';
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
2
  export declare const PathExcludesPatterns: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-excludes-patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-excludes-patterns.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-excludes-patterns.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,oBAAoB,EAAE,QAAQ,GAAG,QAiB7C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathExcludesPatterns = void 0;
4
- const PathExcludesPatterns = ({ patterns }) => {
1
+ export const PathExcludesPatterns = ({ patterns }) => {
5
2
  return {
6
3
  PathItem(_path, { report, key, location }) {
7
4
  if (!patterns)
@@ -19,4 +16,4 @@ const PathExcludesPatterns = ({ patterns }) => {
19
16
  },
20
17
  };
21
18
  };
22
- exports.PathExcludesPatterns = PathExcludesPatterns;
19
+ //# sourceMappingURL=path-excludes-patterns.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-excludes-patterns.js","sourceRoot":"","sources":["../../../src/rules/common/path-excludes-patterns.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,oBAAoB,GAAwB,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACxE,OAAO;QACL,QAAQ,CAAC,KAAkC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAe;YACjF,IAAI,CAAC,QAAQ;gBACX,MAAM,IAAI,KAAK,CAAC,wEAAwE,CAAC,CAAC;YAC5F,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;YAC/B,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC5B,MAAM,OAAO,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAe,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;gBAC7E,KAAK,MAAM,KAAK,IAAI,OAAO,EAAE,CAAC;oBAC5B,MAAM,CAAC;wBACL,OAAO,EAAE,UAAU,OAAO,wCAAwC,KAAK,IAAI;wBAC3E,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;qBACzB,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const PathHttpVerbsOrder: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-http-verbs-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-http-verbs-order.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-http-verbs-order.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO5D,eAAO,MAAM,kBAAkB,EAAE,QAAQ,GAAG,QAsB3C,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathHttpVerbsOrder = void 0;
4
1
  const defaultOrder = ['get', 'head', 'post', 'put', 'patch', 'delete', 'options', 'trace'];
5
- const PathHttpVerbsOrder = (opts) => {
2
+ export const PathHttpVerbsOrder = (opts) => {
6
3
  const order = (opts && opts.order) || defaultOrder;
7
4
  if (!Array.isArray(order)) {
8
5
  throw new Error('path-http-verbs-order `order` option must be an array');
@@ -23,4 +20,4 @@ const PathHttpVerbsOrder = (opts) => {
23
20
  },
24
21
  };
25
22
  };
26
- exports.PathHttpVerbsOrder = PathHttpVerbsOrder;
23
+ //# sourceMappingURL=path-http-verbs-order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-http-verbs-order.js","sourceRoot":"","sources":["../../../src/rules/common/path-http-verbs-order.ts"],"names":[],"mappings":"AAKA,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;AAE3F,MAAM,CAAC,MAAM,kBAAkB,GAAwB,CAAC,IAAS,EAAE,EAAE;IACnE,MAAM,KAAK,GAAa,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC;IAC7D,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO;QACL,QAAQ,CAAC,IAAiC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YAC3E,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;YAErE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC9C,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;gBACzC,MAAM,IAAI,GAAG,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC7C,IAAI,IAAI,GAAG,IAAI,EAAE,CAAC;oBAChB,MAAM,CAAC;wBACL,OAAO,EAAE,uCAAuC;wBAChD,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;qBACrE,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const PathNotIncludeQuery: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-not-include-query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-not-include-query.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-not-include-query.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,mBAAmB,EAAE,QAAQ,GAAG,QAa5C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathNotIncludeQuery = void 0;
4
- const PathNotIncludeQuery = () => {
1
+ export const PathNotIncludeQuery = () => {
5
2
  return {
6
3
  Paths: {
7
4
  PathItem(_operation, { report, key }) {
@@ -15,4 +12,4 @@ const PathNotIncludeQuery = () => {
15
12
  },
16
13
  };
17
14
  };
18
- exports.PathNotIncludeQuery = PathNotIncludeQuery;
15
+ //# sourceMappingURL=path-not-include-query.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-not-include-query.js","sourceRoot":"","sources":["../../../src/rules/common/path-not-include-query.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,mBAAmB,GAAwB,GAAG,EAAE;IAC3D,OAAO;QACL,KAAK,EAAE;YACL,QAAQ,CAAC,UAAkB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAe;gBACvD,IAAI,GAAG,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;oBACjC,MAAM,CAAC;wBACL,OAAO,EAAE,yFAAyF;wBAClG,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;qBAChC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const PathParamsDefined: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-params-defined.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-params-defined.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-params-defined.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO5D,eAAO,MAAM,iBAAiB,EAAE,QAAQ,GAAG,QAyD1C,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathParamsDefined = void 0;
4
1
  const pathRegex = /\{([a-zA-Z0-9_.-]+)\}+/g;
5
- const PathParamsDefined = () => {
2
+ export const PathParamsDefined = () => {
6
3
  let pathTemplateParams;
7
4
  let definedPathParams;
8
5
  let currentPath;
@@ -55,4 +52,4 @@ const PathParamsDefined = () => {
55
52
  },
56
53
  };
57
54
  };
58
- exports.PathParamsDefined = PathParamsDefined;
55
+ //# sourceMappingURL=path-params-defined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-params-defined.js","sourceRoot":"","sources":["../../../src/rules/common/path-params-defined.ts"],"names":[],"mappings":"AAKA,MAAM,SAAS,GAAG,yBAAyB,CAAC;AAE5C,MAAM,CAAC,MAAM,iBAAiB,GAAwB,GAAG,EAAE;IACzD,IAAI,kBAA+B,CAAC;IACpC,IAAI,iBAA8B,CAAC;IACnC,IAAI,WAAmB,CAAC;IACxB,IAAI,sBAAmC,CAAC;IAExC,OAAO;QACL,QAAQ,EAAE;YACR,KAAK,CAAC,CAAS,EAAE,EAAE,GAAG,EAAe;gBACnC,iBAAiB,GAAG,IAAI,GAAG,EAAE,CAAC;gBAC9B,WAAW,GAAG,GAAa,CAAC;gBAC5B,kBAAkB,GAAG,IAAI,GAAG,CAC1B,KAAK,CAAC,IAAI,CAAC,GAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACjE,CAAC;YACJ,CAAC;YACD,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;gBACnF,IAAI,SAAS,CAAC,EAAE,KAAK,MAAM,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;oBAC9C,iBAAiB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;oBACtC,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;wBAC5C,MAAM,CAAC;4BACL,OAAO,EAAE,oBAAoB,SAAS,CAAC,IAAI,gCAAgC,WAAW,KAAK;4BAC3F,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;yBACnC,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;YACD,SAAS,EAAE;gBACT,KAAK;oBACH,sBAAsB,GAAG,IAAI,GAAG,EAAE,CAAC;gBACrC,CAAC;gBACD,KAAK,CAAC,GAAW,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;oBAClD,KAAK,MAAM,aAAa,IAAI,KAAK,CAAC,IAAI,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC;wBAClE,IACE,CAAC,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC;4BAC1C,CAAC,iBAAiB,CAAC,GAAG,CAAC,aAAa,CAAC,EACrC,CAAC;4BACD,MAAM,CAAC;gCACL,OAAO,EAAE,uDAAuD,aAAa,0BAA0B,WAAW,KAAK;gCACvH,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,sBAAsB;6BACvE,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,SAAS,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;oBACnF,IAAI,SAAS,CAAC,EAAE,KAAK,MAAM,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;wBAC9C,sBAAsB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;wBAC3C,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC;4BAC5C,MAAM,CAAC;gCACL,OAAO,EAAE,oBAAoB,SAAS,CAAC,IAAI,gCAAgC,WAAW,KAAK;gCAC3F,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC;6BACnC,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const PathSegmentPlural: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-segment-plural.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-segment-plural.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-segment-plural.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,iBAAiB,EAAE,QAAQ,GAAG,QA0B1C,CAAC"}
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathSegmentPlural = void 0;
4
- const pluralize = require("pluralize");
5
- const utils_1 = require("../../utils");
6
- const PathSegmentPlural = (opts) => {
1
+ import pluralize from 'pluralize';
2
+ import { isPathParameter } from '../../utils.js';
3
+ export const PathSegmentPlural = (opts) => {
7
4
  const { ignoreLastPathSegment, exceptions } = opts;
8
5
  return {
9
6
  PathItem: {
@@ -12,13 +9,13 @@ const PathSegmentPlural = (opts) => {
12
9
  if (pathKey.startsWith('/')) {
13
10
  const pathSegments = pathKey.split('/');
14
11
  pathSegments.shift();
15
- if (ignoreLastPathSegment && pathSegments.length > 1) {
12
+ if (ignoreLastPathSegment && pathSegments.length > 0) {
16
13
  pathSegments.pop();
17
14
  }
18
15
  for (const pathSegment of pathSegments) {
19
16
  if (exceptions && exceptions.includes(pathSegment))
20
17
  continue;
21
- if (!(0, utils_1.isPathParameter)(pathSegment) && pluralize.isSingular(pathSegment)) {
18
+ if (!isPathParameter(pathSegment) && pluralize.isSingular(pathSegment)) {
22
19
  report({
23
20
  message: `path segment \`${pathSegment}\` should be plural.`,
24
21
  location: location.key(),
@@ -30,4 +27,4 @@ const PathSegmentPlural = (opts) => {
30
27
  },
31
28
  };
32
29
  };
33
- exports.PathSegmentPlural = PathSegmentPlural;
30
+ //# sourceMappingURL=path-segment-plural.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-segment-plural.js","sourceRoot":"","sources":["../../../src/rules/common/path-segment-plural.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKjD,MAAM,CAAC,MAAM,iBAAiB,GAAwB,CAAC,IAAI,EAAE,EAAE;IAC7D,MAAM,EAAE,qBAAqB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACnD,OAAO;QACL,QAAQ,EAAE;YACR,KAAK,CAAC,KAAU,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAe;gBACtD,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;gBAC/B,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC5B,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACxC,YAAY,CAAC,KAAK,EAAE,CAAC;oBACrB,IAAI,qBAAqB,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;wBACrD,YAAY,CAAC,GAAG,EAAE,CAAC;oBACrB,CAAC;oBAED,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;wBACvC,IAAI,UAAU,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC;4BAAE,SAAS;wBAC7D,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;4BACvE,MAAM,CAAC;gCACL,OAAO,EAAE,kBAAkB,WAAW,sBAAsB;gCAC5D,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;6BACzB,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule, Oas2Rule } from '../../visitors';
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
2
  export declare const PathsKebabCase: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=paths-kebab-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths-kebab-case.d.ts","sourceRoot":"","sources":["../../../src/rules/common/paths-kebab-case.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,cAAc,EAAE,QAAQ,GAAG,QAevC,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PathsKebabCase = void 0;
4
- const PathsKebabCase = () => {
1
+ export const PathsKebabCase = () => {
5
2
  return {
6
3
  PathItem(_path, { report, key }) {
7
4
  const segments = key
@@ -17,4 +14,4 @@ const PathsKebabCase = () => {
17
14
  },
18
15
  };
19
16
  };
20
- exports.PathsKebabCase = PathsKebabCase;
17
+ //# sourceMappingURL=paths-kebab-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths-kebab-case.js","sourceRoot":"","sources":["../../../src/rules/common/paths-kebab-case.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,cAAc,GAAwB,GAAG,EAAE;IACtD,OAAO;QACL,QAAQ,CAAC,KAAa,EAAE,EAAE,MAAM,EAAE,GAAG,EAAe;YAClD,MAAM,QAAQ,GAAI,GAAc;iBAC7B,MAAM,CAAC,CAAC,CAAC;iBACT,KAAK,CAAC,GAAG,CAAC;iBACV,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,4BAA4B;YACxD,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;gBAC1F,MAAM,CAAC;oBACL,OAAO,EAAE,KAAK,GAAG,6BAA6B;oBAC9C,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;iBAChC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from 'core/src/visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const RequiredStringPropertyMissingMinLength: Oas3Rule;
3
+ //# sourceMappingURL=required-string-property-missing-min-length.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-string-property-missing-min-length.d.ts","sourceRoot":"","sources":["../../../src/rules/common/required-string-property-missing-min-length.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,sCAAsC,EAAE,QAsCpD,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RequiredStringPropertyMissingMinLength = void 0;
4
- const RequiredStringPropertyMissingMinLength = () => {
1
+ export const RequiredStringPropertyMissingMinLength = () => {
5
2
  let skipSchemaProperties;
6
3
  let requiredPropertiesSet;
7
4
  return {
@@ -34,4 +31,4 @@ const RequiredStringPropertyMissingMinLength = () => {
34
31
  },
35
32
  };
36
33
  };
37
- exports.RequiredStringPropertyMissingMinLength = RequiredStringPropertyMissingMinLength;
34
+ //# sourceMappingURL=required-string-property-missing-min-length.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-string-property-missing-min-length.js","sourceRoot":"","sources":["../../../src/rules/common/required-string-property-missing-min-length.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,sCAAsC,GAAa,GAAG,EAAE;IACnE,IAAI,oBAA6B,CAAC;IAClC,IAAI,qBAAkC,CAAC;IAEvC,OAAO;QACL,MAAM,EAAE;YACN,KAAK,CAAC,MAA8C;gBAClD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;oBACtB,oBAAoB,GAAG,IAAI,CAAC;oBAC5B,OAAO;gBACT,CAAC;gBACD,qBAAqB,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACjD,oBAAoB,GAAG,KAAK,CAAC;YAC/B,CAAC;YAED,gBAAgB,EAAE;gBAChB,IAAI;oBACF,OAAO,oBAAoB,CAAC;gBAC9B,CAAC;gBAED,MAAM,EAAE;oBACN,KAAK,CACH,MAA8C,EAC9C,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAe;wBAEtC,IAAI,qBAAqB,CAAC,GAAG,CAAC,GAAa,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;4BACzE,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC;gCACvB,MAAM,CAAC;oCACL,OAAO,EAAE,iCAAiC;oCAC1C,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;iCACzB,CAAC,CAAC;4BACL,CAAC;wBACH,CAAC;oBACH,CAAC;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas2Rule, Oas3Rule } from '../../visitors';
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
2
  export declare const ResponseContainsHeader: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=response-contains-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-contains-header.d.ts","sourceRoot":"","sources":["../../../src/rules/common/response-contains-header.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,sBAAsB,EAAE,QAAQ,GAAG,QA4B/C,CAAC"}
@@ -1,16 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResponseContainsHeader = void 0;
4
- const utils_1 = require("../../utils");
5
- const ResponseContainsHeader = (options) => {
1
+ import { getMatchingStatusCodeRange } from '../../utils.js';
2
+ export const ResponseContainsHeader = (options) => {
6
3
  const names = options.names || {};
7
4
  return {
8
5
  Operation: {
9
6
  Response: {
10
7
  enter: (response, { report, location, key }) => {
11
8
  const expectedHeaders = names[key] ||
12
- names[(0, utils_1.getMatchingStatusCodeRange)(key)] ||
13
- names[(0, utils_1.getMatchingStatusCodeRange)(key).toLowerCase()] ||
9
+ names[getMatchingStatusCodeRange(key)] ||
10
+ names[getMatchingStatusCodeRange(key).toLowerCase()] ||
14
11
  [];
15
12
  for (const expectedHeader of expectedHeaders) {
16
13
  if (!response?.headers ||
@@ -26,4 +23,4 @@ const ResponseContainsHeader = (options) => {
26
23
  },
27
24
  };
28
25
  };
29
- exports.ResponseContainsHeader = ResponseContainsHeader;
26
+ //# sourceMappingURL=response-contains-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-contains-header.js","sourceRoot":"","sources":["../../../src/rules/common/response-contains-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,gBAAgB,CAAC;AAO5D,MAAM,CAAC,MAAM,sBAAsB,GAAwB,CAAC,OAAO,EAAE,EAAE;IACrE,MAAM,KAAK,GAA6B,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;IAC5D,OAAO;QACL,SAAS,EAAE;YACT,QAAQ,EAAE;gBACR,KAAK,EAAE,CAAC,QAAqC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAe,EAAE,EAAE;oBACvF,MAAM,eAAe,GACnB,KAAK,CAAC,GAAG,CAAC;wBACV,KAAK,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC;wBACtC,KAAK,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;wBACpD,EAAE,CAAC;oBACL,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE,CAAC;wBAC7C,IACE,CAAC,QAAQ,EAAE,OAAO;4BAClB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAClC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,cAAc,CAAC,WAAW,EAAE,CAClE,EACD,CAAC;4BACD,MAAM,CAAC;gCACL,OAAO,EAAE,mCAAmC,cAAc,WAAW;gCACrE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE;6BAC1C,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas2Rule, Oas3Rule } from '../../visitors';
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
2
  export declare const ScalarPropertyMissingExample: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=scalar-property-missing-example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalar-property-missing-example.d.ts","sourceRoot":"","sources":["../../../src/rules/common/scalar-property-missing-example.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO5D,eAAO,MAAM,4BAA4B,EAAE,QAAQ,GAAG,QA2BrD,CAAC"}