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

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 -57
  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,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decorators = void 0;
4
- exports.decorators = {};
1
+ export const decorators = {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/async2/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const decorators: {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/async3/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,IAAK,CAAC"}
@@ -1,4 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decorators = void 0;
4
- exports.decorators = {};
1
+ export const decorators = {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/async3/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC"}
@@ -1,3 +1,4 @@
1
- import type { UserContext } from '../../../walk';
1
+ import type { UserContext } from '../../../walk.js';
2
2
  export declare function filter(node: any, ctx: UserContext, criteria: (item: any) => boolean): void;
3
3
  export declare function checkIfMatchByStrategy(nodeValue: any, decoratorValue: any, strategy: 'all' | 'any'): boolean;
4
+ //# sourceMappingURL=filter-helper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-helper.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-helper.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpD,wBAAgB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,QAsCnF;AAED,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,GAAG,EACd,cAAc,EAAE,GAAG,EACnB,QAAQ,EAAE,KAAK,GAAG,KAAK,GACtB,OAAO,CAmBT"}
@@ -1,15 +1,11 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.filter = filter;
4
- exports.checkIfMatchByStrategy = checkIfMatchByStrategy;
5
- const ref_utils_1 = require("../../../ref-utils");
6
- const utils_1 = require("../../../utils");
7
- function filter(node, ctx, criteria) {
1
+ import { isRef } from '../../../ref-utils.js';
2
+ import { isEmptyArray, isEmptyObject, isPlainObject } from '../../../utils.js';
3
+ export function filter(node, ctx, criteria) {
8
4
  const { parent, key } = ctx;
9
5
  let didDelete = false;
10
6
  if (Array.isArray(node)) {
11
7
  for (let i = 0; i < node.length; i++) {
12
- if ((0, ref_utils_1.isRef)(node[i])) {
8
+ if (isRef(node[i])) {
13
9
  const resolved = ctx.resolve(node[i]);
14
10
  if (criteria(resolved.node)) {
15
11
  node.splice(i, 1);
@@ -24,10 +20,10 @@ function filter(node, ctx, criteria) {
24
20
  }
25
21
  }
26
22
  }
27
- else if ((0, utils_1.isPlainObject)(node)) {
23
+ else if (isPlainObject(node)) {
28
24
  for (const key of Object.keys(node)) {
29
25
  node = node;
30
- if ((0, ref_utils_1.isRef)(node[key])) {
26
+ if (isRef(node[key])) {
31
27
  const resolved = ctx.resolve(node[key]);
32
28
  if (criteria(resolved.node)) {
33
29
  delete node[key];
@@ -40,11 +36,11 @@ function filter(node, ctx, criteria) {
40
36
  }
41
37
  }
42
38
  }
43
- if (didDelete && ((0, utils_1.isEmptyObject)(node) || (0, utils_1.isEmptyArray)(node))) {
39
+ if (didDelete && (isEmptyObject(node) || isEmptyArray(node))) {
44
40
  delete parent[key];
45
41
  }
46
42
  }
47
- function checkIfMatchByStrategy(nodeValue, decoratorValue, strategy) {
43
+ export function checkIfMatchByStrategy(nodeValue, decoratorValue, strategy) {
48
44
  if (nodeValue === undefined || decoratorValue === undefined) {
49
45
  return false;
50
46
  }
@@ -64,3 +60,4 @@ function checkIfMatchByStrategy(nodeValue, decoratorValue, strategy) {
64
60
  function toArrayIfNeeded(value) {
65
61
  return Array.isArray(value) ? value : [value];
66
62
  }
63
+ //# sourceMappingURL=filter-helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-helper.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-helper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAI/E,MAAM,UAAU,MAAM,CAAC,IAAS,EAAE,GAAgB,EAAE,QAAgC;IAClF,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;IAC5B,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACrC,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACnB,MAAM,QAAQ,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;gBACtC,IAAI,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;oBAC5B,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;oBAClB,SAAS,GAAG,IAAI,CAAC;oBACjB,CAAC,EAAE,CAAC;gBACN,CAAC;YACH,CAAC;YACD,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;gBACtB,IAAI,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;gBAClB,SAAS,GAAG,IAAI,CAAC;gBACjB,CAAC,EAAE,CAAC;YACN,CAAC;QACH,CAAC;IACH,CAAC;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CAAC;IAE/C,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QACvB,OAAO,cAAc,CAAC,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IACzE,CAAC;IACD,IAAI,QAAQ,KAAK,KAAK,EAAE,CAAC;QACvB,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1E,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,eAAe,CAAI,KAAc;IACxC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;AAChD,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas2Decorator, Oas3Decorator } from '../../../visitors';
1
+ import type { Oas2Decorator, Oas3Decorator } from '../../../visitors.js';
2
2
  export declare const FilterIn: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=filter-in.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-in.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-in.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIzE,eAAO,MAAM,QAAQ,EAAE,aAAa,GAAG,aAYtC,CAAC"}
@@ -1,17 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterIn = void 0;
4
- const filter_helper_1 = require("./filter-helper");
1
+ import { checkIfMatchByStrategy, filter } from './filter-helper.js';
5
2
  const DEFAULT_STRATEGY = 'any';
6
- const FilterIn = ({ property, value, matchStrategy }) => {
3
+ export const FilterIn = ({ property, value, matchStrategy }) => {
7
4
  const strategy = matchStrategy || DEFAULT_STRATEGY;
8
- const filterInCriteria = (item) => item?.[property] && !(0, filter_helper_1.checkIfMatchByStrategy)(item?.[property], value, strategy);
5
+ const filterInCriteria = (item) => item?.[property] && !checkIfMatchByStrategy(item?.[property], value, strategy);
9
6
  return {
10
7
  any: {
11
8
  enter: (node, ctx) => {
12
- (0, filter_helper_1.filter)(node, ctx, filterInCriteria);
9
+ filter(node, ctx, filterInCriteria);
13
10
  },
14
11
  },
15
12
  };
16
13
  };
17
- exports.FilterIn = FilterIn;
14
+ //# sourceMappingURL=filter-in.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-in.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-in.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIpE,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,QAAQ,GAAkC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE;IAC5F,MAAM,QAAQ,GAAG,aAAa,IAAI,gBAAgB,CAAC;IACnD,MAAM,gBAAgB,GAAG,CAAC,IAAS,EAAE,EAAE,CACrC,IAAI,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,sBAAsB,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAEjF,OAAO;QACL,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;gBACnB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,gBAAgB,CAAC,CAAC;YACtC,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas2Decorator, Oas3Decorator } from '../../../visitors';
1
+ import type { Oas2Decorator, Oas3Decorator } from '../../../visitors.js';
2
2
  export declare const FilterOut: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=filter-out.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-out.d.ts","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-out.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAIzE,eAAO,MAAM,SAAS,EAAE,aAAa,GAAG,aAYvC,CAAC"}
@@ -1,17 +1,14 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FilterOut = void 0;
4
- const filter_helper_1 = require("./filter-helper");
1
+ import { checkIfMatchByStrategy, filter } from './filter-helper.js';
5
2
  const DEFAULT_STRATEGY = 'any';
6
- const FilterOut = ({ property, value, matchStrategy }) => {
3
+ export const FilterOut = ({ property, value, matchStrategy }) => {
7
4
  const strategy = matchStrategy || DEFAULT_STRATEGY;
8
- const filterOutCriteria = (item) => (0, filter_helper_1.checkIfMatchByStrategy)(item?.[property], value, strategy);
5
+ const filterOutCriteria = (item) => checkIfMatchByStrategy(item?.[property], value, strategy);
9
6
  return {
10
7
  any: {
11
8
  enter: (node, ctx) => {
12
- (0, filter_helper_1.filter)(node, ctx, filterOutCriteria);
9
+ filter(node, ctx, filterOutCriteria);
13
10
  },
14
11
  },
15
12
  };
16
13
  };
17
- exports.FilterOut = FilterOut;
14
+ //# sourceMappingURL=filter-out.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter-out.js","sourceRoot":"","sources":["../../../../src/decorators/common/filters/filter-out.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAIpE,MAAM,gBAAgB,GAAG,KAAK,CAAC;AAE/B,MAAM,CAAC,MAAM,SAAS,GAAkC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE;IAC7F,MAAM,QAAQ,GAAG,aAAa,IAAI,gBAAgB,CAAC;IACnD,MAAM,iBAAiB,GAAG,CAAC,IAAS,EAAE,EAAE,CACtC,sBAAsB,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;IAE5D,OAAO;QACL,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;gBACnB,MAAM,CAAC,IAAI,EAAE,GAAG,EAAE,iBAAiB,CAAC,CAAC;YACvC,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Decorator, Oas2Decorator } from '../../visitors';
1
+ import type { Oas3Decorator, Oas2Decorator } from '../../visitors.js';
2
2
  export declare const InfoDescriptionOverride: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=info-description-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info-description-override.d.ts","sourceRoot":"","sources":["../../../src/decorators/common/info-description-override.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGtE,eAAO,MAAM,uBAAuB,EAAE,aAAa,GAAG,aAmBrD,CAAC"}
@@ -1,15 +1,12 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfoDescriptionOverride = void 0;
4
- const utils_1 = require("../../utils");
5
- const InfoDescriptionOverride = ({ filePath }) => {
1
+ import { readFileAsStringSync } from '../../utils.js';
2
+ export const InfoDescriptionOverride = ({ filePath }) => {
6
3
  return {
7
4
  Info: {
8
5
  leave(info, { report, location }) {
9
6
  if (!filePath)
10
7
  throw new Error(`Parameter "filePath" is not provided for "info-description-override" rule`);
11
8
  try {
12
- info.description = (0, utils_1.readFileAsStringSync)(filePath);
9
+ info.description = readFileAsStringSync(filePath);
13
10
  }
14
11
  catch (e) {
15
12
  report({
@@ -21,4 +18,4 @@ const InfoDescriptionOverride = ({ filePath }) => {
21
18
  },
22
19
  };
23
20
  };
24
- exports.InfoDescriptionOverride = InfoDescriptionOverride;
21
+ //# sourceMappingURL=info-description-override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info-description-override.js","sourceRoot":"","sources":["../../../src/decorators/common/info-description-override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAKtD,MAAM,CAAC,MAAM,uBAAuB,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACrF,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;gBAC3C,IAAI,CAAC,QAAQ;oBACX,MAAM,IAAI,KAAK,CACb,2EAA2E,CAC5E,CAAC;gBACJ,IAAI,CAAC;oBACH,IAAI,CAAC,WAAW,GAAG,oBAAoB,CAAC,QAAQ,CAAC,CAAC;gBACpD,CAAC;gBAAC,OAAO,CAAC,EAAE,CAAC;oBACX,MAAM,CAAC;wBACL,OAAO,EAAE,kEAAkE,CAAC,CAAC,OAAO,EAAE;wBACtF,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC;qBACxC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Decorator, Oas2Decorator } from '../../visitors';
1
+ import type { Oas3Decorator, Oas2Decorator } from '../../visitors.js';
2
2
  export declare const InfoOverride: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=info-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info-override.d.ts","sourceRoot":"","sources":["../../../src/decorators/common/info-override.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEtE,eAAO,MAAM,YAAY,EAAE,aAAa,GAAG,aAY1C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.InfoOverride = void 0;
4
- const InfoOverride = (newInfo) => {
1
+ export const InfoOverride = (newInfo) => {
5
2
  return {
6
3
  Info: {
7
4
  leave(info) {
@@ -14,4 +11,4 @@ const InfoOverride = (newInfo) => {
14
11
  },
15
12
  };
16
13
  };
17
- exports.InfoOverride = InfoOverride;
14
+ //# sourceMappingURL=info-override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info-override.js","sourceRoot":"","sources":["../../../src/decorators/common/info-override.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,YAAY,GAAkC,CAAC,OAAO,EAAE,EAAE;IACrE,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAAC,IAAI;gBACR,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;oBAC9E,MAAM,IAAI,KAAK,CAAC,2DAA2D,CAAC,CAAC;gBAC/E,CAAC;gBACD,MAAM,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;gBACzC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YAC5B,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Decorator } from '../../visitors';
1
+ import type { Oas3Decorator } from '../../visitors.js';
2
2
  export declare const MediaTypeExamplesOverride: Oas3Decorator;
3
+ //# sourceMappingURL=media-type-examples-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-type-examples-override.d.ts","sourceRoot":"","sources":["../../../src/decorators/common/media-type-examples-override.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAIvD,eAAO,MAAM,yBAAyB,EAAE,aA+DvC,CAAC"}
@@ -1,9 +1,6 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MediaTypeExamplesOverride = void 0;
4
- const utils_1 = require("../../utils");
5
- const ref_utils_1 = require("../../ref-utils");
6
- const MediaTypeExamplesOverride = ({ operationIds }) => {
1
+ import { yamlAndJsonSyncReader } from '../../utils.js';
2
+ import { isRef } from '../../ref-utils.js';
3
+ export const MediaTypeExamplesOverride = ({ operationIds }) => {
7
4
  return {
8
5
  Operation: {
9
6
  enter(operation, ctx) {
@@ -25,7 +22,7 @@ const MediaTypeExamplesOverride = ({ operationIds }) => {
25
22
  Object.keys(properties.responses[responseCode]).forEach((mimeType) => {
26
23
  resolvedResponse.content[mimeType] = {
27
24
  ...resolvedResponse.content[mimeType],
28
- examples: (0, utils_1.yamlAndJsonSyncReader)(properties.responses[responseCode][mimeType]),
25
+ examples: yamlAndJsonSyncReader(properties.responses[responseCode][mimeType]),
29
26
  };
30
27
  });
31
28
  operation.responses[responseCode] = resolvedResponse;
@@ -40,7 +37,7 @@ const MediaTypeExamplesOverride = ({ operationIds }) => {
40
37
  Object.keys(properties.request).forEach((mimeType) => {
41
38
  resolvedRequest.content[mimeType] = {
42
39
  ...resolvedRequest.content[mimeType],
43
- examples: (0, utils_1.yamlAndJsonSyncReader)(properties.request[mimeType]),
40
+ examples: yamlAndJsonSyncReader(properties.request[mimeType]),
44
41
  };
45
42
  });
46
43
  operation.requestBody = resolvedRequest;
@@ -49,11 +46,11 @@ const MediaTypeExamplesOverride = ({ operationIds }) => {
49
46
  },
50
47
  };
51
48
  };
52
- exports.MediaTypeExamplesOverride = MediaTypeExamplesOverride;
53
49
  function checkAndResolveRef(node, resolver) {
54
- if (!(0, ref_utils_1.isRef)(node)) {
50
+ if (!isRef(node)) {
55
51
  return node;
56
52
  }
57
53
  const resolved = resolver(node);
58
54
  return resolved.error ? undefined : JSON.parse(JSON.stringify(resolved.node));
59
55
  }
56
+ //# sourceMappingURL=media-type-examples-override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"media-type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AC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;AAChF,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Decorator, Oas2Decorator } from '../../visitors';
1
+ import type { Oas3Decorator, Oas2Decorator } from '../../visitors.js';
2
2
  export declare const OperationDescriptionOverride: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=operation-description-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-description-override.d.ts","sourceRoot":"","sources":["../../../src/decorators/common/operation-description-override.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKtE,eAAO,MAAM,4BAA4B,EAAE,aAAa,GAAG,aAuB1D,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OperationDescriptionOverride = void 0;
4
- const utils_1 = require("../../utils");
5
- const OperationDescriptionOverride = ({ operationIds }) => {
1
+ import { readFileAsStringSync } from '../../utils.js';
2
+ export const OperationDescriptionOverride = ({ operationIds }) => {
6
3
  return {
7
4
  Operation: {
8
5
  leave(operation, { report, location }) {
@@ -13,7 +10,7 @@ const OperationDescriptionOverride = ({ operationIds }) => {
13
10
  const operationId = operation.operationId;
14
11
  if (operationIds[operationId]) {
15
12
  try {
16
- operation.description = (0, utils_1.readFileAsStringSync)(operationIds[operationId]);
13
+ operation.description = readFileAsStringSync(operationIds[operationId]);
17
14
  }
18
15
  catch (e) {
19
16
  report({
@@ -26,4 +23,4 @@ const OperationDescriptionOverride = ({ operationIds }) => {
26
23
  },
27
24
  };
28
25
  };
29
- exports.OperationDescriptionOverride = OperationDescriptionOverride;
26
+ //# sourceMappingURL=operation-description-override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-description-override.js","sourceRoot":"","sources":["../../../src/decorators/common/operation-description-override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAOtD,MAAM,CAAC,MAAM,4BAA4B,GAAkC,CAAC,EAAE,YAAY,EAAE,EAAE,EAAE;IAC9F,OAAO;QACL,SAAS,EAAE;YACT,KAAK,CAAC,SAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;gBAC/E,IAAI,CAAC,SAAS,CAAC,WAAW;oBAAE,OAAO;gBACnC,IAAI,CAAC,YAAY;oBACf,MAAM,IAAI,KAAK,CACb,oFAAoF,CACrF,CAAC;gBACJ,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;gBAC1C,IAAI,YAAY,CAAC,WAAW,CAAC,EAAE,CAAC;oBAC9B,IAAI,CAAC;wBACH,SAAS,CAAC,WAAW,GAAG,oBAAoB,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC,CAAC;oBAC1E,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACX,MAAM,CAAC;4BACL,OAAO,EAAE,wDAAwD,WAAW,OAAO,CAAC,CAAC,OAAO,EAAE;4BAC9F,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,EAAE;yBAC9C,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Decorator, Oas2Decorator } from '../../visitors';
1
+ import type { Oas3Decorator, Oas2Decorator } from '../../visitors.js';
2
2
  export declare const RemoveXInternal: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=remove-x-internal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-x-internal.d.ts","sourceRoot":"","sources":["../../../src/decorators/common/remove-x-internal.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAKtE,eAAO,MAAM,eAAe,EAAE,aAAa,GAAG,aAoE7C,CAAC"}
@@ -1,20 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RemoveXInternal = void 0;
4
- const utils_1 = require("../../utils");
5
- const ref_utils_1 = require("../../ref-utils");
1
+ import { isEmptyArray, isEmptyObject, isPlainObject } from '../../utils.js';
2
+ import { isRef } from '../../ref-utils.js';
6
3
  const DEFAULT_INTERNAL_PROPERTY_NAME = 'x-internal';
7
- const RemoveXInternal = ({ internalFlagProperty = DEFAULT_INTERNAL_PROPERTY_NAME, }) => {
4
+ export const RemoveXInternal = ({ internalFlagProperty = DEFAULT_INTERNAL_PROPERTY_NAME, }) => {
8
5
  function removeInternal(node, ctx, originalMapping) {
9
6
  const { parent, key } = ctx;
10
7
  let didDelete = false;
11
8
  if (Array.isArray(node)) {
12
9
  for (let i = 0; i < node.length; i++) {
13
- if ((0, ref_utils_1.isRef)(node[i])) {
10
+ if (isRef(node[i])) {
14
11
  const resolved = ctx.resolve(node[i]);
15
12
  if (resolved.node?.[internalFlagProperty]) {
16
13
  // First, remove the reference in the discriminator mapping, if it exists:
17
- if ((0, utils_1.isPlainObject)(parent.discriminator?.mapping)) {
14
+ if (isPlainObject(parent.discriminator?.mapping)) {
18
15
  for (const mapping in parent.discriminator.mapping) {
19
16
  if (originalMapping?.[mapping] === node[i].$ref) {
20
17
  delete parent.discriminator.mapping[mapping];
@@ -33,22 +30,22 @@ const RemoveXInternal = ({ internalFlagProperty = DEFAULT_INTERNAL_PROPERTY_NAME
33
30
  }
34
31
  }
35
32
  }
36
- else if ((0, utils_1.isPlainObject)(node)) {
33
+ else if (isPlainObject(node)) {
37
34
  for (const key of Object.keys(node)) {
38
- if ((0, ref_utils_1.isRef)(node[key])) {
35
+ if (isRef(node[key])) {
39
36
  const resolved = ctx.resolve(node[key]);
40
- if ((0, utils_1.isPlainObject)(resolved.node) && resolved.node?.[internalFlagProperty]) {
37
+ if (isPlainObject(resolved.node) && resolved.node?.[internalFlagProperty]) {
41
38
  delete node[key];
42
39
  didDelete = true;
43
40
  }
44
41
  }
45
- if ((0, utils_1.isPlainObject)(node[key]) && node[key]?.[internalFlagProperty]) {
42
+ if (isPlainObject(node[key]) && node[key]?.[internalFlagProperty]) {
46
43
  delete node[key];
47
44
  didDelete = true;
48
45
  }
49
46
  }
50
47
  }
51
- if (didDelete && ((0, utils_1.isEmptyObject)(node) || (0, utils_1.isEmptyArray)(node))) {
48
+ if (didDelete && (isEmptyObject(node) || isEmptyArray(node))) {
52
49
  delete parent[key];
53
50
  }
54
51
  }
@@ -66,4 +63,4 @@ const RemoveXInternal = ({ internalFlagProperty = DEFAULT_INTERNAL_PROPERTY_NAME
66
63
  },
67
64
  };
68
65
  };
69
- exports.RemoveXInternal = RemoveXInternal;
66
+ //# sourceMappingURL=remove-x-internal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-x-internal.js","sourceRoot":"","sources":["../../../src/decorators/common/remove-x-internal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAK3C,MAAM,8BAA8B,GAAG,YAAY,CAAC;AAEpD,MAAM,CAAC,MAAM,eAAe,GAAkC,CAAC,EAC7D,oBAAoB,GAAG,8BAA8B,GACtD,EAAE,EAAE;IACH,SAAS,cAAc,CACrB,IAAa,EACb,GAAgB,EAChB,eAAuC;QAEvC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC;QAC5B,IAAI,SAAS,GAAG,KAAK,CAAC;QACtB,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACrC,IAAI,KAAK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AAI,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC;wBAC1E,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;wBACjB,SAAS,GAAG,IAAI,CAAC;oBACnB,CAAC;gBACH,CAAC;gBACD,IAAI,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC;oBAClE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;oBACjB,SAAS,GAAG,IAAI,CAAC;gBACnB,CAAC;YACH,CAAC;QACH,CAAC;QAED,IAAI,SAAS,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;YAC7D,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAED,IAAI,eAAe,GAA2B,EAAE,CAAC;IACjD,OAAO;QACL,oBAAoB,EAAE;YACpB,KAAK,EAAE,CAAC,OAA+B,EAAE,EAAE;gBACzC,eAAe,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YACxD,CAAC;SACF;QACD,GAAG,EAAE;YACH,KAAK,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE;gBACnB,cAAc,CAAC,IAAI,EAAE,GAAG,EAAE,eAAe,CAAC,CAAC;YAC7C,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Decorator, Oas2Decorator } from '../../visitors';
1
+ import type { Oas3Decorator, Oas2Decorator } from '../../visitors.js';
2
2
  export declare const TagDescriptionOverride: Oas3Decorator | Oas2Decorator;
3
+ //# sourceMappingURL=tag-description-override.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-description-override.d.ts","sourceRoot":"","sources":["../../../src/decorators/common/tag-description-override.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGtE,eAAO,MAAM,sBAAsB,EAAE,aAAa,GAAG,aAoBpD,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TagDescriptionOverride = void 0;
4
- const utils_1 = require("../../utils");
5
- const TagDescriptionOverride = ({ tagNames }) => {
1
+ import { readFileAsStringSync } from '../../utils.js';
2
+ export const TagDescriptionOverride = ({ tagNames }) => {
6
3
  return {
7
4
  Tag: {
8
5
  leave(tag, { report }) {
@@ -10,7 +7,7 @@ const TagDescriptionOverride = ({ tagNames }) => {
10
7
  throw new Error(`Parameter "tagNames" is not provided for "tag-description-override" rule`);
11
8
  if (tagNames[tag.name]) {
12
9
  try {
13
- tag.description = (0, utils_1.readFileAsStringSync)(tagNames[tag.name]);
10
+ tag.description = readFileAsStringSync(tagNames[tag.name]);
14
11
  }
15
12
  catch (e) {
16
13
  report({
@@ -22,4 +19,4 @@ const TagDescriptionOverride = ({ tagNames }) => {
22
19
  },
23
20
  };
24
21
  };
25
- exports.TagDescriptionOverride = TagDescriptionOverride;
22
+ //# sourceMappingURL=tag-description-override.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-description-override.js","sourceRoot":"","sources":["../../../src/decorators/common/tag-description-override.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAKtD,MAAM,CAAC,MAAM,sBAAsB,GAAkC,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpF,OAAO;QACL,GAAG,EAAE;YACH,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAe;gBAChC,IAAI,CAAC,QAAQ;oBACX,MAAM,IAAI,KAAK,CACb,0EAA0E,CAC3E,CAAC;gBACJ,IAAI,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;oBACvB,IAAI,CAAC;wBACH,GAAG,CAAC,WAAW,GAAG,oBAAoB,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;oBAC7D,CAAC;oBAAC,OAAO,CAAC,EAAE,CAAC;wBACX,MAAM,CAAC;4BACL,OAAO,EAAE,kDAAkD,GAAG,CAAC,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE;yBACtF,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
- import type { Oas2Decorator } from '../../visitors';
1
+ import type { Oas2Decorator } from '../../visitors.js';
2
2
  export declare const decorators: {
3
- 'registry-dependencies': Oas2Decorator;
4
3
  'operation-description-override': Oas2Decorator;
5
4
  'tag-description-override': Oas2Decorator;
6
5
  'info-description-override': Oas2Decorator;
@@ -9,3 +8,4 @@ export declare const decorators: {
9
8
  'filter-in': Oas2Decorator;
10
9
  'filter-out': Oas2Decorator;
11
10
  };
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas2/index.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,eAAO,MAAM,UAAU;sCAC6C,aAAa;gCACzB,aAAa;iCACX,aAAa;qBACpC,aAAa;yBACN,aAAa;iBAC5B,aAAa;kBACX,aAAa;CACzC,CAAC"}
@@ -1,21 +1,17 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decorators = void 0;
4
- const registry_dependencies_1 = require("../common/registry-dependencies");
5
- const operation_description_override_1 = require("../common/operation-description-override");
6
- const tag_description_override_1 = require("../common/tag-description-override");
7
- const info_description_override_1 = require("../common/info-description-override");
8
- const info_override_1 = require("../common/info-override");
9
- const remove_x_internal_1 = require("../common/remove-x-internal");
10
- const filter_in_1 = require("../common/filters/filter-in");
11
- const filter_out_1 = require("../common/filters/filter-out");
12
- exports.decorators = {
13
- 'registry-dependencies': registry_dependencies_1.RegistryDependencies,
14
- 'operation-description-override': operation_description_override_1.OperationDescriptionOverride,
15
- 'tag-description-override': tag_description_override_1.TagDescriptionOverride,
16
- 'info-description-override': info_description_override_1.InfoDescriptionOverride,
17
- 'info-override': info_override_1.InfoOverride,
18
- 'remove-x-internal': remove_x_internal_1.RemoveXInternal,
19
- 'filter-in': filter_in_1.FilterIn,
20
- 'filter-out': filter_out_1.FilterOut,
1
+ import { OperationDescriptionOverride } from '../common/operation-description-override.js';
2
+ import { TagDescriptionOverride } from '../common/tag-description-override.js';
3
+ import { InfoDescriptionOverride } from '../common/info-description-override.js';
4
+ import { InfoOverride } from '../common/info-override.js';
5
+ import { RemoveXInternal } from '../common/remove-x-internal.js';
6
+ import { FilterIn } from '../common/filters/filter-in.js';
7
+ import { FilterOut } from '../common/filters/filter-out.js';
8
+ export const decorators = {
9
+ 'operation-description-override': OperationDescriptionOverride,
10
+ 'tag-description-override': TagDescriptionOverride,
11
+ 'info-description-override': InfoDescriptionOverride,
12
+ 'info-override': InfoOverride,
13
+ 'remove-x-internal': RemoveXInternal,
14
+ 'filter-in': FilterIn,
15
+ 'filter-out': FilterOut,
21
16
  };
17
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/decorators/oas2/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,6CAA6C,CAAC;AAC3F,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAI5D,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,gCAAgC,EAAE,4BAA6C;IAC/E,0BAA0B,EAAE,sBAAuC;IACnE,2BAA2B,EAAE,uBAAwC;IACrE,eAAe,EAAE,YAA6B;IAC9C,mBAAmB,EAAE,eAAgC;IACrD,WAAW,EAAE,QAAyB;IACtC,YAAY,EAAE,SAA0B;CACzC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas2Decorator } from '../../visitors';
1
+ import type { Oas2Decorator } from '../../visitors.js';
2
2
  export declare const RemoveUnusedComponents: Oas2Decorator;
3
+ //# sourceMappingURL=remove-unused-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-unused-components.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas2/remove-unused-components.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAGvD,eAAO,MAAM,sBAAsB,EAAE,aAsGpC,CAAC"}
@@ -1,8 +1,5 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RemoveUnusedComponents = void 0;
4
- const utils_1 = require("../../utils");
5
- const RemoveUnusedComponents = () => {
1
+ import { isEmptyObject } from '../../utils.js';
2
+ export const RemoveUnusedComponents = () => {
6
3
  const components = new Map();
7
4
  function registerComponent(location, componentType, name) {
8
5
  components.set(location.absolutePointer, {
@@ -24,7 +21,7 @@ const RemoveUnusedComponents = () => {
24
21
  removedPaths.push(path);
25
22
  delete root[componentType][name];
26
23
  components.delete(path);
27
- if ((0, utils_1.isEmptyObject)(root[componentType])) {
24
+ if (isEmptyObject(root[componentType])) {
28
25
  delete root[componentType];
29
26
  }
30
27
  }
@@ -86,4 +83,4 @@ const RemoveUnusedComponents = () => {
86
83
  },
87
84
  };
88
85
  };
89
- exports.RemoveUnusedComponents = RemoveUnusedComponents;
86
+ //# sourceMappingURL=remove-unused-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"remove-unused-components.js","sourceRoot":"","sources":["../../../src/decorators/oas2/remove-unused-components.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAM/C,MAAM,CAAC,MAAM,sBAAsB,GAAkB,GAAG,EAAE;IACxD,MAAM,UAAU,GAAG,IAAI,GAAG,EAGvB,CAAC;IAEJ,SAAS,iBAAiB,CACxB,QAAkB,EAClB,aAAmC,EACnC,IAAY;QAEZ,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,EAAE;YACvC,MAAM,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,IAAI,EAAE;YAC9D,aAAa;YACb,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,SAAS,sBAAsB,CAAC,IAAoB,EAAE,YAAsB;QAC1E,MAAM,kBAAkB,GAAG,YAAY,CAAC,MAAM,CAAC;QAE/C,KAAK,MAAM,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC;YACjE,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CACtB,CAAC,QAAQ,EAAE,EAAE,CACX,CAAC,YAAY,CAAC,IAAI,CAChB,CAAC,OAAO,EAAE,EAAE;YACV,kFAAkF;YAClF,0GAA0G;YAC1G,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,OAAO,CAAC;gBAC5C,CAAC,QAAQ,CAAC,eAAe,CAAC,MAAM,KAAK,OAAO,CAAC,MAAM;oBACjD,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,CAAC,CACtD,CACJ,CAAC;YACF,IAAI,CAAC,IAAI,IAAI,aAAa,EAAE,CAAC;gBAC3B,Y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,EAAE,CAAC,CAAC;YACrE,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,6 +1,5 @@
1
- import type { Oas3Decorator } from '../../visitors';
1
+ import type { Oas3Decorator } from '../../visitors.js';
2
2
  export declare const decorators: {
3
- 'registry-dependencies': Oas3Decorator;
4
3
  'operation-description-override': Oas3Decorator;
5
4
  'tag-description-override': Oas3Decorator;
6
5
  'info-description-override': Oas3Decorator;
@@ -10,3 +9,4 @@ export declare const decorators: {
10
9
  'filter-out': Oas3Decorator;
11
10
  'media-type-examples-override': Oas3Decorator;
12
11
  };
12
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/decorators/oas3/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAEvD,eAAO,MAAM,UAAU;sCAC6C,aAAa;gCACzB,aAAa;iCACX,aAAa;qBACpC,aAAa;yBACN,aAAa;iBAC5B,aAAa;kBACX,aAAa;oCACqB,aAAa;CAC3E,CAAC"}