@redocly/openapi-core 0.0.0-snapshot.1741951669 → 0.0.0-snapshot.1742836362

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 (649) 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 +71 -83
  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 -95
  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 +66 -73
  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 +75 -89
  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 +61 -62
  168. package/lib/format/format.js.map +1 -0
  169. package/lib/index.d.ts +26 -26
  170. package/lib/index.d.ts.map +1 -0
  171. package/lib/index.js +22 -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 +39 -44
  180. package/lib/lint.js.map +1 -0
  181. package/lib/logger.d.ts +1 -0
  182. package/lib/logger.d.ts.map +1 -0
  183. package/lib/logger.js +12 -14
  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/output.d.ts +1 -0
  190. package/lib/output.d.ts.map +1 -0
  191. package/lib/output.js +4 -6
  192. package/lib/output.js.map +1 -0
  193. package/lib/ref-utils.d.ts +3 -2
  194. package/lib/ref-utils.d.ts.map +1 -0
  195. package/lib/ref-utils.js +18 -33
  196. package/lib/ref-utils.js.map +1 -0
  197. package/lib/resolve.d.ts +3 -2
  198. package/lib/resolve.d.ts.map +1 -0
  199. package/lib/resolve.js +36 -45
  200. package/lib/resolve.js.map +1 -0
  201. package/lib/rules/ajv.d.ts +4 -3
  202. package/lib/rules/ajv.d.ts.map +1 -0
  203. package/lib/rules/ajv.js +7 -10
  204. package/lib/rules/ajv.js.map +1 -0
  205. package/lib/rules/arazzo/criteria-unique.d.ts +2 -1
  206. package/lib/rules/arazzo/criteria-unique.d.ts.map +1 -0
  207. package/lib/rules/arazzo/criteria-unique.js +2 -5
  208. package/lib/rules/arazzo/criteria-unique.js.map +1 -0
  209. package/lib/rules/arazzo/index.d.ts +2 -1
  210. package/lib/rules/arazzo/index.d.ts.map +1 -0
  211. package/lib/rules/arazzo/index.js +33 -35
  212. package/lib/rules/arazzo/index.js.map +1 -0
  213. package/lib/rules/arazzo/parameters-unique.d.ts +2 -1
  214. package/lib/rules/arazzo/parameters-unique.d.ts.map +1 -0
  215. package/lib/rules/arazzo/parameters-unique.js +2 -5
  216. package/lib/rules/arazzo/parameters-unique.js.map +1 -0
  217. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +2 -1
  218. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +1 -0
  219. package/lib/rules/arazzo/requestBody-replacements-unique.js +2 -5
  220. package/lib/rules/arazzo/requestBody-replacements-unique.js.map +1 -0
  221. package/lib/rules/arazzo/sourceDescription-type.d.ts +2 -1
  222. package/lib/rules/arazzo/sourceDescription-type.d.ts.map +1 -0
  223. package/lib/rules/arazzo/sourceDescription-type.js +2 -5
  224. package/lib/rules/arazzo/sourceDescription-type.js.map +1 -0
  225. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +2 -1
  226. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +1 -0
  227. package/lib/rules/arazzo/sourceDescriptions-name-unique.js +2 -5
  228. package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +1 -0
  229. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +2 -1
  230. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +1 -0
  231. package/lib/rules/arazzo/sourceDescriptions-not-empty.js +2 -5
  232. package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +1 -0
  233. package/lib/rules/arazzo/step-onFailure-unique.d.ts +2 -1
  234. package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +1 -0
  235. package/lib/rules/arazzo/step-onFailure-unique.js +2 -5
  236. package/lib/rules/arazzo/step-onFailure-unique.js.map +1 -0
  237. package/lib/rules/arazzo/step-onSuccess-unique.d.ts +2 -1
  238. package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +1 -0
  239. package/lib/rules/arazzo/step-onSuccess-unique.js +2 -5
  240. package/lib/rules/arazzo/step-onSuccess-unique.js.map +1 -0
  241. package/lib/rules/arazzo/stepId-unique.d.ts +2 -1
  242. package/lib/rules/arazzo/stepId-unique.d.ts.map +1 -0
  243. package/lib/rules/arazzo/stepId-unique.js +2 -5
  244. package/lib/rules/arazzo/stepId-unique.js.map +1 -0
  245. package/lib/rules/arazzo/workflow-dependsOn.d.ts +2 -1
  246. package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +1 -0
  247. package/lib/rules/arazzo/workflow-dependsOn.js +2 -5
  248. package/lib/rules/arazzo/workflow-dependsOn.js.map +1 -0
  249. package/lib/rules/arazzo/workflowId-unique.d.ts +2 -1
  250. package/lib/rules/arazzo/workflowId-unique.d.ts.map +1 -0
  251. package/lib/rules/arazzo/workflowId-unique.js +2 -5
  252. package/lib/rules/arazzo/workflowId-unique.js.map +1 -0
  253. package/lib/rules/async2/channels-kebab-case.d.ts +2 -1
  254. package/lib/rules/async2/channels-kebab-case.d.ts.map +1 -0
  255. package/lib/rules/async2/channels-kebab-case.js +2 -5
  256. package/lib/rules/async2/channels-kebab-case.js.map +1 -0
  257. package/lib/rules/async2/index.d.ts +2 -1
  258. package/lib/rules/async2/index.d.ts.map +1 -0
  259. package/lib/rules/async2/index.js +22 -24
  260. package/lib/rules/async2/index.js.map +1 -0
  261. package/lib/rules/async2/no-channel-trailing-slash.d.ts +2 -1
  262. package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +1 -0
  263. package/lib/rules/async2/no-channel-trailing-slash.js +2 -5
  264. package/lib/rules/async2/no-channel-trailing-slash.js.map +1 -0
  265. package/lib/rules/async3/channels-kebab-case.d.ts +2 -1
  266. package/lib/rules/async3/channels-kebab-case.d.ts.map +1 -0
  267. package/lib/rules/async3/channels-kebab-case.js +2 -5
  268. package/lib/rules/async3/channels-kebab-case.js.map +1 -0
  269. package/lib/rules/async3/index.d.ts +2 -1
  270. package/lib/rules/async3/index.d.ts.map +1 -0
  271. package/lib/rules/async3/index.js +22 -24
  272. package/lib/rules/async3/index.js.map +1 -0
  273. package/lib/rules/async3/no-channel-trailing-slash.d.ts +2 -1
  274. package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +1 -0
  275. package/lib/rules/async3/no-channel-trailing-slash.js +3 -6
  276. package/lib/rules/async3/no-channel-trailing-slash.js.map +1 -0
  277. package/lib/rules/common/assertions/asserts.d.ts +3 -2
  278. package/lib/rules/common/assertions/asserts.d.ts.map +1 -0
  279. package/lib/rules/common/assertions/asserts.js +35 -38
  280. package/lib/rules/common/assertions/asserts.js.map +1 -0
  281. package/lib/rules/common/assertions/index.d.ts +4 -3
  282. package/lib/rules/common/assertions/index.d.ts.map +1 -0
  283. package/lib/rules/common/assertions/index.js +7 -10
  284. package/lib/rules/common/assertions/index.js.map +1 -0
  285. package/lib/rules/common/assertions/utils.d.ts +5 -4
  286. package/lib/rules/common/assertions/utils.d.ts.map +1 -0
  287. package/lib/rules/common/assertions/utils.js +21 -29
  288. package/lib/rules/common/assertions/utils.js.map +1 -0
  289. package/lib/rules/common/info-contact.d.ts +2 -1
  290. package/lib/rules/common/info-contact.d.ts.map +1 -0
  291. package/lib/rules/common/info-contact.js +4 -7
  292. package/lib/rules/common/info-contact.js.map +1 -0
  293. package/lib/rules/common/info-license-strict.d.ts +2 -1
  294. package/lib/rules/common/info-license-strict.d.ts.map +1 -0
  295. package/lib/rules/common/info-license-strict.js +7 -10
  296. package/lib/rules/common/info-license-strict.js.map +1 -0
  297. package/lib/rules/common/info-license-url.d.ts +2 -1
  298. package/lib/rules/common/info-license-url.d.ts.map +1 -0
  299. package/lib/rules/common/info-license-url.js +4 -7
  300. package/lib/rules/common/info-license-url.js.map +1 -0
  301. package/lib/rules/common/info-license.d.ts +2 -1
  302. package/lib/rules/common/info-license.d.ts.map +1 -0
  303. package/lib/rules/common/info-license.js +4 -7
  304. package/lib/rules/common/info-license.js.map +1 -0
  305. package/lib/rules/common/no-ambiguous-paths.d.ts +2 -1
  306. package/lib/rules/common/no-ambiguous-paths.d.ts.map +1 -0
  307. package/lib/rules/common/no-ambiguous-paths.js +2 -5
  308. package/lib/rules/common/no-ambiguous-paths.js.map +1 -0
  309. package/lib/rules/common/no-enum-type-mismatch.d.ts +2 -1
  310. package/lib/rules/common/no-enum-type-mismatch.d.ts.map +1 -0
  311. package/lib/rules/common/no-enum-type-mismatch.js +6 -9
  312. package/lib/rules/common/no-enum-type-mismatch.js.map +1 -0
  313. package/lib/rules/common/no-http-verbs-in-paths.d.ts +2 -1
  314. package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -0
  315. package/lib/rules/common/no-http-verbs-in-paths.js +5 -8
  316. package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -0
  317. package/lib/rules/common/no-identical-paths.d.ts +2 -1
  318. package/lib/rules/common/no-identical-paths.d.ts.map +1 -0
  319. package/lib/rules/common/no-identical-paths.js +2 -5
  320. package/lib/rules/common/no-identical-paths.js.map +1 -0
  321. package/lib/rules/common/no-invalid-parameter-examples.d.ts +1 -0
  322. package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +1 -0
  323. package/lib/rules/common/no-invalid-parameter-examples.js +6 -9
  324. package/lib/rules/common/no-invalid-parameter-examples.js.map +1 -0
  325. package/lib/rules/common/no-invalid-schema-examples.d.ts +2 -1
  326. package/lib/rules/common/no-invalid-schema-examples.d.ts.map +1 -0
  327. package/lib/rules/common/no-invalid-schema-examples.js +6 -9
  328. package/lib/rules/common/no-invalid-schema-examples.js.map +1 -0
  329. package/lib/rules/common/no-path-trailing-slash.d.ts +2 -1
  330. package/lib/rules/common/no-path-trailing-slash.d.ts.map +1 -0
  331. package/lib/rules/common/no-path-trailing-slash.js +2 -5
  332. package/lib/rules/common/no-path-trailing-slash.js.map +1 -0
  333. package/lib/rules/common/no-required-schema-properties-undefined.d.ts +2 -1
  334. package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +1 -0
  335. package/lib/rules/common/no-required-schema-properties-undefined.js +4 -7
  336. package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -0
  337. package/lib/rules/common/no-schema-type-mismatch.d.ts +2 -1
  338. package/lib/rules/common/no-schema-type-mismatch.d.ts.map +1 -0
  339. package/lib/rules/common/no-schema-type-mismatch.js +2 -5
  340. package/lib/rules/common/no-schema-type-mismatch.js.map +1 -0
  341. package/lib/rules/common/operation-2xx-response.d.ts +2 -1
  342. package/lib/rules/common/operation-2xx-response.d.ts.map +1 -0
  343. package/lib/rules/common/operation-2xx-response.js +5 -8
  344. package/lib/rules/common/operation-2xx-response.js.map +1 -0
  345. package/lib/rules/common/operation-4xx-response.d.ts +2 -1
  346. package/lib/rules/common/operation-4xx-response.d.ts.map +1 -0
  347. package/lib/rules/common/operation-4xx-response.js +5 -8
  348. package/lib/rules/common/operation-4xx-response.js.map +1 -0
  349. package/lib/rules/common/operation-description.d.ts +2 -1
  350. package/lib/rules/common/operation-description.d.ts.map +1 -0
  351. package/lib/rules/common/operation-description.js +4 -7
  352. package/lib/rules/common/operation-description.js.map +1 -0
  353. package/lib/rules/common/operation-operationId-unique.d.ts +2 -1
  354. package/lib/rules/common/operation-operationId-unique.d.ts.map +1 -0
  355. package/lib/rules/common/operation-operationId-unique.js +2 -5
  356. package/lib/rules/common/operation-operationId-unique.js.map +1 -0
  357. package/lib/rules/common/operation-operationId-url-safe.d.ts +2 -1
  358. package/lib/rules/common/operation-operationId-url-safe.d.ts.map +1 -0
  359. package/lib/rules/common/operation-operationId-url-safe.js +2 -5
  360. package/lib/rules/common/operation-operationId-url-safe.js.map +1 -0
  361. package/lib/rules/common/operation-operationId.d.ts +2 -1
  362. package/lib/rules/common/operation-operationId.d.ts.map +1 -0
  363. package/lib/rules/common/operation-operationId.js +4 -7
  364. package/lib/rules/common/operation-operationId.js.map +1 -0
  365. package/lib/rules/common/operation-parameters-unique.d.ts +2 -1
  366. package/lib/rules/common/operation-parameters-unique.d.ts.map +1 -0
  367. package/lib/rules/common/operation-parameters-unique.js +2 -5
  368. package/lib/rules/common/operation-parameters-unique.js.map +1 -0
  369. package/lib/rules/common/operation-singular-tag.d.ts +2 -1
  370. package/lib/rules/common/operation-singular-tag.d.ts.map +1 -0
  371. package/lib/rules/common/operation-singular-tag.js +2 -5
  372. package/lib/rules/common/operation-singular-tag.js.map +1 -0
  373. package/lib/rules/common/operation-summary.d.ts +2 -1
  374. package/lib/rules/common/operation-summary.d.ts.map +1 -0
  375. package/lib/rules/common/operation-summary.js +4 -7
  376. package/lib/rules/common/operation-summary.js.map +1 -0
  377. package/lib/rules/common/operation-tag-defined.d.ts +2 -1
  378. package/lib/rules/common/operation-tag-defined.d.ts.map +1 -0
  379. package/lib/rules/common/operation-tag-defined.js +2 -5
  380. package/lib/rules/common/operation-tag-defined.js.map +1 -0
  381. package/lib/rules/common/parameter-description.d.ts +2 -1
  382. package/lib/rules/common/parameter-description.d.ts.map +1 -0
  383. package/lib/rules/common/parameter-description.js +2 -5
  384. package/lib/rules/common/parameter-description.js.map +1 -0
  385. package/lib/rules/common/path-declaration-must-exist.d.ts +2 -1
  386. package/lib/rules/common/path-declaration-must-exist.d.ts.map +1 -0
  387. package/lib/rules/common/path-declaration-must-exist.js +2 -5
  388. package/lib/rules/common/path-declaration-must-exist.js.map +1 -0
  389. package/lib/rules/common/path-excludes-patterns.d.ts +2 -1
  390. package/lib/rules/common/path-excludes-patterns.d.ts.map +1 -0
  391. package/lib/rules/common/path-excludes-patterns.js +2 -5
  392. package/lib/rules/common/path-excludes-patterns.js.map +1 -0
  393. package/lib/rules/common/path-http-verbs-order.d.ts +2 -1
  394. package/lib/rules/common/path-http-verbs-order.d.ts.map +1 -0
  395. package/lib/rules/common/path-http-verbs-order.js +2 -5
  396. package/lib/rules/common/path-http-verbs-order.js.map +1 -0
  397. package/lib/rules/common/path-not-include-query.d.ts +2 -1
  398. package/lib/rules/common/path-not-include-query.d.ts.map +1 -0
  399. package/lib/rules/common/path-not-include-query.js +2 -5
  400. package/lib/rules/common/path-not-include-query.js.map +1 -0
  401. package/lib/rules/common/path-params-defined.d.ts +2 -1
  402. package/lib/rules/common/path-params-defined.d.ts.map +1 -0
  403. package/lib/rules/common/path-params-defined.js +2 -5
  404. package/lib/rules/common/path-params-defined.js.map +1 -0
  405. package/lib/rules/common/path-segment-plural.d.ts +2 -1
  406. package/lib/rules/common/path-segment-plural.d.ts.map +1 -0
  407. package/lib/rules/common/path-segment-plural.js +5 -8
  408. package/lib/rules/common/path-segment-plural.js.map +1 -0
  409. package/lib/rules/common/paths-kebab-case.d.ts +2 -1
  410. package/lib/rules/common/paths-kebab-case.d.ts.map +1 -0
  411. package/lib/rules/common/paths-kebab-case.js +2 -5
  412. package/lib/rules/common/paths-kebab-case.js.map +1 -0
  413. package/lib/rules/common/required-string-property-missing-min-length.d.ts +2 -1
  414. package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +1 -0
  415. package/lib/rules/common/required-string-property-missing-min-length.js +2 -5
  416. package/lib/rules/common/required-string-property-missing-min-length.js.map +1 -0
  417. package/lib/rules/common/response-contains-header.d.ts +2 -1
  418. package/lib/rules/common/response-contains-header.d.ts.map +1 -0
  419. package/lib/rules/common/response-contains-header.js +5 -8
  420. package/lib/rules/common/response-contains-header.js.map +1 -0
  421. package/lib/rules/common/scalar-property-missing-example.d.ts +2 -1
  422. package/lib/rules/common/scalar-property-missing-example.d.ts.map +1 -0
  423. package/lib/rules/common/scalar-property-missing-example.js +4 -7
  424. package/lib/rules/common/scalar-property-missing-example.js.map +1 -0
  425. package/lib/rules/common/security-defined.d.ts +2 -1
  426. package/lib/rules/common/security-defined.d.ts.map +1 -0
  427. package/lib/rules/common/security-defined.js +2 -5
  428. package/lib/rules/common/security-defined.js.map +1 -0
  429. package/lib/rules/common/spec-strict-refs.d.ts +2 -1
  430. package/lib/rules/common/spec-strict-refs.d.ts.map +1 -0
  431. package/lib/rules/common/spec-strict-refs.js +4 -7
  432. package/lib/rules/common/spec-strict-refs.js.map +1 -0
  433. package/lib/rules/common/struct.d.ts +2 -1
  434. package/lib/rules/common/struct.d.ts.map +1 -0
  435. package/lib/rules/common/struct.js +18 -21
  436. package/lib/rules/common/struct.js.map +1 -0
  437. package/lib/rules/common/tag-description.d.ts +2 -1
  438. package/lib/rules/common/tag-description.d.ts.map +1 -0
  439. package/lib/rules/common/tag-description.js +4 -7
  440. package/lib/rules/common/tag-description.js.map +1 -0
  441. package/lib/rules/common/tags-alphabetical.d.ts +2 -1
  442. package/lib/rules/common/tags-alphabetical.d.ts.map +1 -0
  443. package/lib/rules/common/tags-alphabetical.js +2 -5
  444. package/lib/rules/common/tags-alphabetical.js.map +1 -0
  445. package/lib/rules/no-unresolved-refs.d.ts +4 -3
  446. package/lib/rules/no-unresolved-refs.d.ts.map +1 -0
  447. package/lib/rules/no-unresolved-refs.js +5 -9
  448. package/lib/rules/no-unresolved-refs.js.map +1 -0
  449. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +2 -1
  450. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +1 -0
  451. package/lib/rules/oas2/boolean-parameter-prefixes.js +2 -5
  452. package/lib/rules/oas2/boolean-parameter-prefixes.js.map +1 -0
  453. package/lib/rules/oas2/index.d.ts +2 -1
  454. package/lib/rules/oas2/index.d.ts.map +1 -0
  455. package/lib/rules/oas2/index.js +95 -97
  456. package/lib/rules/oas2/index.js.map +1 -0
  457. package/lib/rules/oas2/request-mime-type.d.ts +2 -1
  458. package/lib/rules/oas2/request-mime-type.d.ts.map +1 -0
  459. package/lib/rules/oas2/request-mime-type.js +5 -8
  460. package/lib/rules/oas2/request-mime-type.js.map +1 -0
  461. package/lib/rules/oas2/response-contains-property.d.ts +2 -1
  462. package/lib/rules/oas2/response-contains-property.d.ts.map +1 -0
  463. package/lib/rules/oas2/response-contains-property.js +5 -8
  464. package/lib/rules/oas2/response-contains-property.js.map +1 -0
  465. package/lib/rules/oas2/response-mime-type.d.ts +2 -1
  466. package/lib/rules/oas2/response-mime-type.d.ts.map +1 -0
  467. package/lib/rules/oas2/response-mime-type.js +5 -8
  468. package/lib/rules/oas2/response-mime-type.js.map +1 -0
  469. package/lib/rules/oas3/array-parameter-serialization.d.ts +2 -1
  470. package/lib/rules/oas3/array-parameter-serialization.d.ts.map +1 -0
  471. package/lib/rules/oas3/array-parameter-serialization.js +4 -7
  472. package/lib/rules/oas3/array-parameter-serialization.js.map +1 -0
  473. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +2 -1
  474. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +1 -0
  475. package/lib/rules/oas3/boolean-parameter-prefixes.js +2 -5
  476. package/lib/rules/oas3/boolean-parameter-prefixes.js.map +1 -0
  477. package/lib/rules/oas3/component-name-unique.d.ts +2 -1
  478. package/lib/rules/oas3/component-name-unique.d.ts.map +1 -0
  479. package/lib/rules/oas3/component-name-unique.js +2 -5
  480. package/lib/rules/oas3/component-name-unique.js.map +1 -0
  481. package/lib/rules/oas3/index.d.ts +2 -1
  482. package/lib/rules/oas3/index.d.ts.map +1 -0
  483. package/lib/rules/oas3/index.js +119 -121
  484. package/lib/rules/oas3/index.js.map +1 -0
  485. package/lib/rules/oas3/no-empty-servers.d.ts +2 -1
  486. package/lib/rules/oas3/no-empty-servers.d.ts.map +1 -0
  487. package/lib/rules/oas3/no-empty-servers.js +2 -5
  488. package/lib/rules/oas3/no-empty-servers.js.map +1 -0
  489. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +2 -1
  490. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +1 -0
  491. package/lib/rules/oas3/no-example-value-and-externalValue.js +2 -5
  492. package/lib/rules/oas3/no-example-value-and-externalValue.js.map +1 -0
  493. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +2 -1
  494. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +1 -0
  495. package/lib/rules/oas3/no-invalid-media-type-examples.js +7 -10
  496. package/lib/rules/oas3/no-invalid-media-type-examples.js.map +1 -0
  497. package/lib/rules/oas3/no-server-example.com.d.ts +2 -1
  498. package/lib/rules/oas3/no-server-example.com.d.ts.map +1 -0
  499. package/lib/rules/oas3/no-server-example.com.js +2 -5
  500. package/lib/rules/oas3/no-server-example.com.js.map +1 -0
  501. package/lib/rules/oas3/no-server-trailing-slash.d.ts +2 -1
  502. package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +1 -0
  503. package/lib/rules/oas3/no-server-trailing-slash.js +2 -5
  504. package/lib/rules/oas3/no-server-trailing-slash.js.map +1 -0
  505. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +2 -1
  506. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +1 -0
  507. package/lib/rules/oas3/no-server-variables-empty-enum.js +2 -5
  508. package/lib/rules/oas3/no-server-variables-empty-enum.js.map +1 -0
  509. package/lib/rules/oas3/no-undefined-server-variable.d.ts +2 -1
  510. package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +1 -0
  511. package/lib/rules/oas3/no-undefined-server-variable.js +2 -5
  512. package/lib/rules/oas3/no-undefined-server-variable.js.map +1 -0
  513. package/lib/rules/oas3/no-unused-components.d.ts +2 -1
  514. package/lib/rules/oas3/no-unused-components.d.ts.map +1 -0
  515. package/lib/rules/oas3/no-unused-components.js +2 -5
  516. package/lib/rules/oas3/no-unused-components.js.map +1 -0
  517. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +2 -1
  518. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +1 -0
  519. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +6 -9
  520. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +1 -0
  521. package/lib/rules/oas3/request-mime-type.d.ts +2 -1
  522. package/lib/rules/oas3/request-mime-type.d.ts.map +1 -0
  523. package/lib/rules/oas3/request-mime-type.js +6 -9
  524. package/lib/rules/oas3/request-mime-type.js.map +1 -0
  525. package/lib/rules/oas3/response-contains-property.d.ts +2 -1
  526. package/lib/rules/oas3/response-contains-property.d.ts.map +1 -0
  527. package/lib/rules/oas3/response-contains-property.js +5 -8
  528. package/lib/rules/oas3/response-contains-property.js.map +1 -0
  529. package/lib/rules/oas3/response-mime-type.d.ts +2 -1
  530. package/lib/rules/oas3/response-mime-type.d.ts.map +1 -0
  531. package/lib/rules/oas3/response-mime-type.js +6 -9
  532. package/lib/rules/oas3/response-mime-type.js.map +1 -0
  533. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +2 -1
  534. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +1 -0
  535. package/lib/rules/oas3/spec-components-invalid-map-name.js +2 -5
  536. package/lib/rules/oas3/spec-components-invalid-map-name.js.map +1 -0
  537. package/lib/rules/other/stats.d.ts +4 -3
  538. package/lib/rules/other/stats.d.ts.map +1 -0
  539. package/lib/rules/other/stats.js +2 -5
  540. package/lib/rules/other/stats.js.map +1 -0
  541. package/lib/rules/overlay1/index.d.ts +2 -1
  542. package/lib/rules/overlay1/index.d.ts.map +1 -0
  543. package/lib/rules/overlay1/index.js +9 -11
  544. package/lib/rules/overlay1/index.js.map +1 -0
  545. package/lib/rules/respect/no-criteria-xpath.d.ts +2 -1
  546. package/lib/rules/respect/no-criteria-xpath.d.ts.map +1 -0
  547. package/lib/rules/respect/no-criteria-xpath.js +2 -5
  548. package/lib/rules/respect/no-criteria-xpath.js.map +1 -0
  549. package/lib/rules/respect/respect-supported-versions.d.ts +2 -1
  550. package/lib/rules/respect/respect-supported-versions.d.ts.map +1 -0
  551. package/lib/rules/respect/respect-supported-versions.js +7 -10
  552. package/lib/rules/respect/respect-supported-versions.js.map +1 -0
  553. package/lib/rules/utils.d.ts +4 -3
  554. package/lib/rules/utils.d.ts.map +1 -0
  555. package/lib/rules/utils.js +23 -36
  556. package/lib/rules/utils.js.map +1 -0
  557. package/lib/types/arazzo.d.ts +2 -1
  558. package/lib/types/arazzo.d.ts.map +1 -0
  559. package/lib/types/arazzo.js +21 -23
  560. package/lib/types/arazzo.js.map +1 -0
  561. package/lib/types/asyncapi2.d.ts +2 -1
  562. package/lib/types/asyncapi2.d.ts.map +1 -0
  563. package/lib/types/asyncapi2.js +54 -56
  564. package/lib/types/asyncapi2.js.map +1 -0
  565. package/lib/types/asyncapi3.d.ts +2 -1
  566. package/lib/types/asyncapi3.d.ts.map +1 -0
  567. package/lib/types/asyncapi3.js +41 -43
  568. package/lib/types/asyncapi3.js.map +1 -0
  569. package/lib/types/index.d.ts +1 -0
  570. package/lib/types/index.d.ts.map +1 -0
  571. package/lib/types/index.js +7 -13
  572. package/lib/types/index.js.map +1 -0
  573. package/lib/types/json-schema-adapter.d.ts +2 -1
  574. package/lib/types/json-schema-adapter.d.ts.map +1 -0
  575. package/lib/types/json-schema-adapter.js +15 -17
  576. package/lib/types/json-schema-adapter.js.map +1 -0
  577. package/lib/types/oas2.d.ts +3 -2
  578. package/lib/types/oas2.d.ts.map +1 -0
  579. package/lib/types/oas2.js +17 -19
  580. package/lib/types/oas2.js.map +1 -0
  581. package/lib/types/oas3.d.ts +3 -2
  582. package/lib/types/oas3.d.ts.map +1 -0
  583. package/lib/types/oas3.js +39 -41
  584. package/lib/types/oas3.js.map +1 -0
  585. package/lib/types/oas3_1.d.ts +3 -2
  586. package/lib/types/oas3_1.d.ts.map +1 -0
  587. package/lib/types/oas3_1.js +18 -20
  588. package/lib/types/oas3_1.js.map +1 -0
  589. package/lib/types/overlay.d.ts +2 -1
  590. package/lib/types/overlay.d.ts.map +1 -0
  591. package/lib/types/overlay.js +4 -6
  592. package/lib/types/overlay.js.map +1 -0
  593. package/lib/types/redocly-yaml.d.ts +3 -2
  594. package/lib/types/redocly-yaml.d.ts.map +1 -0
  595. package/lib/types/redocly-yaml.js +29 -46
  596. package/lib/types/redocly-yaml.js.map +1 -0
  597. package/lib/typings/arazzo.d.ts +1 -0
  598. package/lib/typings/arazzo.d.ts.map +1 -0
  599. package/lib/typings/arazzo.js +3 -5
  600. package/lib/typings/arazzo.js.map +1 -0
  601. package/lib/typings/asyncapi.d.ts +1 -0
  602. package/lib/typings/asyncapi.d.ts.map +1 -0
  603. package/lib/typings/asyncapi.js +2 -2
  604. package/lib/typings/asyncapi.js.map +1 -0
  605. package/lib/typings/asyncapi3.d.ts +1 -0
  606. package/lib/typings/asyncapi3.d.ts.map +1 -0
  607. package/lib/typings/asyncapi3.js +2 -2
  608. package/lib/typings/asyncapi3.js.map +1 -0
  609. package/lib/typings/common.d.ts +1 -0
  610. package/lib/typings/common.d.ts.map +1 -0
  611. package/lib/typings/common.js +2 -2
  612. package/lib/typings/common.js.map +1 -0
  613. package/lib/typings/openapi.d.ts +1 -0
  614. package/lib/typings/openapi.d.ts.map +1 -0
  615. package/lib/typings/openapi.js +2 -2
  616. package/lib/typings/openapi.js.map +1 -0
  617. package/lib/typings/overlay.d.ts +1 -0
  618. package/lib/typings/overlay.d.ts.map +1 -0
  619. package/lib/typings/overlay.js +2 -4
  620. package/lib/typings/overlay.js.map +1 -0
  621. package/lib/typings/swagger.d.ts +2 -1
  622. package/lib/typings/swagger.d.ts.map +1 -0
  623. package/lib/typings/swagger.js +2 -2
  624. package/lib/typings/swagger.js.map +1 -0
  625. package/lib/utils.d.ts +4 -3
  626. package/lib/utils.d.ts.map +1 -0
  627. package/lib/utils.js +55 -97
  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 +26 -5
  638. package/lib/decorators/common/registry-dependencies.d.ts +0 -2
  639. package/lib/decorators/common/registry-dependencies.js +0 -24
  640. package/lib/redocly/domains.d.ts +0 -14
  641. package/lib/redocly/domains.js +0 -41
  642. package/lib/redocly/index.d.ts +0 -30
  643. package/lib/redocly/index.js +0 -131
  644. package/lib/redocly/redocly-client-types.d.ts +0 -8
  645. package/lib/redocly/redocly-client-types.js +0 -2
  646. package/lib/redocly/registry-api-types.d.ts +0 -29
  647. package/lib/redocly/registry-api-types.js +0 -2
  648. package/lib/redocly/registry-api.d.ts +0 -17
  649. package/lib/redocly/registry-api.js +0 -100
