@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
package/lib/bundle.js CHANGED
@@ -1,31 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OasVersion = void 0;
4
- exports.bundleConfig = bundleConfig;
5
- exports.bundle = bundle;
6
- exports.bundleFromString = bundleFromString;
7
- exports.bundleDocument = bundleDocument;
8
- exports.mapTypeToComponent = mapTypeToComponent;
9
- const resolve_1 = require("./resolve");
10
- const visitors_1 = require("./visitors");
11
- const types_1 = require("./types");
12
- const walk_1 = require("./walk");
13
- const oas_types_1 = require("./oas-types");
14
- const ref_utils_1 = require("./ref-utils");
15
- const rules_1 = require("./config/rules");
16
- const no_unresolved_refs_1 = require("./rules/no-unresolved-refs");
17
- const utils_1 = require("./utils");
18
- const domains_1 = require("./redocly/domains");
19
- const remove_unused_components_1 = require("./decorators/oas2/remove-unused-components");
20
- const remove_unused_components_2 = require("./decorators/oas3/remove-unused-components");
21
- const redocly_yaml_1 = require("./types/redocly-yaml");
22
- var OasVersion;
1
+ import { BaseResolver, resolveDocument, makeRefId, makeDocumentFromString } from './resolve.js';
2
+ import { normalizeVisitors } from './visitors.js';
3
+ import { normalizeTypes } from './types/index.js';
4
+ import { walkDocument } from './walk.js';
5
+ import { detectSpec, getTypes, getMajorSpecVersion, SpecMajorVersion, SpecVersion, } from './oas-types.js';
6
+ import { isAbsoluteUrl, isExternalValue, isRef, refBaseName } from './ref-utils.js';
7
+ import { initRules } from './config/rules.js';
8
+ import { reportUnresolvedRef } from './rules/no-unresolved-refs.js';
9
+ import { dequal, isPlainObject, isTruthy } from './utils.js';
10
+ import { RemoveUnusedComponents as RemoveUnusedComponentsOas2 } from './decorators/oas2/remove-unused-components.js';
11
+ import { RemoveUnusedComponents as RemoveUnusedComponentsOas3 } from './decorators/oas3/remove-unused-components.js';
12
+ import { NormalizedConfigTypes } from './types/redocly-yaml.js';
13
+ export var OasVersion;
23
14
  (function (OasVersion) {
24
15
  OasVersion["Version2"] = "oas2";
25
16
  OasVersion["Version3_0"] = "oas3_0";
26
17
  OasVersion["Version3_1"] = "oas3_1";
27
- })(OasVersion || (exports.OasVersion = OasVersion = {}));
28
- const bundleVisitor = (0, visitors_1.normalizeVisitors)([
18
+ })(OasVersion || (OasVersion = {}));
19
+ const bundleVisitor = normalizeVisitors([
29
20
  {
30
21
  severity: 'error',
31
22
  ruleId: 'configBundler',
@@ -37,25 +28,25 @@ const bundleVisitor = (0, visitors_1.normalizeVisitors)([
37
28
  },
38
29
  },
39
30
  },
40
- ], redocly_yaml_1.NormalizedConfigTypes);
41
- async function bundleConfig(document, resolvedRefMap) {
31
+ ], NormalizedConfigTypes);
32
+ export async function bundleConfig(document, resolvedRefMap) {
42
33
  const ctx = {
43
34
  problems: [],
44
- oasVersion: oas_types_1.SpecVersion.OAS3_0,
35
+ oasVersion: SpecVersion.OAS3_0,
45
36
  refTypes: new Map(),
46
37
  visitorsData: {},
47
38
  };
48
- (0, walk_1.walkDocument)({
39
+ walkDocument({
49
40
  document,
50
- rootType: redocly_yaml_1.NormalizedConfigTypes.ConfigRoot,
41
+ rootType: NormalizedConfigTypes.ConfigRoot,
51
42
  normalizedVisitors: bundleVisitor,
52
43
  resolvedRefMap,
53
44
  ctx,
54
45
  });
55
46
  return document.parsed ?? {};
56
47
  }
57
- async function bundle(opts) {
58
- const { ref, doc, externalRefResolver = new resolve_1.BaseResolver(opts.config.resolve), base = null, } = opts;
48
+ export async function bundle(opts) {
49
+ const { ref, doc, externalRefResolver = new BaseResolver(opts.config.resolve), base = null, } = opts;
59
50
  if (!(ref || doc)) {
60
51
  throw new Error('Document or reference is required.\n');
61
52
  }
@@ -71,9 +62,9 @@ async function bundle(opts) {
71
62
  externalRefResolver,
72
63
  });
73
64
  }
74
- async function bundleFromString(opts) {
75
- const { source, absoluteRef, externalRefResolver = new resolve_1.BaseResolver(opts.config.resolve) } = opts;
76
- const document = (0, resolve_1.makeDocumentFromString)(source, absoluteRef || '/');
65
+ export async function bundleFromString(opts) {
66
+ const { source, absoluteRef, externalRefResolver = new BaseResolver(opts.config.resolve) } = opts;
67
+ const document = makeDocumentFromString(source, absoluteRef || '/');
77
68
  return bundleDocument({
78
69
  document,
79
70
  ...opts,
@@ -81,14 +72,14 @@ async function bundleFromString(opts) {
81
72
  config: opts.config.styleguide,
82
73
  });
83
74
  }
84
- async function bundleDocument(opts) {
85
- const { document, config, customTypes, externalRefResolver, dereference = false, skipRedoclyRegistryRefs = false, removeUnusedComponents = false, keepUrlRefs = false, } = opts;
86
- const specVersion = (0, oas_types_1.detectSpec)(document.parsed);
87
- const specMajorVersion = (0, oas_types_1.getMajorSpecVersion)(specVersion);
75
+ export async function bundleDocument(opts) {
76
+ const { document, config, customTypes, externalRefResolver, dereference = false, removeUnusedComponents = false, keepUrlRefs = false, } = opts;
77
+ const specVersion = detectSpec(document.parsed);
78
+ const specMajorVersion = getMajorSpecVersion(specVersion);
88
79
  const rules = config.getRulesForSpecVersion(specMajorVersion);
89
- const types = (0, types_1.normalizeTypes)(config.extendTypes(customTypes ?? (0, oas_types_1.getTypes)(specVersion), specVersion), config);
90
- const preprocessors = (0, rules_1.initRules)(rules, config, 'preprocessors', specVersion);
91
- const decorators = (0, rules_1.initRules)(rules, config, 'decorators', specVersion);
80
+ const types = normalizeTypes(config.extendTypes(customTypes ?? getTypes(specVersion), specVersion), config);
81
+ const preprocessors = initRules(rules, config, 'preprocessors', specVersion);
82
+ const decorators = initRules(rules, config, 'decorators', specVersion);
92
83
  const ctx = {
93
84
  problems: [],
94
85
  oasVersion: specVersion,
@@ -99,40 +90,40 @@ async function bundleDocument(opts) {
99
90
  decorators.push({
100
91
  severity: 'error',
101
92
  ruleId: 'remove-unused-components',
102
- visitor: specMajorVersion === oas_types_1.SpecMajorVersion.OAS2
103
- ? (0, remove_unused_components_1.RemoveUnusedComponents)({})
104
- : (0, remove_unused_components_2.RemoveUnusedComponents)({}),
93
+ visitor: specMajorVersion === SpecMajorVersion.OAS2
94
+ ? RemoveUnusedComponentsOas2({})
95
+ : RemoveUnusedComponentsOas3({}),
105
96
  });
106
97
  }
107
- let resolvedRefMap = await (0, resolve_1.resolveDocument)({
98
+ let resolvedRefMap = await resolveDocument({
108
99
  rootDocument: document,
109
100
  rootType: types.Root,
110
101
  externalRefResolver,
111
102
  });
112
103
  if (preprocessors.length > 0) {
113
104
  // Make additional pass to resolve refs defined in preprocessors.
114
- (0, walk_1.walkDocument)({
105
+ walkDocument({
115
106
  document,
116
107
  rootType: types.Root,
117
- normalizedVisitors: (0, visitors_1.normalizeVisitors)(preprocessors, types),
108
+ normalizedVisitors: normalizeVisitors(preprocessors, types),
118
109
  resolvedRefMap,
119
110
  ctx,
120
111
  });
121
- resolvedRefMap = await (0, resolve_1.resolveDocument)({
112
+ resolvedRefMap = await resolveDocument({
122
113
  rootDocument: document,
123
114
  rootType: types.Root,
124
115
  externalRefResolver,
125
116
  });
126
117
  }
127
- const bundleVisitor = (0, visitors_1.normalizeVisitors)([
118
+ const bundleVisitor = normalizeVisitors([
128
119
  {
129
120
  severity: 'error',
130
121
  ruleId: 'bundler',
131
- visitor: makeBundleVisitor(specMajorVersion, dereference, skipRedoclyRegistryRefs, document, resolvedRefMap, keepUrlRefs),
122
+ visitor: makeBundleVisitor(specMajorVersion, dereference, document, resolvedRefMap, keepUrlRefs),
132
123
  },
133
124
  ...decorators,
134
125
  ], types);
135
- (0, walk_1.walkDocument)({
126
+ walkDocument({
136
127
  document,
137
128
  rootType: types.Root,
138
129
  normalizedVisitors: bundleVisitor,
@@ -148,9 +139,9 @@ async function bundleDocument(opts) {
148
139
  visitorsData: ctx.visitorsData,
149
140
  };
150
141
  }
151
- function mapTypeToComponent(typeName, version) {
142
+ export function mapTypeToComponent(typeName, version) {
152
143
  switch (version) {
153
- case oas_types_1.SpecMajorVersion.OAS3:
144
+ case SpecMajorVersion.OAS3:
154
145
  switch (typeName) {
155
146
  case 'Schema':
156
147
  return 'schemas';
@@ -173,7 +164,7 @@ function mapTypeToComponent(typeName, version) {
173
164
  default:
174
165
  return null;
175
166
  }
176
- case oas_types_1.SpecMajorVersion.OAS2:
167
+ case SpecMajorVersion.OAS2:
177
168
  switch (typeName) {
178
169
  case 'Schema':
179
170
  return 'definitions';
@@ -184,7 +175,7 @@ function mapTypeToComponent(typeName, version) {
184
175
  default:
185
176
  return null;
186
177
  }
187
- case oas_types_1.SpecMajorVersion.Async2:
178
+ case SpecMajorVersion.Async2:
188
179
  switch (typeName) {
189
180
  case 'Schema':
190
181
  return 'schemas';
@@ -193,7 +184,7 @@ function mapTypeToComponent(typeName, version) {
193
184
  default:
194
185
  return null;
195
186
  }
196
- case oas_types_1.SpecMajorVersion.Async3:
187
+ case SpecMajorVersion.Async3:
197
188
  switch (typeName) {
198
189
  case 'Schema':
199
190
  return 'schemas';
@@ -202,7 +193,7 @@ function mapTypeToComponent(typeName, version) {
202
193
  default:
203
194
  return null;
204
195
  }
205
- case oas_types_1.SpecMajorVersion.Arazzo1:
196
+ case SpecMajorVersion.Arazzo1:
206
197
  switch (typeName) {
207
198
  case 'Root.workflows_items.parameters_items':
208
199
  case 'Root.workflows_items.steps_items.parameters_items':
@@ -210,7 +201,7 @@ function mapTypeToComponent(typeName, version) {
210
201
  default:
211
202
  return null;
212
203
  }
213
- case oas_types_1.SpecMajorVersion.Overlay1:
204
+ case SpecMajorVersion.Overlay1:
214
205
  switch (typeName) {
215
206
  default:
216
207
  return null;
@@ -218,7 +209,7 @@ function mapTypeToComponent(typeName, version) {
218
209
  }
219
210
  }
220
211
  function replaceRef(ref, resolved, ctx) {
221
- if (!(0, utils_1.isPlainObject)(resolved.node)) {
212
+ if (!isPlainObject(resolved.node)) {
222
213
  ctx.parent[ctx.key] = resolved.node;
223
214
  }
224
215
  else {
@@ -230,14 +221,14 @@ function replaceRef(ref, resolved, ctx) {
230
221
  }
231
222
  }
232
223
  // function oas3Move
233
- function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDocument, resolvedRefMap, keepUrlRefs) {
224
+ function makeBundleVisitor(version, dereference, rootDocument, resolvedRefMap, keepUrlRefs) {
234
225
  let components;
235
226
  let rootLocation;
236
227
  const visitor = {
237
228
  ref: {
238
229
  leave(node, ctx, resolved) {
239
230
  if (!resolved.location || resolved.node === undefined) {
240
- (0, no_unresolved_refs_1.reportUnresolvedRef)(resolved, ctx.report, ctx.location);
231
+ reportUnresolvedRef(resolved, ctx.report, ctx.location);
241
232
  return;
242
233
  }
243
234
  if (resolved.location.source === rootDocument.source &&
@@ -246,11 +237,7 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
246
237
  !dereference) {
247
238
  return;
248
239
  }
249
- // do not bundle registry URL before push, otherwise we can't record dependencies
250
- if (skipRedoclyRegistryRefs && (0, domains_1.isRedoclyRegistryURL)(node.$ref)) {
251
- return;
252
- }
253
- if (keepUrlRefs && (0, ref_utils_1.isAbsoluteUrl)(node.$ref)) {
240
+ if (keepUrlRefs && isAbsoluteUrl(node.$ref)) {
254
241
  return;
255
242
  }
256
243
  const componentType = mapTypeToComponent(ctx.type.name, version);
@@ -271,13 +258,13 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
271
258
  },
272
259
  Example: {
273
260
  leave(node, ctx) {
274
- if ((0, ref_utils_1.isExternalValue)(node) && node.value === undefined) {
261
+ if (isExternalValue(node) && node.value === undefined) {
275
262
  const resolved = ctx.resolve({ $ref: node.externalValue });
276
263
  if (!resolved.location || resolved.node === undefined) {
277
- (0, no_unresolved_refs_1.reportUnresolvedRef)(resolved, ctx.report, ctx.location);
264
+ reportUnresolvedRef(resolved, ctx.report, ctx.location);
278
265
  return;
279
266
  }
280
- if (keepUrlRefs && (0, ref_utils_1.isAbsoluteUrl)(node.externalValue)) {
267
+ if (keepUrlRefs && isAbsoluteUrl(node.externalValue)) {
281
268
  return;
282
269
  }
283
270
  node.value = ctx.resolve({ $ref: node.externalValue }).node;
@@ -288,32 +275,32 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
288
275
  Root: {
289
276
  enter(root, ctx) {
290
277
  rootLocation = ctx.location;
291
- if (version === oas_types_1.SpecMajorVersion.OAS3) {
278
+ if (version === SpecMajorVersion.OAS3) {
292
279
  components = root.components = root.components || {};
293
280
  }
294
- else if (version === oas_types_1.SpecMajorVersion.OAS2) {
281
+ else if (version === SpecMajorVersion.OAS2) {
295
282
  components = root;
296
283
  }
297
- else if (version === oas_types_1.SpecMajorVersion.Async2) {
284
+ else if (version === SpecMajorVersion.Async2) {
298
285
  components = root.components = root.components || {};
299
286
  }
300
- else if (version === oas_types_1.SpecMajorVersion.Async3) {
287
+ else if (version === SpecMajorVersion.Async3) {
301
288
  components = root.components = root.components || {};
302
289
  }
303
- else if (version === oas_types_1.SpecMajorVersion.Arazzo1) {
290
+ else if (version === SpecMajorVersion.Arazzo1) {
304
291
  components = root.components = root.components || {};
305
292
  }
306
293
  },
307
294
  },
308
295
  };
309
- if (version === oas_types_1.SpecMajorVersion.OAS3) {
296
+ if (version === SpecMajorVersion.OAS3) {
310
297
  visitor.DiscriminatorMapping = {
311
298
  leave(mapping, ctx) {
312
299
  for (const name of Object.keys(mapping)) {
313
300
  const $ref = mapping[name];
314
301
  const resolved = ctx.resolve({ $ref });
315
302
  if (!resolved.location || resolved.node === undefined) {
316
- (0, no_unresolved_refs_1.reportUnresolvedRef)(resolved, ctx.report, ctx.location.child(name));
303
+ reportUnresolvedRef(resolved, ctx.report, ctx.location.child(name));
317
304
  return;
318
305
  }
319
306
  const componentType = mapTypeToComponent('Schema', version);
@@ -323,7 +310,7 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
323
310
  };
324
311
  }
325
312
  function resolveBundledComponent(node, resolved, ctx) {
326
- const newRefId = (0, resolve_1.makeRefId)(ctx.location.source.absoluteRef, node.$ref);
313
+ const newRefId = makeRefId(ctx.location.source.absoluteRef, node.$ref);
327
314
  resolvedRefMap.set(newRefId, {
328
315
  document: rootDocument,
329
316
  isRemote: false,
@@ -336,9 +323,9 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
336
323
  components[componentType] = components[componentType] || {};
337
324
  const name = getComponentName(target, componentType, ctx);
338
325
  components[componentType][name] = target.node;
339
- if (version === oas_types_1.SpecMajorVersion.OAS3 ||
340
- version === oas_types_1.SpecMajorVersion.Async2 ||
341
- version === oas_types_1.SpecMajorVersion.Async3) {
326
+ if (version === SpecMajorVersion.OAS3 ||
327
+ version === SpecMajorVersion.Async2 ||
328
+ version === SpecMajorVersion.Async3) {
342
329
  return `#/components/${componentType}/${name}`;
343
330
  }
344
331
  else {
@@ -346,18 +333,18 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
346
333
  }
347
334
  }
348
335
  function isEqualOrEqualRef(node, target, ctx) {
349
- if ((0, ref_utils_1.isRef)(node) &&
336
+ if (isRef(node) &&
350
337
  ctx.resolve(node, rootLocation.absolutePointer).location?.absolutePointer ===
351
338
  target.location.absolutePointer) {
352
339
  return true;
353
340
  }
354
- return (0, utils_1.dequal)(node, target.node);
341
+ return dequal(node, target.node);
355
342
  }
356
343
  function getComponentName(target, componentType, ctx) {
357
344
  const [fileRef, pointer] = [target.location.source.absoluteRef, target.location.pointer];
358
345
  const componentsGroup = components[componentType];
359
346
  let name = '';
360
- const refParts = pointer.slice(2).split('/').filter(utils_1.isTruthy); // slice(2) removes "#/"
347
+ const refParts = pointer.slice(2).split('/').filter(isTruthy); // slice(2) removes "#/"
361
348
  while (refParts.length > 0) {
362
349
  name = refParts.pop() + (name ? `-${name}` : '');
363
350
  if (!componentsGroup ||
@@ -366,7 +353,7 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
366
353
  return name;
367
354
  }
368
355
  }
369
- name = (0, ref_utils_1.refBaseName)(fileRef) + (name ? `_${name}` : '');
356
+ name = refBaseName(fileRef) + (name ? `_${name}` : '');
370
357
  if (!componentsGroup[name] || isEqualOrEqualRef(componentsGroup[name], target, ctx)) {
371
358
  return name;
372
359
  }
@@ -387,3 +374,4 @@ function makeBundleVisitor(version, dereference, skipRedoclyRegistryRefs, rootDo
387
374
  }
388
375
  return visitor;
389
376
  }
377
+ //# sourceMappingURL=bundle.js.map
@@ -0,0 +1 @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C;QACd,CAAC;QAED,MAAM,QAAQ,GAAG,IAAI,CAAC;QACtB,IAAI,QAAQ,GAAG,CAAC,CAAC;QACjB,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YACvF,IAAI,GAAG,GAAG,QAAQ,IAAI,QAAQ,EAAE,CAAC;YACjC,QAAQ,EAAE,CAAC;QACb,CAAC;QAED,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC;YAC3B,GAAG,CAAC,MAAM,CAAC;gBACT,OAAO,EAAE,gFAAgF,QAAQ,OAAO,IAAI,GAAG;gBAC/G,QAAQ,EAAE,GAAG,CAAC,QAAQ;gBACtB,aAAa,EAAE,MAAM;aACtB,CAAC,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
@@ -1,3 +1,4 @@
1
- import type { PluginStyleguideConfig } from './types';
1
+ import type { PluginStyleguideConfig } from './types.js';
2
2
  declare const all: PluginStyleguideConfig<'built-in'>;
3
3
  export default all;
4
+ //# sourceMappingURL=all.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all.d.ts","sourceRoot":"","sources":["../../src/config/all.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEzD,QAAA,MAAM,GAAG,EAAE,sBAAsB,CAAC,UAAU,CAqO3C,CAAC;AAEF,eAAe,GAAG,CAAC"}
package/lib/config/all.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
1
  const all = {
4
2
  rules: {
5
3
  struct: 'error',
@@ -230,4 +228,5 @@ const all = {
230
228
  'info-contact': 'error',
231
229
  },
232
230
  };
233
- exports.default = all;
231
+ export default all;
232
+ //# sourceMappingURL=all.js.map
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AE;QACX,qBAAqB,EAAE,OAAO;QAC9B,cAAc,EAAE,OAAO;QACvB,qBAAqB,EAAE,OAAO;QAC9B,2BAA2B,EAAE,OAAO;QACpC,uBAAuB,EAAE,OAAO;QAChC,iBAAiB,EAAE,OAAO;QAC1B,mBAAmB,EAAE,OAAO;KAC7B;IACD,WAAW,EAAE;QACX,qBAAqB,EAAE,OAAO;QAC9B,cAAc,EAAE,OAAO;QACvB,qBAAqB,EAAE,OAAO;QAC9B,2BAA2B,EAAE,OAAO;QACpC,uBAAuB,EAAE,OAAO;QAChC,iBAAiB,EAAE,OAAO;QAC1B,mBAAmB,EAAE,OAAO;KAC7B;IACD,YAAY,EAAE;QACZ,iBAAiB,EAAE,OAAO;QAC1B,mBAAmB,EAAE,KAAK;QAC1B,mBAAmB,EAAE,OAAO;QAC5B,iCAAiC,EAAE,OAAO;QAC1C,wBAAwB,EAAE,OAAO;QACjC,uBAAuB,EAAE,OAAO;QAChC,uBAAuB,EAAE,OAAO;QAChC,eAAe,EAAE,OAAO;QACxB,+BAA+B,EAAE,OAAO;QACxC,8BAA8B,EAAE,OAAO;QACvC,4BAA4B,EAAE,KAAK;QACnC,mBAAmB,EAAE,OAAO;QAC5B,oBAAoB,EAAE,OAAO;KAC9B;IACD,aAAa,EAAE;QACb,cAAc,EAAE,OAAO;KACxB;CACF,CAAC;AAEF,eAAe,GAAG,CAAC"}
@@ -1,3 +1,4 @@
1
- import type { StyleguideRawConfig, Plugin } from './types';
1
+ import type { StyleguideRawConfig, Plugin } from './types.js';
2
2
  export declare const builtInConfigs: Record<string, StyleguideRawConfig>;
3
3
  export declare const defaultPlugin: Plugin<'built-in'>;
4
+ //# sourceMappingURL=builtIn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtIn.d.ts","sourceRoot":"","sources":["../../src/config/builtIn.ts"],"names":[],"mappings":"AA8BA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC;AAE9D,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAM9D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,UAAU,CA2B5C,CAAC"}
@@ -1,58 +1,53 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultPlugin = exports.builtInConfigs = void 0;
4
- const recommended_1 = require("./recommended");
5
- const recommended_strict_1 = require("./recommended-strict");
6
- const all_1 = require("./all");
7
- const minimal_1 = require("./minimal");
8
- const spec_1 = require("./spec");
9
- const oas3_1 = require("../rules/oas3");
10
- const oas2_1 = require("../rules/oas2");
11
- const async2_1 = require("../rules/async2");
12
- const async3_1 = require("../rules/async3");
13
- const arazzo_1 = require("../rules/arazzo");
14
- const overlay1_1 = require("../rules/overlay1");
15
- const oas3_2 = require("../decorators/oas3");
16
- const oas2_2 = require("../decorators/oas2");
17
- const async2_2 = require("../decorators/async2");
18
- const async3_2 = require("../decorators/async3");
19
- const arazzo_2 = require("../decorators/arazzo");
20
- const overlay1_2 = require("../decorators/overlay1");
21
- exports.builtInConfigs = {
22
- recommended: recommended_1.default,
23
- 'recommended-strict': recommended_strict_1.default,
24
- minimal: minimal_1.default,
25
- all: all_1.default,
26
- spec: spec_1.default,
27
- 'redocly-registry': {
28
- decorators: { 'registry-dependencies': 'on' },
29
- },
1
+ import recommended from './recommended.js';
2
+ import recommendedStrict from './recommended-strict.js';
3
+ import all from './all.js';
4
+ import minimal from './minimal.js';
5
+ import spec from './spec.js';
6
+ import { rules as oas3Rules, preprocessors as oas3Preprocessors } from '../rules/oas3/index.js';
7
+ import { rules as oas2Rules, preprocessors as oas2Preprocessors } from '../rules/oas2/index.js';
8
+ import { rules as async2Rules, preprocessors as async2Preprocessors, } from '../rules/async2/index.js';
9
+ import { rules as async3Rules, preprocessors as async3Preprocessors, } from '../rules/async3/index.js';
10
+ import { rules as arazzo1Rules, preprocessors as arazzoPreprocessors, } from '../rules/arazzo/index.js';
11
+ import { rules as overlay1Rules, preprocessors as overlay1Preprocessors, } from '../rules/overlay1/index.js';
12
+ import { decorators as oas3Decorators } from '../decorators/oas3/index.js';
13
+ import { decorators as oas2Decorators } from '../decorators/oas2/index.js';
14
+ import { decorators as async2Decorators } from '../decorators/async2/index.js';
15
+ import { decorators as async3Decorators } from '../decorators/async3/index.js';
16
+ import { decorators as arazzo1Decorators } from '../decorators/arazzo/index.js';
17
+ import { decorators as overlay1Decorators } from '../decorators/overlay1/index.js';
18
+ export const builtInConfigs = {
19
+ recommended,
20
+ 'recommended-strict': recommendedStrict,
21
+ minimal,
22
+ all,
23
+ spec,
30
24
  };
31
- exports.defaultPlugin = {
25
+ export const defaultPlugin = {
32
26
  id: '', // default plugin doesn't have id
33
27
  rules: {
34
- oas3: oas3_1.rules,
35
- oas2: oas2_1.rules,
36
- async2: async2_1.rules,
37
- async3: async3_1.rules,
38
- arazzo1: arazzo_1.rules,
39
- overlay1: overlay1_1.rules,
28
+ oas3: oas3Rules,
29
+ oas2: oas2Rules,
30
+ async2: async2Rules,
31
+ async3: async3Rules,
32
+ arazzo1: arazzo1Rules,
33
+ overlay1: overlay1Rules,
40
34
  },
41
35
  preprocessors: {
42
- oas3: oas3_1.preprocessors,
43
- oas2: oas2_1.preprocessors,
44
- async2: async2_1.preprocessors,
45
- async3: async3_1.preprocessors,
46
- arazzo1: arazzo_1.preprocessors,
47
- overlay1: overlay1_1.preprocessors,
36
+ oas3: oas3Preprocessors,
37
+ oas2: oas2Preprocessors,
38
+ async2: async2Preprocessors,
39
+ async3: async3Preprocessors,
40
+ arazzo1: arazzoPreprocessors,
41
+ overlay1: overlay1Preprocessors,
48
42
  },
49
43
  decorators: {
50
- oas3: oas3_2.decorators,
51
- oas2: oas2_2.decorators,
52
- async2: async2_2.decorators,
53
- async3: async3_2.decorators,
54
- arazzo1: arazzo_2.decorators,
55
- overlay1: overlay1_2.decorators,
44
+ oas3: oas3Decorators,
45
+ oas2: oas2Decorators,
46
+ async2: async2Decorators,
47
+ async3: async3Decorators,
48
+ arazzo1: arazzo1Decorators,
49
+ overlay1: overlay1Decorators,
56
50
  },
57
- configs: exports.builtInConfigs,
51
+ configs: builtInConfigs,
58
52
  };
53
+ //# sourceMappingURL=builtIn.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builtIn.js","sourceRoot":"","sources":["../../src/config/builtIn.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,kBAAkB,CAAC;AAC3C,OAAO,iBAAiB,MAAM,yBAAyB,CAAC;AACxD,OAAO,GAAG,MAAM,UAAU,CAAC;AAC3B,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,aAAa,IAAI,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,aAAa,IAAI,mBAAmB,GACrC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,IAAI,WAAW,EACpB,aAAa,IAAI,mBAAmB,GACrC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,IAAI,YAAY,EACrB,aAAa,IAAI,mBAAmB,GACrC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,IAAI,aAAa,EACtB,aAAa,IAAI,qBAAqB,GACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC3E,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC/E,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAInF,MAAM,CAAC,MAAM,cAAc,GAAwC;IACjE,WAAW;IACX,oBAAoB,EAAE,iBAAiB;IACvC,OAAO;IACP,GAAG;IACH,IAAI;CACL,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAuB;IAC/C,EAAE,EAAE,EAAE,EAAE,iCAAiC;IACzC,KAAK,EAAE;QACL,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,SAAS;QACf,MAAM,EAAE,WAAW;QACnB,MAAM,EAAE,WAAW;QACnB,OAAO,EAAE,YAAY;QACrB,QAAQ,EAAE,aAAa;KACxB;IACD,aAAa,EAAE;QACb,IAAI,EAAE,iBAAiB;QACvB,IAAI,EAAE,iBAAiB;QACvB,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,mBAAmB;QAC3B,OAAO,EAAE,mBAAmB;QAC5B,QAAQ,EAAE,qBAAqB;KAChC;IACD,UAAU,EAAE;QACV,IAAI,EAAE,cAAc;QACpB,IAAI,EAAE,cAAc;QACpB,MAAM,EAAE,gBAAgB;QACxB,MAAM,EAAE,gBAAgB;QACxB,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,kBAAkB;KAC7B;IACD,OAAO,EAAE,cAAc;CACxB,CAAC"}
@@ -1,8 +1,8 @@
1
- import { BaseResolver } from '../resolve';
2
- import { Config } from './config';
3
- import type { StyleguideRawConfig, Plugin, RawConfig, ResolvedApi, ResolvedStyleguideConfig } from './types';
4
- import type { BundleOptions } from '../bundle';
5
- import type { Document, ResolvedRefMap } from '../resolve';
1
+ import { BaseResolver } from '../resolve.js';
2
+ import { Config } from './config.js';
3
+ import type { StyleguideRawConfig, Plugin, RawConfig, ResolvedApi, ResolvedStyleguideConfig } from './types.js';
4
+ import type { BundleOptions } from '../bundle.js';
5
+ import type { Document, ResolvedRefMap } from '../resolve.js';
6
6
  export declare function resolveConfigFileAndRefs({ configPath, externalRefResolver, base, }: Omit<BundleOptions, 'config'> & {
7
7
  configPath?: string;
8
8
  }): Promise<{
@@ -28,3 +28,4 @@ export declare function resolveStyleguideConfig(opts: {
28
28
  extendPaths?: string[];
29
29
  }): Promise<ResolvedStyleguideConfig>;
30
30
  export declare function resolvePreset(presetName: string, plugins: Plugin[]): ResolvedStyleguideConfig;
31
+ //# sourceMappingURL=config-resolvers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-resolvers.d.ts","sourceRoot":"","sources":["../../src/config/config-resolvers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,YAAY,EAAE,MAAM,eAAe,CAAC;AAa9D,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAKrC,OAAO,KAAK,EACV,mBAAmB,EAEnB,MAAM,EACN,SAAS,EACT,WAAW,EACX,wBAAwB,EAIzB,MAAM,YAAY,CAAC;AAOpB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAO9D,wBAAsB,wBAAwB,CAAC,EAC7C,UAAU,EACV,mBAAwC,EACxC,IAAW,GACZ,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAAC;IACnE,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,cAAc,CAAC;CAChC,CAAC,CAkBD;AAED,wBAAsB,aAAa,CAAC,EAClC,SAAS,EACT,UAAU,EACV,mBAAmB,GACpB,EAAE;IACD,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,YAAY,CAAC;CACpC,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BlB;AAYD,wB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