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

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