@@ -1,29 +1,22 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resolveConfigFileAndRefs = resolveConfigFileAndRefs;
4
- exports.resolveConfig = resolveConfig;
5
- exports.resolvePlugins = resolvePlugins;
6
- exports.resolveApis = resolveApis;
7
- exports.resolveStyleguideConfig = resolveStyleguideConfig;
8
- exports.resolvePreset = resolvePreset;
9
- const path = require("path");
10
- const url_1 = require("url");
11
- const fs_1 = require("fs");
12
- const ref_utils_1 = require("../ref-utils");
13
- const utils_1 = require("../utils");
14
- const resolve_1 = require("../resolve");
15
- const builtIn_1 = require("./builtIn");
16
- const utils_2 = require("./utils");
17
- const env_1 = require("../env");
18
- const config_1 = require("./config");
19
- const logger_1 = require("../logger");
20
- const asserts_1 = require("../rules/common/assertions/asserts");
21
- const types_1 = require("../types");
22
- const redocly_yaml_1 = require("../types/redocly-yaml");
1
+ import * as path from 'node:path';
2
+ import { pathToFileURL, fileURLToPath } from 'node:url';
3
+ import { existsSync } from 'node:fs';
4
+ import { createRequire } from 'node:module';
5
+ import { isAbsoluteUrl } from '../ref-utils.js';
6
+ import { pickDefined, isNotString, isString, isDefined, keysOf } from '../utils.js';
7
+ import { resolveDocument, BaseResolver } from '../resolve.js';
8
+ import { defaultPlugin } from './builtIn.js';
9
+ import { getResolveConfig, getUniquePlugins, isCommonJsPlugin, isDeprecatedPluginFormat, mergeExtends, parsePresetName, prefixRules, transformConfig, } from './utils.js';
10
+ import { isBrowser } from '../env.js';
11
+ import { Config } from './config.js';
12
+ import { colorize, logger } from '../logger.js';
13
+ import { asserts, buildAssertCustomFunction } from '../rules/common/assertions/asserts.js';
14
+ import { normalizeTypes } from '../types/index.js';
15
+ import { ConfigTypes } from '../types/redocly-yaml.js';
23
16
  const DEFAULT_PROJECT_PLUGIN_PATHS = ['@theme/plugin.js', '@theme/plugin.cjs', '@theme/plugin.mjs'];
