@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,124 +1,119 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.preprocessors = exports.rules = void 0;
4
- const struct_1 = require("../common/struct");
5
- const operation_2xx_response_1 = require("../common/operation-2xx-response");
6
- const operation_4xx_response_1 = require("../common/operation-4xx-response");
7
- const assertions_1 = require("../common/assertions");
8
- const operation_operationId_unique_1 = require("../common/operation-operationId-unique");
9
- const operation_parameters_unique_1 = require("../common/operation-parameters-unique");
10
- const path_params_defined_1 = require("../common/path-params-defined");
11
- const operation_tag_defined_1 = require("../common/operation-tag-defined");
12
- const no_example_value_and_externalValue_1 = require("./no-example-value-and-externalValue");
13
- const no_enum_type_mismatch_1 = require("../common/no-enum-type-mismatch");
14
- const no_path_trailing_slash_1 = require("../common/no-path-trailing-slash");
15
- const path_declaration_must_exist_1 = require("../common/path-declaration-must-exist");
16
- const operation_operationId_url_safe_1 = require("../common/operation-operationId-url-safe");
17
- const tags_alphabetical_1 = require("../common/tags-alphabetical");
18
- const no_server_example_com_1 = require("./no-server-example.com");
19
- const no_server_trailing_slash_1 = require("./no-server-trailing-slash");
20
- const tag_description_1 = require("../common/tag-description");
21
- const info_contact_1 = require("../common/info-contact");
22
- const info_license_1 = require("../common/info-license");
23
- const info_license_url_1 = require("../common/info-license-url");
24
- const info_license_strict_1 = require("../common/info-license-strict");
25
- const operation_description_1 = require("../common/operation-description");
26
- const no_unused_components_1 = require("./no-unused-components");
27
- const path_not_include_query_1 = require("../common/path-not-include-query");
28
- const parameter_description_1 = require("../common/parameter-description");
29
- const operation_singular_tag_1 = require("../common/operation-singular-tag");
30
- const security_defined_1 = require("../common/security-defined");
31
- const no_unresolved_refs_1 = require("../no-unresolved-refs");
32
- const boolean_parameter_prefixes_1 = require("./boolean-parameter-prefixes");
33
- const paths_kebab_case_1 = require("../common/paths-kebab-case");
34
- const path_http_verbs_order_1 = require("../common/path-http-verbs-order");
35
- const no_empty_servers_1 = require("./no-empty-servers");
36
- const no_invalid_media_type_examples_1 = require("./no-invalid-media-type-examples");
37
- const no_identical_paths_1 = require("../common/no-identical-paths");
38
- const no_undefined_server_variable_1 = require("./no-undefined-server-variable");
39
- const operation_operationId_1 = require("../common/operation-operationId");
40
- const operation_summary_1 = require("../common/operation-summary");
41
- const no_ambiguous_paths_1 = require("../common/no-ambiguous-paths");
42
- const no_server_variables_empty_enum_1 = require("./no-server-variables-empty-enum");
43
- const no_http_verbs_in_paths_1 = require("../common/no-http-verbs-in-paths");
44
- const request_mime_type_1 = require("./request-mime-type");
45
- const response_mime_type_1 = require("./response-mime-type");
46
- const path_segment_plural_1 = require("../common/path-segment-plural");
47
- const path_excludes_patterns_1 = require("../common/path-excludes-patterns");
48
- const no_invalid_schema_examples_1 = require("../common/no-invalid-schema-examples");
49
- const no_invalid_parameter_examples_1 = require("../common/no-invalid-parameter-examples");
50
- const response_contains_header_1 = require("../common/response-contains-header");
51
- const response_contains_property_1 = require("./response-contains-property");
52
- const scalar_property_missing_example_1 = require("../common/scalar-property-missing-example");
53
- const spec_components_invalid_map_name_1 = require("./spec-components-invalid-map-name");
54
- const operation_4xx_problem_details_rfc7807_1 = require("./operation-4xx-problem-details-rfc7807");
55
- const required_string_property_missing_min_length_1 = require("../common/required-string-property-missing-min-length");
56
- const spec_strict_refs_1 = require("../common/spec-strict-refs");
57
- const component_name_unique_1 = require("./component-name-unique");
58
- const array_parameter_serialization_1 = require("./array-parameter-serialization");
59
- const no_required_schema_properties_undefined_1 = require("../common/no-required-schema-properties-undefined");
60
- const no_schema_type_mismatch_1 = require("../common/no-schema-type-mismatch");
61
- exports.rules = {
62
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
63
- //@ts-ignore TODO: This is depricated property `spec` and should be removed in the future
64
- spec: struct_1.Struct,
65
- struct: struct_1.Struct,
66
- 'info-contact': info_contact_1.InfoContact,
67
- 'info-license': info_license_1.InfoLicense,
68
- 'info-license-url': info_license_url_1.InfoLicenseUrl,
69
- 'info-license-strict': info_license_strict_1.InfoLicenseStrict,
70
- 'operation-2xx-response': operation_2xx_response_1.Operation2xxResponse,
71
- 'operation-4xx-response': operation_4xx_response_1.Operation4xxResponse,
72
- 'operation-4xx-problem-details-rfc7807': operation_4xx_problem_details_rfc7807_1.Operation4xxProblemDetailsRfc7807,
73
- assertions: assertions_1.Assertions,
74
- 'operation-operationId-unique': operation_operationId_unique_1.OperationIdUnique,
75
- 'operation-parameters-unique': operation_parameters_unique_1.OperationParametersUnique,
76
- 'operation-tag-defined': operation_tag_defined_1.OperationTagDefined,
77
- 'no-example-value-and-externalValue': no_example_value_and_externalValue_1.NoExampleValueAndExternalValue,
78
- 'no-enum-type-mismatch': no_enum_type_mismatch_1.NoEnumTypeMismatch,
79
- 'no-path-trailing-slash': no_path_trailing_slash_1.NoPathTrailingSlash,
80
- 'no-empty-servers': no_empty_servers_1.NoEmptyServers,
81
- 'path-declaration-must-exist': path_declaration_must_exist_1.PathDeclarationMustExist,
82
- 'operation-operationId-url-safe': operation_operationId_url_safe_1.OperationIdUrlSafe,
83
- 'operation-operationId': operation_operationId_1.OperationOperationId,
84
- 'operation-summary': operation_summary_1.OperationSummary,
85
- 'tags-alphabetical': tags_alphabetical_1.TagsAlphabetical,
86
- 'no-server-example.com': no_server_example_com_1.NoServerExample,
87
- 'no-server-trailing-slash': no_server_trailing_slash_1.NoServerTrailingSlash,
88
- 'tag-description': tag_description_1.TagDescription,
89
- 'operation-description': operation_description_1.OperationDescription,
90
- 'no-unused-components': no_unused_components_1.NoUnusedComponents,
91
- 'path-not-include-query': path_not_include_query_1.PathNotIncludeQuery,
92
- 'path-parameters-defined': path_params_defined_1.PathParamsDefined,
93
- 'path-params-defined': path_params_defined_1.PathParamsDefined,
94
- 'parameter-description': parameter_description_1.ParameterDescription,
95
- 'operation-singular-tag': operation_singular_tag_1.OperationSingularTag,
96
- 'security-defined': security_defined_1.SecurityDefined,
97
- 'no-unresolved-refs': no_unresolved_refs_1.NoUnresolvedRefs,
98
- 'paths-kebab-case': paths_kebab_case_1.PathsKebabCase,
99
- 'boolean-parameter-prefixes': boolean_parameter_prefixes_1.BooleanParameterPrefixes,
100
- 'path-http-verbs-order': path_http_verbs_order_1.PathHttpVerbsOrder,
101
- 'no-invalid-media-type-examples': no_invalid_media_type_examples_1.ValidContentExamples,
102
- 'no-identical-paths': no_identical_paths_1.NoIdenticalPaths,
103
- 'no-ambiguous-paths': no_ambiguous_paths_1.NoAmbiguousPaths,
104
- 'no-undefined-server-variable': no_undefined_server_variable_1.NoUndefinedServerVariable,
105
- 'no-server-variables-empty-enum': no_server_variables_empty_enum_1.NoServerVariablesEmptyEnum,
106
- 'no-http-verbs-in-paths': no_http_verbs_in_paths_1.NoHttpVerbsInPaths,
107
- 'path-excludes-patterns': path_excludes_patterns_1.PathExcludesPatterns,
108
- 'request-mime-type': request_mime_type_1.RequestMimeType,
109
- 'response-mime-type': response_mime_type_1.ResponseMimeType,
110
- 'path-segment-plural': path_segment_plural_1.PathSegmentPlural,
111
- 'no-invalid-schema-examples': no_invalid_schema_examples_1.NoInvalidSchemaExamples,
112
- 'no-invalid-parameter-examples': no_invalid_parameter_examples_1.NoInvalidParameterExamples,
113
- 'response-contains-header': response_contains_header_1.ResponseContainsHeader,
114
- 'response-contains-property': response_contains_property_1.ResponseContainsProperty,
115
- 'scalar-property-missing-example': scalar_property_missing_example_1.ScalarPropertyMissingExample,
116
- 'spec-components-invalid-map-name': spec_components_invalid_map_name_1.SpecComponentsInvalidMapName,
117
- 'required-string-property-missing-min-length': required_string_property_missing_min_length_1.RequiredStringPropertyMissingMinLength,
118
- 'spec-strict-refs': spec_strict_refs_1.SpecStrictRefs,
119
- 'component-name-unique': component_name_unique_1.ComponentNameUnique,
120
- 'array-parameter-serialization': array_parameter_serialization_1.ArrayParameterSerialization,
121
- 'no-required-schema-properties-undefined': no_required_schema_properties_undefined_1.NoRequiredSchemaPropertiesUndefined,
122
- 'no-schema-type-mismatch': no_schema_type_mismatch_1.NoSchemaTypeMismatch,
1
+ import { Struct } from '../common/struct.js';
2
+ import { Operation2xxResponse } from '../common/operation-2xx-response.js';
3
+ import { Operation4xxResponse } from '../common/operation-4xx-response.js';
4
+ import { Assertions } from '../common/assertions/index.js';
5
+ import { OperationIdUnique } from '../common/operation-operationId-unique.js';
6
+ import { OperationParametersUnique } from '../common/operation-parameters-unique.js';
7
+ import { PathParamsDefined } from '../common/path-params-defined.js';
8
+ import { OperationTagDefined } from '../common/operation-tag-defined.js';
9
+ import { NoExampleValueAndExternalValue } from './no-example-value-and-externalValue.js';
10
+ import { NoEnumTypeMismatch } from '../common/no-enum-type-mismatch.js';
11
+ import { NoPathTrailingSlash } from '../common/no-path-trailing-slash.js';
12
+ import { PathDeclarationMustExist } from '../common/path-declaration-must-exist.js';
13
+ import { OperationIdUrlSafe } from '../common/operation-operationId-url-safe.js';
14
+ import { TagsAlphabetical } from '../common/tags-alphabetical.js';
15
+ import { NoServerExample } from './no-server-example.com.js';
16
+ import { NoServerTrailingSlash } from './no-server-trailing-slash.js';
17
+ import { TagDescription } from '../common/tag-description.js';
18
+ import { InfoContact } from '../common/info-contact.js';
19
+ import { InfoLicense } from '../common/info-license.js';
20
+ import { InfoLicenseUrl } from '../common/info-license-url.js';
21
+ import { InfoLicenseStrict } from '../common/info-license-strict.js';
22
+ import { OperationDescription } from '../common/operation-description.js';
23
+ import { NoUnusedComponents } from './no-unused-components.js';
24
+ import { PathNotIncludeQuery } from '../common/path-not-include-query.js';
25
+ import { ParameterDescription } from '../common/parameter-description.js';
26
+ import { OperationSingularTag } from '../common/operation-singular-tag.js';
27
+ import { SecurityDefined } from '../common/security-defined.js';
28
+ import { NoUnresolvedRefs } from '../no-unresolved-refs.js';
29
+ import { BooleanParameterPrefixes } from './boolean-parameter-prefixes.js';
30
+ import { PathsKebabCase } from '../common/paths-kebab-case.js';
31
+ import { PathHttpVerbsOrder } from '../common/path-http-verbs-order.js';
32
+ import { NoEmptyServers } from './no-empty-servers.js';
33
+ import { ValidContentExamples } from './no-invalid-media-type-examples.js';
34
+ import { NoIdenticalPaths } from '../common/no-identical-paths.js';
35
+ import { NoUndefinedServerVariable } from './no-undefined-server-variable.js';
36
+ import { OperationOperationId } from '../common/operation-operationId.js';
37
+ import { OperationSummary } from '../common/operation-summary.js';
38
+ import { NoAmbiguousPaths } from '../common/no-ambiguous-paths.js';
39
+ import { NoServerVariablesEmptyEnum } from './no-server-variables-empty-enum.js';
40
+ import { NoHttpVerbsInPaths } from '../common/no-http-verbs-in-paths.js';
41
+ import { RequestMimeType } from './request-mime-type.js';
42
+ import { ResponseMimeType } from './response-mime-type.js';
43
+ import { PathSegmentPlural } from '../common/path-segment-plural.js';
44
+ import { PathExcludesPatterns } from '../common/path-excludes-patterns.js';
45
+ import { NoInvalidSchemaExamples } from '../common/no-invalid-schema-examples.js';
46
+ import { NoInvalidParameterExamples } from '../common/no-invalid-parameter-examples.js';
47
+ import { ResponseContainsHeader } from '../common/response-contains-header.js';
48
+ import { ResponseContainsProperty } from './response-contains-property.js';
49
+ import { ScalarPropertyMissingExample } from '../common/scalar-property-missing-example.js';
50
+ import { SpecComponentsInvalidMapName } from './spec-components-invalid-map-name.js';
51
+ import { Operation4xxProblemDetailsRfc7807 } from './operation-4xx-problem-details-rfc7807.js';
52
+ import { RequiredStringPropertyMissingMinLength } from '../common/required-string-property-missing-min-length.js';
53
+ import { SpecStrictRefs } from '../common/spec-strict-refs.js';
54
+ import { ComponentNameUnique } from './component-name-unique.js';
55
+ import { ArrayParameterSerialization } from './array-parameter-serialization.js';
56
+ import { NoRequiredSchemaPropertiesUndefined } from '../common/no-required-schema-properties-undefined.js';
57
+ import { NoSchemaTypeMismatch } from '../common/no-schema-type-mismatch.js';
58
+ export const rules = {
59
+ struct: Struct,
60
+ 'info-contact': InfoContact,
61
+ 'info-license': InfoLicense,
62
+ 'info-license-url': InfoLicenseUrl,
63
+ 'info-license-strict': InfoLicenseStrict,
64
+ 'operation-2xx-response': Operation2xxResponse,
65
+ 'operation-4xx-response': Operation4xxResponse,
66
+ 'operation-4xx-problem-details-rfc7807': Operation4xxProblemDetailsRfc7807,
67
+ assertions: Assertions,
68
+ 'operation-operationId-unique': OperationIdUnique,
69
+ 'operation-parameters-unique': OperationParametersUnique,
70
+ 'operation-tag-defined': OperationTagDefined,
71
+ 'no-example-value-and-externalValue': NoExampleValueAndExternalValue,
72
+ 'no-enum-type-mismatch': NoEnumTypeMismatch,
73
+ 'no-path-trailing-slash': NoPathTrailingSlash,
74
+ 'no-empty-servers': NoEmptyServers,
75
+ 'path-declaration-must-exist': PathDeclarationMustExist,
76
+ 'operation-operationId-url-safe': OperationIdUrlSafe,
77
+ 'operation-operationId': OperationOperationId,
78
+ 'operation-summary': OperationSummary,
79
+ 'tags-alphabetical': TagsAlphabetical,
80
+ 'no-server-example.com': NoServerExample,
81
+ 'no-server-trailing-slash': NoServerTrailingSlash,
82
+ 'tag-description': TagDescription,
83
+ 'operation-description': OperationDescription,
84
+ 'no-unused-components': NoUnusedComponents,
85
+ 'path-not-include-query': PathNotIncludeQuery,
86
+ 'path-parameters-defined': PathParamsDefined,
87
+ 'path-params-defined': PathParamsDefined,
88
+ 'parameter-description': ParameterDescription,
89
+ 'operation-singular-tag': OperationSingularTag,
90
+ 'security-defined': SecurityDefined,
91
+ 'no-unresolved-refs': NoUnresolvedRefs,
92
+ 'paths-kebab-case': PathsKebabCase,
93
+ 'boolean-parameter-prefixes': BooleanParameterPrefixes,
94
+ 'path-http-verbs-order': PathHttpVerbsOrder,
95
+ 'no-invalid-media-type-examples': ValidContentExamples,
96
+ 'no-identical-paths': NoIdenticalPaths,
97
+ 'no-ambiguous-paths': NoAmbiguousPaths,
98
+ 'no-undefined-server-variable': NoUndefinedServerVariable,
99
+ 'no-server-variables-empty-enum': NoServerVariablesEmptyEnum,
100
+ 'no-http-verbs-in-paths': NoHttpVerbsInPaths,
101
+ 'path-excludes-patterns': PathExcludesPatterns,
102
+ 'request-mime-type': RequestMimeType,
103
+ 'response-mime-type': ResponseMimeType,
104
+ 'path-segment-plural': PathSegmentPlural,
105
+ 'no-invalid-schema-examples': NoInvalidSchemaExamples,
106
+ 'no-invalid-parameter-examples': NoInvalidParameterExamples,
107
+ 'response-contains-header': ResponseContainsHeader,
108
+ 'response-contains-property': ResponseContainsProperty,
109
+ 'scalar-property-missing-example': ScalarPropertyMissingExample,
110
+ 'spec-components-invalid-map-name': SpecComponentsInvalidMapName,
111
+ 'required-string-property-missing-min-length': RequiredStringPropertyMissingMinLength,
112
+ 'spec-strict-refs': SpecStrictRefs,
113
+ 'component-name-unique': ComponentNameUnique,
114
+ 'array-parameter-serialization': ArrayParameterSerialization,
115
+ 'no-required-schema-properties-undefined': NoRequiredSchemaPropertiesUndefined,
116
+ 'no-schema-type-mismatch': NoSchemaTypeMismatch,
123
117
  };
124
- exports.preprocessors = {};
118
+ export const preprocessors = {};
119
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rules/oas3/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AACzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,6CAA6C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCA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0BAA0B;IAC3D,0BAA0B,EAAE,sBAAkC;IAC9D,4BAA4B,EAAE,wBAAwB;IACtD,iCAAiC,EAAE,4BAAwC;IAC3E,kCAAkC,EAAE,4BAA4B;IAChE,6CAA6C,EAAE,sCAAsC;IACrF,kBAAkB,EAAE,cAA0B;IAC9C,uBAAuB,EAAE,mBAA+B;IACxD,+BAA+B,EAAE,2BAA2B;IAC5D,yCAAyC,EAAE,mCAA+C;IAC1F,yBAAyB,EAAE,oBAAgC;CAC5D,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoEmptyServers: Oas3Rule;
3
+ //# sourceMappingURL=no-empty-servers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-empty-servers.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-empty-servers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,cAAc,EAAE,QAmB5B,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoEmptyServers = void 0;
4
- const NoEmptyServers = () => {
1
+ export const NoEmptyServers = () => {
5
2
  return {
6
3
  Root(root, { report, location }) {
7
4
  if (!root.hasOwnProperty('servers')) {
@@ -20,4 +17,4 @@ const NoEmptyServers = () => {
20
17
  },
21
18
  };
22
19
  };
23
- exports.NoEmptyServers = NoEmptyServers;
20
+ //# sourceMappingURL=no-empty-servers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-empty-servers.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-empty-servers.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAa,GAAG,EAAE;IAC3C,OAAO;QACL,IAAI,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YAC7B,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC;gBACpC,MAAM,CAAC;oBACL,OAAO,EAAE,0BAA0B;oBACnC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;iBAC5C,CAAC,CAAC;gBACH,OAAO;YACT,CAAC;YAED,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC9D,MAAM,CAAC;oBACL,OAAO,EAAE,oCAAoC;oBAC7C,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;iBAC5C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoExampleValueAndExternalValue: Oas3Rule;
3
+ //# sourceMappingURL=no-example-value-and-externalValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-example-value-and-externalValue.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-example-value-and-externalValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,8BAA8B,EAAE,QAW5C,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoExampleValueAndExternalValue = void 0;
4
- const NoExampleValueAndExternalValue = () => {
1
+ export const NoExampleValueAndExternalValue = () => {
5
2
  return {
6
3
  Example(example, { report, location }) {
7
4
  if (example.value && example.externalValue) {
@@ -13,4 +10,4 @@ const NoExampleValueAndExternalValue = () => {
13
10
  },
14
11
  };
15
12
  };
16
- exports.NoExampleValueAndExternalValue = NoExampleValueAndExternalValue;
13
+ //# sourceMappingURL=no-example-value-and-externalValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-example-value-and-externalValue.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-example-value-and-externalValue.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,8BAA8B,GAAa,GAAG,EAAE;IAC3D,OAAO;QACL,OAAO,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACnC,IAAI,OAAO,CAAC,KAAK,IAAI,OAAO,CAAC,aAAa,EAAE,CAAC;gBAC3C,MAAM,CAAC;oBACL,OAAO,EAAE,mEAAmE;oBAC5E,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,EAAE;iBAC1C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const ValidContentExamples: Oas3Rule;
3
+ //# sourceMappingURL=no-invalid-media-type-examples.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-invalid-media-type-examples.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-invalid-media-type-examples.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAKlD,eAAO,MAAM,oBAAoB,EAAE,QA6ClC,CAAC"}
@@ -1,10 +1,7 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidContentExamples = void 0;
4
- const ref_utils_1 = require("../../ref-utils");
5
- const utils_1 = require("../utils");
6
- const ValidContentExamples = (opts) => {
7
- const allowAdditionalProperties = (0, utils_1.getAdditionalPropertiesOption)(opts) ?? false;
1
+ import { isRef } from '../../ref-utils.js';
2
+ import { getAdditionalPropertiesOption, validateExample } from '../utils.js';
3
+ export const ValidContentExamples = (opts) => {
4
+ const allowAdditionalProperties = getAdditionalPropertiesOption(opts) ?? false;
8
5
  return {
9
6
  MediaType: {
10
7
  leave(mediaType, ctx) {
@@ -20,7 +17,7 @@ const ValidContentExamples = (opts) => {
20
17
  }
21
18
  }
22
19
  function resolveAndValidateExample(example, location, isMultiple) {
23
- if ((0, ref_utils_1.isRef)(example)) {
20
+ if (isRef(example)) {
24
21
  const resolved = resolve(example);
25
22
  if (!resolved.location)
26
23
  return;
@@ -30,10 +27,10 @@ const ValidContentExamples = (opts) => {
30
27
  if (isMultiple && typeof example?.value === 'undefined') {
31
28
  return;
32
29
  }
33
- (0, utils_1.validateExample)(isMultiple ? example.value : example, mediaType.schema, location, ctx, allowAdditionalProperties);
30
+ validateExample(isMultiple ? example.value : example, mediaType.schema, location, ctx, allowAdditionalProperties);
34
31
  }
35
32
  },
36
33
  },
37
34
  };
38
35
  };
39
- exports.ValidContentExamples = ValidContentExamples;
36
+ //# sourceMappingURL=no-invalid-media-type-examples.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-invalid-media-type-examples.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-invalid-media-type-examples.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,6BAA6B,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAO7E,MAAM,CAAC,MAAM,oBAAoB,GAAa,CAAC,IAAI,EAAE,EAAE;IACrD,MAAM,yBAAyB,GAAG,6BAA6B,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC;IAE/E,OAAO;QACL,SAAS,EAAE;YACT,KAAK,CAAC,SAAS,EAAE,GAAgB;gBAC/B,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,GAAG,CAAC;gBAClC,IAAI,CAAC,SAAS,CA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C;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoServerExample: Oas3Rule;
3
+ //# sourceMappingURL=no-server-example.com.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-server-example.com.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-example.com.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,eAAe,EAAE,QAa7B,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoServerExample = void 0;
4
- const NoServerExample = () => {
1
+ export const NoServerExample = () => {
5
2
  return {
6
3
  Server(server, { report, location }) {
7
4
  // eslint-disable-next-line no-useless-escape
@@ -15,4 +12,4 @@ const NoServerExample = () => {
15
12
  },
16
13
  };
17
14
  };
18
- exports.NoServerExample = NoServerExample;
15
+ //# sourceMappingURL=no-server-example.com.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-server-example.com.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-example.com.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAa,GAAG,EAAE;IAC5C,OAAO;QACL,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACjC,6CAA6C;YAC7C,MAAM,OAAO,GAAG,iDAAiD,CAAC;YAClE,IAAI,MAAM,CAAC,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;gBAC3C,MAAM,CAAC;oBACL,OAAO,EAAE,4DAA4D;oBACrE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;iBAClC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoServerTrailingSlash: Oas3Rule;
3
+ //# sourceMappingURL=no-server-trailing-slash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-server-trailing-slash.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-trailing-slash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,qBAAqB,EAAE,QAYnC,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoServerTrailingSlash = void 0;
4
- const NoServerTrailingSlash = () => {
1
+ export const NoServerTrailingSlash = () => {
5
2
  return {
6
3
  Server(server, { report, location }) {
7
4
  if (!server.url)
@@ -15,4 +12,4 @@ const NoServerTrailingSlash = () => {
15
12
  },
16
13
  };
17
14
  };
18
- exports.NoServerTrailingSlash = NoServerTrailingSlash;
15
+ //# sourceMappingURL=no-server-trailing-slash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-server-trailing-slash.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-trailing-slash.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,qBAAqB,GAAa,GAAG,EAAE;IAClD,OAAO;QACL,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,GAAG;gBAAE,OAAO;YACxB,IAAI,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACnD,MAAM,CAAC;oBACL,OAAO,EAAE,gDAAgD;oBACzD,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;iBAClC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoServerVariablesEmptyEnum: Oas3Rule;
3
+ //# sourceMappingURL=no-server-variables-empty-enum.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-server-variables-empty-enum.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-variables-empty-enum.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAOlD,eAAO,MAAM,0BAA0B,EAAE,QAoCxC,CAAC"}
@@ -1,12 +1,9 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoServerVariablesEmptyEnum = void 0;
4
1
  var enumError;
5
2
  (function (enumError) {
6
3
  enumError["empty"] = "empty";
7
4
  enumError["invalidDefaultValue"] = "invalidDefaultValue";
8
5
  })(enumError || (enumError = {}));
9
- const NoServerVariablesEmptyEnum = () => {
6
+ export const NoServerVariablesEmptyEnum = () => {
10
7
  return {
11
8
  Root(root, { report, location }) {
12
9
  if (!root.servers || root.servers.length === 0)
@@ -43,7 +40,6 @@ const NoServerVariablesEmptyEnum = () => {
43
40
  },
44
41
  };
45
42
  };
46
- exports.NoServerVariablesEmptyEnum = NoServerVariablesEmptyEnum;
47
43
  function checkEnumVariables(server) {
48
44
  if (server.variables && Object.keys(server.variables).length === 0)
49
45
  return;
@@ -64,3 +60,4 @@ function checkEnumVariables(server) {
64
60
  return errors;
65
61
  return;
66
62
  }
63
+ //# sourceMappingURL=no-server-variables-empty-enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-server-variables-empty-enum.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-server-variables-empty-enum.ts"],"names":[],"mappings":"AAGA,IAAK,SAGJ;AAHD,WAAK,SAAS;IACZ,4BAAe,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Q,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE;qBAC5C,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,kBAAkB,CAAC,MAAkB;IAC5C,IAAI,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAE3E,MAAM,MAAM,GAAgB,EAAE,CAAC;IAC/B,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,MAAM,cAAc,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QAClD,IAAI,CAAC,cAAc,CAAC,IAAI;YAAE,SAAS;QAEnC,IAAI,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,cAAc,CAAC,IAAI,EAAE,MAAM,KAAK,CAAC;YACzE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAE/B,IAAI,CAAC,cAAc,CAAC,OAAO;YAAE,SAAS;QAEtC,MAAM,YAAY,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;QACxD,IAAI,cAAc,CAAC,IAAI,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;YACpE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC/C,CAAC;IACD,IAAI,MAAM,CAAC,MAAM;QAAE,OAAO,MAAM,CAAC;IACjC,OAAO;AACT,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoUndefinedServerVariable: Oas3Rule;
3
+ //# sourceMappingURL=no-undefined-server-variable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-undefined-server-variable.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-undefined-server-variable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,eAAO,MAAM,yBAAyB,EAAE,QA2BvC,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoUndefinedServerVariable = void 0;
4
- const NoUndefinedServerVariable = () => {
1
+ export const NoUndefinedServerVariable = () => {
5
2
  return {
6
3
  Server(server, { report, location }) {
7
4
  if (!server.url)
@@ -28,4 +25,4 @@ const NoUndefinedServerVariable = () => {
28
25
  },
29
26
  };
30
27
  };
31
- exports.NoUndefinedServerVariable = NoUndefinedServerVariable;
28
+ //# sourceMappingURL=no-undefined-server-variable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-undefined-server-variable.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-undefined-server-variable.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,yBAAyB,GAAa,GAAG,EAAE;IACtD,OAAO;QACL,MAAM,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACjC,IAAI,CAAC,MAAM,CAAC,GAAG;gBAAE,OAAO;YACxB,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;YAC9F,MAAM,gBAAgB,GAAG,CAAC,MAAM,EAAE,SAAS,IAAI,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,CAAC;YAEpF,KAAK,MAAM,SAAS,IAAI,YAAY,EAAE,CAAC;gBACrC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,CAAC;oBAC1C,MAAM,CAAC;wBACL,OAAO,EAAE,SAAS,SAAS,0DAA0D;wBACrF,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;qBAClC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,KAAK,MAAM,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;gBAChD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,gBAAgB,CAAC,EAAE,CAAC;oBAC7C,MAAM,CAAC;wBACL,OAAO,EAAE,SAAS,gBAAgB,wDAAwD;wBAC1F,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,CAAC,GAAG,EAAE;wBAC/D,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC;qBAC5B,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,2 +1,3 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  export declare const NoUnusedComponents: Oas3Rule;
3
+ //# sourceMappingURL=no-unused-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-unused-components.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/no-unused-components.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,kBAAkB,EAAE,QAuEhC,CAAC"}
@@ -1,7 +1,4 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NoUnusedComponents = void 0;
4
- const NoUnusedComponents = () => {
1
+ export const NoUnusedComponents = () => {
5
2
  const components = new Map();
6
3
  function registerComponent(location, name) {
7
4
  components.set(location.absolutePointer, {
@@ -70,4 +67,4 @@ const NoUnusedComponents = () => {
70
67
  },
71
68
  };
72
69
  };
73
- exports.NoUnusedComponents = NoUnusedComponents;
70
+ //# sourceMappingURL=no-unused-components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-unused-components.js","sourceRoot":"","sources":["../../../src/rules/oas3/no-unused-components.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,kBAAkB,GAAa,GAAG,EAAE;IAC/C,MAAM,UAAU,GAAG,IAAI,GAAG,EAA+D,CAAC;IAE1F,SAAS,iBAAiB,CAAC,QAAkB,EAAE,IAAY;QACzD,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,EAAE;YACvC,IAAI,EAAE,UAAU,CAAC,GAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,IAAI,IAAI,KAAK;YAC7D,QAAQ;YACR,IAAI;SACL,CAAC,CAAC;IACL,CAAC;IAED,OAAO;QACL,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE;YACvC,IACE,CAAC,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,EAAE,SAAS,EAAE,aAAa,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAC3F,CAAC;gBACD,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;gBACjC,IAAI,CAAC,WAAW,CAAC,QAAQ;oBAAE,OAAO;gBAClC,UAAU,CAAC,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,eAAe,EAAE;oBACnD,IAAI,EAAE,IAAI;oBACV,IAAI,EAAE,GAAG,CAAC,QAAQ,EAAE;oBACpB,QAAQ;iBACT,CAAC,CAAC;YACL,CAAC;QACH,CAAC;QACD,IAAI,EAAE;YACJ,KAAK,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE;gBACjB,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;oBAC/B,IAAI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AAE;gBAC/B,iBAAiB,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;YAC9C,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
- import type { Oas3Rule } from '../../visitors';
1
+ import type { Oas3Rule } from '../../visitors.js';
2
2
  /**
3
3
  * Validation according to rfc7807 - https://datatracker.ietf.org/doc/html/rfc7807
4
4
  */
5
5
  export declare const Operation4xxProblemDetailsRfc7807: Oas3Rule;
6
+ //# sourceMappingURL=operation-4xx-problem-details-rfc7807.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operation-4xx-problem-details-rfc7807.d.ts","sourceRoot":"","sources":["../../../src/rules/oas3/operation-4xx-problem-details-rfc7807.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD;;GAEG;AACH,eAAO,MAAM,iCAAiC,EAAE,QA2B/C,CAAC"}