24
17
  // Cache instantiated plugins during a single execution
25
18
  const pluginsCache = new Map();
26
- async function resolveConfigFileAndRefs({ configPath, externalRefResolver = new resolve_1.BaseResolver(), base = null, }) {
19
+ export async function resolveConfigFileAndRefs({ configPath, externalRefResolver = new BaseResolver(), base = null, }) {
27
20
  if (!configPath) {
28
21
  throw new Error('Reference to a config is required.\n');
29
22
  }
@@ -31,19 +24,19 @@ async function resolveConfigFileAndRefs({ configPath, externalRefResolver = new
31
24
  if (document instanceof Error) {
32
25
  throw document;
33
26
  }
34
- const types = (0, types_1.normalizeTypes)(redocly_yaml_1.ConfigTypes);
35
- const resolvedRefMap = await (0, resolve_1.resolveDocument)({
27
+ const types = normalizeTypes(ConfigTypes);
28
+ const resolvedRefMap = await resolveDocument({
36
29
  rootDocument: document,
37
30
  rootType: types.ConfigRoot,
38
31
  externalRefResolver,
39
32
  });
40
33
  return { document, resolvedRefMap };
41
34
  }
42
- async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
43
- if (rawConfig.styleguide?.extends?.some(utils_1.isNotString)) {
35
+ export async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
36
+ if (rawConfig.styleguide?.extends?.some(isNotString)) {
44
37
  throw new Error(`Error configuration format not detected in extends value must contain strings`);
45
38
  }
46
- const resolver = externalRefResolver ?? new resolve_1.BaseResolver((0, utils_2.getResolveConfig)(rawConfig.resolve));
39
+ const resolver = externalRefResolver ?? new BaseResolver(getResolveConfig(rawConfig.resolve));
47
40
  const apis = await resolveApis({
48
41
  rawConfig,
49
42
  configPath,
@@ -54,7 +47,7 @@ async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
54
47
  configPath,
55
48
  resolver,
56
49
  });
57
- return new config_1.Config({
50
+ return new Config({
58
51
  ...rawConfig,
59
52
  apis,
60
53
  styleguide,
@@ -63,55 +56,52 @@ async function resolveConfig({ rawConfig, configPath, externalRefResolver, }) {
63
56
  function getDefaultPluginPath(configDir) {
64
57
  for (const pluginPath of DEFAULT_PROJECT_PLUGIN_PATHS) {
65
58
  const absolutePluginPath = path.resolve(configDir, pluginPath);
66
- if ((0, fs_1.existsSync)(absolutePluginPath)) {
59
+ if (existsSync(absolutePluginPath)) {
67
60
  return pluginPath;
68
61
  }
69
62
  }
70
63
  return;
71
64
  }
72
- async function resolvePlugins(plugins, configDir = '') {
65
+ export async function resolvePlugins(plugins, configDir = '') {
73
66
  if (!plugins)
74
67
  return [];
75
68
  // TODO: implement or reuse Resolver approach so it will work in node and browser envs
76
69
  const requireFunc = async (plugin) => {
77
- if ((0, utils_1.isString)(plugin)) {
70
+ if (isString(plugin)) {
78
71
  try {
79
72
  const maybeAbsolutePluginPath = path.resolve(configDir, plugin);
80
- const absolutePluginPath = (0, fs_1.existsSync)(maybeAbsolutePluginPath)
73
+ const absolutePluginPath = existsSync(maybeAbsolutePluginPath)
81
74
  ? maybeAbsolutePluginPath
82
75
  : // For plugins imported from packages specifically
83
- require.resolve(plugin, {
76
+ createRequire(import.meta.url).resolve(plugin, {
84
77
  paths: [
85
78
  // Plugins imported from the node_modules in the project directory
86
79
  configDir,
87
80
  // Plugins imported from the node_modules in the package install directory (for example, npx cache directory)
88
- __dirname,
81
+ path.dirname(fileURLToPath(import.meta.url)),
89
82
  ],
90
83
  });
91
84
  if (!pluginsCache.has(absolutePluginPath)) {
92
85
  let requiredPlugin;
93
86
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
94
- // @ts-ignore
87
+ // @ts-ignore FIXME: remove?
95
88
  if (typeof __webpack_require__ === 'function') {
96
89
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
97
- // @ts-ignore
90
+ // @ts-ignore FIXME: remove?
98
91
  requiredPlugin = __non_webpack_require__(absolutePluginPath);
99
92
  }
100
93
  else {
101
- // Workaround for dynamic imports being transpiled to require by Typescript: https://github.com/microsoft/TypeScript/issues/43329#issuecomment-811606238
102
- const _importDynamic = new Function('modulePath', 'return import(modulePath)');
103
- // you can import both cjs and mjs
104
- const mod = await _importDynamic((0, url_1.pathToFileURL)(absolutePluginPath).href);
94
+ const mod = await import(pathToFileURL(absolutePluginPath).href);
105
95
  requiredPlugin = mod.default || mod;
106
96
  }
107
97
  const pluginCreatorOptions = { contentDir: configDir };
108
- const pluginModule = (0, utils_2.isDeprecatedPluginFormat)(requiredPlugin)
98
+ const pluginModule = isDeprecatedPluginFormat(requiredPlugin)
109
99
  ? requiredPlugin
110
- : (0, utils_2.isCommonJsPlugin)(requiredPlugin)
100
+ : isCommonJsPlugin(requiredPlugin)
111
101
  ? await requiredPlugin(pluginCreatorOptions)
112
102
  : await requiredPlugin?.default?.(pluginCreatorOptions);
113
- if (pluginModule?.id && (0, utils_2.isDeprecatedPluginFormat)(requiredPlugin)) {
114
- logger_1.logger.info(`Deprecated plugin format detected: ${pluginModule.id}\n`);
103
+ if (pluginModule?.id && isDeprecatedPluginFormat(requiredPlugin)) {
104
+ logger.info(`Deprecated plugin format detected: ${pluginModule.id}\n`);
115
105
  }
116
106
  if (pluginModule) {
117
107
  pluginsCache.set(absolutePluginPath, {
@@ -139,9 +129,9 @@ async function resolvePlugins(plugins, configDir = '') {
139
129
  }
140
130
  const resolvedPlugins = new Set();
141
131
  const instances = await Promise.all(plugins.map(async (p) => {
142
- if ((0, utils_1.isString)(p)) {
143
- if ((0, ref_utils_1.isAbsoluteUrl)(p)) {
144
- throw new Error(logger_1.colorize.red(`We don't support remote plugins yet.`));
132
+ if (isString(p)) {
133
+ if (isAbsoluteUrl(p)) {
134
+ throw new Error(colorize.red(`We don't support remote plugins yet.`));
145
135
  }
146
136
  if (resolvedPlugins.has(p)) {
147
137
  return;
@@ -154,11 +144,11 @@ async function resolvePlugins(plugins, configDir = '') {
154
144
  }
155
145
  const id = pluginModule.id;
156
146
  if (typeof id !== 'string') {
157
- throw new Error(logger_1.colorize.red(`Plugin must define \`id\` property in ${logger_1.colorize.blue(p.toString())}.`));
147
+ throw new Error(colorize.red(`Plugin must define \`id\` property in ${colorize.blue(p.toString())}.`));
158
148
  }
159
149
  if (seenPluginIds.has(id)) {
160
150
  const pluginPath = seenPluginIds.get(id);
161
- throw new Error(logger_1.colorize.red(`Plugin "id" must be unique. Plugin ${logger_1.colorize.blue(p.toString())} uses id "${logger_1.colorize.blue(id)}" already seen in ${logger_1.colorize.blue(pluginPath)}`));
151
+ throw new Error(colorize.red(`Plugin "id" must be unique. Plugin ${colorize.blue(p.toString())} uses id "${colorize.blue(id)}" already seen in ${colorize.blue(pluginPath)}`));
162
152
  }
163
153
  seenPluginIds.set(id, p.toString());
164
154
  const plugin = {
@@ -177,22 +167,22 @@ async function resolvePlugins(plugins, configDir = '') {
177
167
  }
178
168
  plugin.rules = {};
179
169
  if (pluginModule.rules.oas3) {
180
- plugin.rules.oas3 = (0, utils_2.prefixRules)(pluginModule.rules.oas3, id);
170
+ plugin.rules.oas3 = prefixRules(pluginModule.rules.oas3, id);
181
171
  }
182
172
  if (pluginModule.rules.oas2) {
183
- plugin.rules.oas2 = (0, utils_2.prefixRules)(pluginModule.rules.oas2, id);
173
+ plugin.rules.oas2 = prefixRules(pluginModule.rules.oas2, id);
184
174
  }
185
175
  if (pluginModule.rules.async2) {
186
- plugin.rules.async2 = (0, utils_2.prefixRules)(pluginModule.rules.async2, id);
176
+ plugin.rules.async2 = prefixRules(pluginModule.rules.async2, id);
187
177
  }
188
178
  if (pluginModule.rules.async3) {
189
- plugin.rules.async3 = (0, utils_2.prefixRules)(pluginModule.rules.async3, id);
179
+ plugin.rules.async3 = prefixRules(pluginModule.rules.async3, id);
190
180
  }
191
181
  if (pluginModule.rules.arazzo1) {
192
- plugin.rules.arazzo1 = (0, utils_2.prefixRules)(pluginModule.rules.arazzo1, id);
182
+ plugin.rules.arazzo1 = prefixRules(pluginModule.rules.arazzo1, id);
193
183
  }
194
184
  if (pluginModule.rules.overlay1) {
195
- plugin.rules.overlay1 = (0, utils_2.prefixRules)(pluginModule.rules.overlay1, id);
185
+ plugin.rules.overlay1 = prefixRules(pluginModule.rules.overlay1, id);
196
186
  }
197
187
  }
198
188
  if (pluginModule.preprocessors) {
@@ -206,22 +196,22 @@ async function resolvePlugins(plugins, configDir = '') {
206
196
  }
207
197
  plugin.preprocessors = {};
208
198
  if (pluginModule.preprocessors.oas3) {
209
- plugin.preprocessors.oas3 = (0, utils_2.prefixRules)(pluginModule.preprocessors.oas3, id);
199
+ plugin.preprocessors.oas3 = prefixRules(pluginModule.preprocessors.oas3, id);
210
200
  }
211
201
  if (pluginModule.preprocessors.oas2) {
212
- plugin.preprocessors.oas2 = (0, utils_2.prefixRules)(pluginModule.preprocessors.oas2, id);
202
+ plugin.preprocessors.oas2 = prefixRules(pluginModule.preprocessors.oas2, id);
213
203
  }
214
204
  if (pluginModule.preprocessors.async2) {
215
- plugin.preprocessors.async2 = (0, utils_2.prefixRules)(pluginModule.preprocessors.async2, id);
205
+ plugin.preprocessors.async2 = prefixRules(pluginModule.preprocessors.async2, id);
216
206
  }
217
207
  if (pluginModule.preprocessors.async3) {
218
- plugin.preprocessors.async3 = (0, utils_2.prefixRules)(pluginModule.preprocessors.async3, id);
208
+ plugin.preprocessors.async3 = prefixRules(pluginModule.preprocessors.async3, id);
219
209
  }
220
210
  if (pluginModule.preprocessors.arazzo1) {
221
- plugin.preprocessors.arazzo1 = (0, utils_2.prefixRules)(pluginModule.preprocessors.arazzo1, id);
211
+ plugin.preprocessors.arazzo1 = prefixRules(pluginModule.preprocessors.arazzo1, id);
222
212
  }
223
213
  if (pluginModule.preprocessors.overlay1) {
224
- plugin.preprocessors.overlay1 = (0, utils_2.prefixRules)(pluginModule.preprocessors.overlay1, id);
214
+ plugin.preprocessors.overlay1 = prefixRules(pluginModule.preprocessors.overlay1, id);
225
215
  }
226
216
  }
227
217
  if (pluginModule.decorators) {
@@ -235,22 +225,22 @@ async function resolvePlugins(plugins, configDir = '') {
235
225
  }
236
226
  plugin.decorators = {};
237
227
  if (pluginModule.decorators.oas3) {
238
- plugin.decorators.oas3 = (0, utils_2.prefixRules)(pluginModule.decorators.oas3, id);
228
+ plugin.decorators.oas3 = prefixRules(pluginModule.decorators.oas3, id);
239
229
  }
240
230
  if (pluginModule.decorators.oas2) {
241
- plugin.decorators.oas2 = (0, utils_2.prefixRules)(pluginModule.decorators.oas2, id);
231
+ plugin.decorators.oas2 = prefixRules(pluginModule.decorators.oas2, id);
242
232
  }
243
233
  if (pluginModule.decorators.async2) {
244
- plugin.decorators.async2 = (0, utils_2.prefixRules)(pluginModule.decorators.async2, id);
234
+ plugin.decorators.async2 = prefixRules(pluginModule.decorators.async2, id);
245
235
  }
246
236
  if (pluginModule.decorators.async3) {
247
- plugin.decorators.async3 = (0, utils_2.prefixRules)(pluginModule.decorators.async3, id);
237
+ plugin.decorators.async3 = prefixRules(pluginModule.decorators.async3, id);
248
238
  }
249
239
  if (pluginModule.decorators.arazzo1) {
250
- plugin.decorators.arazzo1 = (0, utils_2.prefixRules)(pluginModule.decorators.arazzo1, id);
240
+ plugin.decorators.arazzo1 = prefixRules(pluginModule.decorators.arazzo1, id);
251
241
  }
252
242
  if (pluginModule.decorators.overlay1) {
253
- plugin.decorators.overlay1 = (0, utils_2.prefixRules)(pluginModule.decorators.overlay1, id);
243
+ plugin.decorators.overlay1 = prefixRules(pluginModule.decorators.overlay1, id);
254
244
  }
255
245
  }
256
246
  if (pluginModule.assertions) {
@@ -261,13 +251,13 @@ async function resolvePlugins(plugins, configDir = '') {
261
251
  ...plugin,
262
252
  };
263
253
  }));
264
- return instances.filter(utils_1.isDefined);
254
+ return instances.filter(isDefined);
265
255
  }
266
- async function resolveApis({ rawConfig, configPath = '', resolver, }) {
256
+ export async function resolveApis({ rawConfig, configPath = '', resolver, }) {
267
257
  const { apis = {}, styleguide: styleguideConfig = {} } = rawConfig;
268
258
  const resolvedApis = {};
269
259
  for (const [apiName, apiContent] of Object.entries(apis || {})) {
270
- if (apiContent.styleguide?.extends?.some(utils_1.isNotString)) {
260
+ if (apiContent.styleguide?.extends?.some(isNotString)) {
271
261
  throw new Error(`Error configuration format not detected in extends value must contain strings`);
272
262
  }
273
263
  const rawStyleguideConfig = getMergedRawStyleguideConfig(styleguideConfig, apiContent.styleguide);
@@ -280,27 +270,27 @@ async function resolveApis({ rawConfig, configPath = '', resolver, }) {
280
270
  }
281
271
  return resolvedApis;
282
272
  }
283
- async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configPath = '', resolver = new resolve_1.BaseResolver(), parentConfigPaths = [], extendPaths = [], }) {
273
+ async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configPath = '', resolver = new BaseResolver(), parentConfigPaths = [], extendPaths = [], }) {
284
274
  if (parentConfigPaths.includes(configPath)) {
285
275
  throw new Error(`Circular dependency in config file: "${configPath}"`);
286
276
  }
287
- const plugins = env_1.isBrowser
277
+ const plugins = isBrowser
288
278
  ? // In browser, we don't support plugins from config file yet
289
- [builtIn_1.defaultPlugin]
290
- : (0, utils_2.getUniquePlugins)(await resolvePlugins([...(styleguideConfig?.plugins || []), builtIn_1.defaultPlugin], path.dirname(configPath)));
279
+ [defaultPlugin]
280
+ : getUniquePlugins(await resolvePlugins([...(styleguideConfig?.plugins || []), defaultPlugin], path.dirname(configPath)));
291
281
  const pluginPaths = styleguideConfig?.plugins
292
- ?.filter(utils_1.isString)
282
+ ?.filter(isString)
293
283
  .map((p) => path.resolve(path.dirname(configPath), p));
294
- const resolvedConfigPath = (0, ref_utils_1.isAbsoluteUrl)(configPath)
284
+ const resolvedConfigPath = isAbsoluteUrl(configPath)
295
285
  ? configPath
296
286
  : configPath && path.resolve(configPath);
297
287
  const extendConfigs = await Promise.all(styleguideConfig?.extends?.map(async (presetItem) => {
298
- if (!(0, ref_utils_1.isAbsoluteUrl)(presetItem) && !path.extname(presetItem)) {
288
+ if (!isAbsoluteUrl(presetItem) && !path.extname(presetItem)) {
299
289
  return resolvePreset(presetItem, plugins);
300
290
  }
301
- const pathItem = (0, ref_utils_1.isAbsoluteUrl)(presetItem)
291
+ const pathItem = isAbsoluteUrl(presetItem)
302
292
  ? presetItem
303
- : (0, ref_utils_1.isAbsoluteUrl)(configPath)
293
+ : isAbsoluteUrl(configPath)
304
294
  ? new URL(presetItem, configPath).href
305
295
  : path.resolve(path.dirname(configPath), presetItem);
306
296
  const extendedStyleguideConfig = await loadExtendStyleguideConfig(pathItem, resolver);
@@ -312,7 +302,7 @@ async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configP
312
302
  extendPaths,
313
303
  });
314
304
  }) || []);
315
- const { plugins: mergedPlugins = [], ...styleguide } = (0, utils_2.mergeExtends)([
305
+ const { plugins: mergedPlugins = [], ...styleguide } = mergeExtends([
316
306
  ...extendConfigs,
317
307
  {
318
308
  ...styleguideConfig,
@@ -324,37 +314,37 @@ async function resolveAndMergeNestedStyleguideConfig({ styleguideConfig, configP
324
314
  ]);
325
315
  return {
326
316
  ...styleguide,
327
- extendPaths: styleguide.extendPaths?.filter((path) => path && !(0, ref_utils_1.isAbsoluteUrl)(path)),
328
- plugins: (0, utils_2.getUniquePlugins)(mergedPlugins),
317
+ extendPaths: styleguide.extendPaths?.filter((path) => path && !isAbsoluteUrl(path)),
318
+ plugins: getUniquePlugins(mergedPlugins),
329
319
  recommendedFallback: styleguideConfig?.recommendedFallback,
330
320
  doNotResolveExamples: styleguideConfig?.doNotResolveExamples,
331
321
  };
332
322
  }
333
- async function resolveStyleguideConfig(opts) {
323
+ export async function resolveStyleguideConfig(opts) {
334
324
  const resolvedStyleguideConfig = await resolveAndMergeNestedStyleguideConfig(opts);
335
325
  return {
336
326
  ...resolvedStyleguideConfig,
337
327
  rules: resolvedStyleguideConfig.rules && groupStyleguideAssertionRules(resolvedStyleguideConfig),
338
328
  };
339
329
  }
340
- function resolvePreset(presetName, plugins) {
341
- const { pluginId, configName } = (0, utils_2.parsePresetName)(presetName);
330
+ export function resolvePreset(presetName, plugins) {
331
+ const { pluginId, configName } = parsePresetName(presetName);
342
332
  const plugin = plugins.find((p) => p.id === pluginId);
343
333
  if (!plugin) {
344
- throw new Error(`Invalid config ${logger_1.colorize.red(presetName)}: plugin ${pluginId} is not included.`);
334
+ throw new Error(`Invalid config ${colorize.red(presetName)}: plugin ${pluginId} is not included.`);
345
335
  }
346
336
  const preset = plugin.configs?.[configName];
347
337
  if (!preset) {
348
338
  throw new Error(pluginId
349
- ? `Invalid config ${logger_1.colorize.red(presetName)}: plugin ${pluginId} doesn't export config with name ${configName}.`
350
- : `Invalid config ${logger_1.colorize.red(presetName)}: there is no such built-in config.`);
339
+ ? `Invalid config ${colorize.red(presetName)}: plugin ${pluginId} doesn't export config with name ${configName}.`
340
+ : `Invalid config ${colorize.red(presetName)}: there is no such built-in config.`);
351
341
  }
352
342
  return preset;
353
343
  }
354
344
  async function loadExtendStyleguideConfig(filePath, resolver) {
355
345
  try {
356
346
  const { parsed } = (await resolver.resolveDocument(null, filePath));
357
- const rawConfig = (0, utils_2.transformConfig)(parsed);
347
+ const rawConfig = transformConfig(parsed);
358
348
  if (!rawConfig.styleguide) {
359
349
  throw new Error(`Styleguide configuration format not detected: "${filePath}"`);
360
350
  }
@@ -367,7 +357,7 @@ async function loadExtendStyleguideConfig(filePath, resolver) {
367
357
  function getMergedRawStyleguideConfig(rootStyleguideConfig, apiStyleguideConfig) {
368
358
  const resultLint = {
369
359
  ...rootStyleguideConfig,
370
- ...(0, utils_1.pickDefined)(apiStyleguideConfig),
360
+ ...pickDefined(apiStyleguideConfig),
371
361
  rules: { ...rootStyleguideConfig?.rules, ...apiStyleguideConfig?.rules },
372
362
  oas2Rules: { ...rootStyleguideConfig?.oas2Rules, ...apiStyleguideConfig?.oas2Rules },
373
363
  oas3_0Rules: { ...rootStyleguideConfig?.oas3_0Rules, ...apiStyleguideConfig?.oas3_0Rules },
@@ -459,17 +449,18 @@ function groupStyleguideAssertionRules({ rules, plugins, }) {
459
449
  return transformedRules;
460
450
  }
461
451
  function registerCustomAssertions(plugins, assertion) {
462
- for (const field of (0, utils_1.keysOf)(assertion.assertions)) {
452
+ for (const field of keysOf(assertion.assertions)) {
463
453
  const [pluginId, fn] = field.split('/');
464
454
  if (!pluginId || !fn)
465
455
  continue;
466
456
  const plugin = plugins.find((plugin) => plugin.id === pluginId);
467
457
  if (!plugin) {
468
- throw Error(logger_1.colorize.red(`Plugin ${logger_1.colorize.blue(pluginId)} isn't found.`));
458
+ throw Error(colorize.red(`Plugin ${colorize.blue(pluginId)} isn't found.`));
469
459
  }
470
460
  if (!plugin.assertions || !plugin.assertions[fn]) {
471
- throw Error(`Plugin ${logger_1.colorize.red(pluginId)} doesn't export assertions function with name ${logger_1.colorize.red(fn)}.`);
461
+ throw Error(`Plugin ${colorize.red(pluginId)} doesn't export assertions function with name ${colorize.red(fn)}.`);
472
462
  }
473
- asserts_1.asserts[field] = (0, asserts_1.buildAssertCustomFunction)(plugin.assertions[fn]);
463
+ asserts[field] = buildAssertCustomFunction(plugin.assertions[fn]);
474
464
  }
475
465
  }
466
+ //# sourceMappingURL=config-resolvers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config-resolvers.js","sourceRoot":"","sources":["../../src/config/config-resolvers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,eAAe,EACf,WAAW,EACX,eAAe,GAChB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;A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AAgB,CAAC;AAC1B,CAAC;AAED,SAAS,wBAAwB,CAAC,OAAiB,EAAE,SAA8B;IACjF,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,EAAE,CAAC;QACjD,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QAExC,IAAI,CAAC,QAAQ,IAAI,CAAC,EAAE;YAAE,SAAS;QAE/B,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,KAAK,QAAQ,CAAC,CAAC;QAEhE,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAU,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;QAC9E,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,UAAU,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC;YACjD,MAAM,KAAK,CACT,UAAU,QAAQ,CAAC,GAAG,CACpB,QAAQ,CACT,iDAAiD,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CACtE,CAAC;QACJ,CAAC;QAEA,OAAqD,CAAC,KAAK,CAAC,GAAG,yBAAyB,CACvF,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CACtB,CAAC;IACJ,CAAC;AACH,CAAC"}
@@ -1,8 +1,8 @@
1
- import { SpecVersion, SpecMajorVersion } from '../oas-types';
2
- import type { NormalizedProblem } from '../walk';
3
- import type { Oas2RuleSet, Oas3RuleSet, Async3RuleSet, Arazzo1RuleSet, Overlay1RuleSet } from '../oas-types';
4
- import type { NodeType } from '../types';
5
- import type { DecoratorConfig, Plugin, PreprocessorConfig, Region, ResolveConfig, ResolvedApi, ResolvedConfig, ResolvedStyleguideConfig, RuleConfig, RuleSettings, Telemetry, ThemeRawConfig } from './types';
1
+ import { SpecVersion, SpecMajorVersion } from '../oas-types.js';
2
+ import type { NormalizedProblem } from '../walk.js';
3
+ import type { Oas2RuleSet, Oas3RuleSet, Async3RuleSet, Arazzo1RuleSet, Overlay1RuleSet } from '../oas-types.js';
4
+ import type { NodeType } from '../types/index.js';
5
+ import type { DecoratorConfig, Plugin, PreprocessorConfig, ResolveConfig, ResolvedApi, ResolvedConfig, ResolvedStyleguideConfig, RuleConfig, RuleSettings, Telemetry, ThemeRawConfig } from './types.js';
6
6
  export declare const IGNORE_FILE = ".redocly.lint-ignore.yaml";
7
7
  export declare class StyleguideConfig {
8
8
  rawConfig: ResolvedStyleguideConfig;
@@ -44,10 +44,8 @@ export declare class Config {
44
44
  styleguide: StyleguideConfig;
45
45
  resolve: ResolveConfig;
46
46
  licenseKey?: string;
47
- region?: Region;
48
47
  theme: ThemeRawConfig;
49
- organization?: string;
50
- files: string[];
51
48
  telemetry?: Telemetry;
52
49
  constructor(rawConfig: ResolvedConfig, configFile?: string | undefined);
53
50
  }
51
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/config/config.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAKhE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,KAAK,EACV,WAAW,EACX,WAAW,EAEX,aAAa,EACb,cAAc,EACd,eAAe,EAChB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,EACV,eAAe,EACf,MAAM,EACN,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,cAAc,EACd,wBAAwB,EACxB,UAAU,EACV,YAAY,EACZ,SAAS,EACT,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB,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