@depup/redocly__openapi-core 2.22.1-depup.0

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 (871) hide show
  1. package/README.md +32 -0
  2. package/changes.json +14 -0
  3. package/lib/bundle/bundle-document.d.ts +33 -0
  4. package/lib/bundle/bundle-document.d.ts.map +1 -0
  5. package/lib/bundle/bundle-document.js +85 -0
  6. package/lib/bundle/bundle-document.js.map +1 -0
  7. package/lib/bundle/bundle-oas.d.ts +15 -0
  8. package/lib/bundle/bundle-oas.d.ts.map +1 -0
  9. package/lib/bundle/bundle-oas.js +55 -0
  10. package/lib/bundle/bundle-oas.js.map +1 -0
  11. package/lib/bundle/bundle-visitor.d.ts +15 -0
  12. package/lib/bundle/bundle-visitor.d.ts.map +1 -0
  13. package/lib/bundle/bundle-visitor.js +257 -0
  14. package/lib/bundle/bundle-visitor.js.map +1 -0
  15. package/lib/bundle/bundle.d.ts +26 -0
  16. package/lib/bundle/bundle.d.ts.map +1 -0
  17. package/lib/bundle/bundle.js +74 -0
  18. package/lib/bundle/bundle.js.map +1 -0
  19. package/lib/config/all.d.ts +4 -0
  20. package/lib/config/all.d.ts.map +1 -0
  21. package/lib/config/all.js +310 -0
  22. package/lib/config/all.js.map +1 -0
  23. package/lib/config/builtIn.d.ts +4 -0
  24. package/lib/config/builtIn.d.ts.map +1 -0
  25. package/lib/config/builtIn.js +58 -0
  26. package/lib/config/builtIn.js.map +1 -0
  27. package/lib/config/bundle-extends.d.ts +8 -0
  28. package/lib/config/bundle-extends.d.ts.map +1 -0
  29. package/lib/config/bundle-extends.js +27 -0
  30. package/lib/config/bundle-extends.js.map +1 -0
  31. package/lib/config/config-resolvers.d.ts +23 -0
  32. package/lib/config/config-resolvers.d.ts.map +1 -0
  33. package/lib/config/config-resolvers.js +335 -0
  34. package/lib/config/config-resolvers.js.map +1 -0
  35. package/lib/config/config.d.ts +47 -0
  36. package/lib/config/config.d.ts.map +1 -0
  37. package/lib/config/config.js +338 -0
  38. package/lib/config/config.js.map +1 -0
  39. package/lib/config/constants.d.ts +10 -0
  40. package/lib/config/constants.d.ts.map +1 -0
  41. package/lib/config/constants.js +13 -0
  42. package/lib/config/constants.js.map +1 -0
  43. package/lib/config/get-resolve-config.d.ts +3 -0
  44. package/lib/config/get-resolve-config.d.ts.map +1 -0
  45. package/lib/config/get-resolve-config.js +9 -0
  46. package/lib/config/get-resolve-config.js.map +1 -0
  47. package/lib/config/group-assertion-rules.d.ts +3 -0
  48. package/lib/config/group-assertion-rules.d.ts.map +1 -0
  49. package/lib/config/group-assertion-rules.js +51 -0
  50. package/lib/config/group-assertion-rules.js.map +1 -0
  51. package/lib/config/index.d.ts +8 -0
  52. package/lib/config/index.d.ts.map +1 -0
  53. package/lib/config/index.js +8 -0
  54. package/lib/config/index.js.map +1 -0
  55. package/lib/config/load.d.ts +19 -0
  56. package/lib/config/load.d.ts.map +1 -0
  57. package/lib/config/load.js +98 -0
  58. package/lib/config/load.js.map +1 -0
  59. package/lib/config/minimal.d.ts +4 -0
  60. package/lib/config/minimal.d.ts.map +1 -0
  61. package/lib/config/minimal.js +289 -0
  62. package/lib/config/minimal.js.map +1 -0
  63. package/lib/config/recommended-strict.d.ts +4 -0
  64. package/lib/config/recommended-strict.d.ts.map +1 -0
  65. package/lib/config/recommended-strict.js +289 -0
  66. package/lib/config/recommended-strict.js.map +1 -0
  67. package/lib/config/recommended.d.ts +4 -0
  68. package/lib/config/recommended.d.ts.map +1 -0
  69. package/lib/config/recommended.js +289 -0
  70. package/lib/config/recommended.js.map +1 -0
  71. package/lib/config/rules.d.ts +11 -0
  72. package/lib/config/rules.d.ts.map +1 -0
  73. package/lib/config/rules.js +35 -0
  74. package/lib/config/rules.js.map +1 -0
  75. package/lib/config/spec.d.ts +4 -0
  76. package/lib/config/spec.d.ts.map +1 -0
  77. package/lib/config/spec.js +289 -0
  78. package/lib/config/spec.js.map +1 -0
  79. package/lib/config/types.d.ts +158 -0
  80. package/lib/config/types.d.ts.map +1 -0
  81. package/lib/config/types.js +2 -0
  82. package/lib/config/types.js.map +1 -0
  83. package/lib/config/utils.d.ts +14 -0
  84. package/lib/config/utils.d.ts.map +1 -0
  85. package/lib/config/utils.js +129 -0
  86. package/lib/config/utils.js.map +1 -0
  87. package/lib/config/visitors.d.ts +50 -0
  88. package/lib/config/visitors.d.ts.map +1 -0
  89. package/lib/config/visitors.js +99 -0
  90. package/lib/config/visitors.js.map +1 -0
  91. package/lib/decorators/arazzo/index.d.ts +2 -0
  92. package/lib/decorators/arazzo/index.d.ts.map +1 -0
  93. package/lib/decorators/arazzo/index.js +2 -0
  94. package/lib/decorators/arazzo/index.js.map +1 -0
  95. package/lib/decorators/async2/index.d.ts +2 -0
  96. package/lib/decorators/async2/index.d.ts.map +1 -0
  97. package/lib/decorators/async2/index.js +2 -0
  98. package/lib/decorators/async2/index.js.map +1 -0
  99. package/lib/decorators/async3/index.d.ts +2 -0
  100. package/lib/decorators/async3/index.d.ts.map +1 -0
  101. package/lib/decorators/async3/index.js +2 -0
  102. package/lib/decorators/async3/index.js.map +1 -0
  103. package/lib/decorators/common/filters/filter-helper.d.ts +4 -0
  104. package/lib/decorators/common/filters/filter-helper.d.ts.map +1 -0
  105. package/lib/decorators/common/filters/filter-helper.js +65 -0
  106. package/lib/decorators/common/filters/filter-helper.js.map +1 -0
  107. package/lib/decorators/common/filters/filter-in.d.ts +3 -0
  108. package/lib/decorators/common/filters/filter-in.d.ts.map +1 -0
  109. package/lib/decorators/common/filters/filter-in.js +67 -0
  110. package/lib/decorators/common/filters/filter-in.js.map +1 -0
  111. package/lib/decorators/common/filters/filter-out.d.ts +3 -0
  112. package/lib/decorators/common/filters/filter-out.d.ts.map +1 -0
  113. package/lib/decorators/common/filters/filter-out.js +67 -0
  114. package/lib/decorators/common/filters/filter-out.js.map +1 -0
  115. package/lib/decorators/common/info-description-override.d.ts +3 -0
  116. package/lib/decorators/common/info-description-override.d.ts.map +1 -0
  117. package/lib/decorators/common/info-description-override.js +21 -0
  118. package/lib/decorators/common/info-description-override.js.map +1 -0
  119. package/lib/decorators/common/info-override.d.ts +3 -0
  120. package/lib/decorators/common/info-override.d.ts.map +1 -0
  121. package/lib/decorators/common/info-override.js +14 -0
  122. package/lib/decorators/common/info-override.js.map +1 -0
  123. package/lib/decorators/common/media-type-examples-override.d.ts +3 -0
  124. package/lib/decorators/common/media-type-examples-override.d.ts.map +1 -0
  125. package/lib/decorators/common/media-type-examples-override.js +58 -0
  126. package/lib/decorators/common/media-type-examples-override.js.map +1 -0
  127. package/lib/decorators/common/operation-description-override.d.ts +3 -0
  128. package/lib/decorators/common/operation-description-override.d.ts.map +1 -0
  129. package/lib/decorators/common/operation-description-override.js +27 -0
  130. package/lib/decorators/common/operation-description-override.js.map +1 -0
  131. package/lib/decorators/common/remove-x-internal.d.ts +3 -0
  132. package/lib/decorators/common/remove-x-internal.d.ts.map +1 -0
  133. package/lib/decorators/common/remove-x-internal.js +68 -0
  134. package/lib/decorators/common/remove-x-internal.js.map +1 -0
  135. package/lib/decorators/common/tag-description-override.d.ts +3 -0
  136. package/lib/decorators/common/tag-description-override.d.ts.map +1 -0
  137. package/lib/decorators/common/tag-description-override.js +23 -0
  138. package/lib/decorators/common/tag-description-override.js.map +1 -0
  139. package/lib/decorators/oas2/index.d.ts +12 -0
  140. package/lib/decorators/oas2/index.d.ts.map +1 -0
  141. package/lib/decorators/oas2/index.js +19 -0
  142. package/lib/decorators/oas2/index.js.map +1 -0
  143. package/lib/decorators/oas2/remove-unused-components.d.ts +3 -0
  144. package/lib/decorators/oas2/remove-unused-components.d.ts.map +1 -0
  145. package/lib/decorators/oas2/remove-unused-components.js +88 -0
  146. package/lib/decorators/oas2/remove-unused-components.js.map +1 -0
  147. package/lib/decorators/oas3/index.d.ts +13 -0
  148. package/lib/decorators/oas3/index.d.ts.map +1 -0
  149. package/lib/decorators/oas3/index.js +21 -0
  150. package/lib/decorators/oas3/index.js.map +1 -0
  151. package/lib/decorators/oas3/remove-unused-components.d.ts +3 -0
  152. package/lib/decorators/oas3/remove-unused-components.d.ts.map +1 -0
  153. package/lib/decorators/oas3/remove-unused-components.js +116 -0
  154. package/lib/decorators/oas3/remove-unused-components.js.map +1 -0
  155. package/lib/decorators/openrpc/index.d.ts +2 -0
  156. package/lib/decorators/openrpc/index.d.ts.map +1 -0
  157. package/lib/decorators/openrpc/index.js +2 -0
  158. package/lib/decorators/openrpc/index.js.map +1 -0
  159. package/lib/decorators/overlay1/index.d.ts +2 -0
  160. package/lib/decorators/overlay1/index.d.ts.map +1 -0
  161. package/lib/decorators/overlay1/index.js +2 -0
  162. package/lib/decorators/overlay1/index.js.map +1 -0
  163. package/lib/detect-spec.d.ts +5 -0
  164. package/lib/detect-spec.d.ts.map +1 -0
  165. package/lib/detect-spec.js +79 -0
  166. package/lib/detect-spec.js.map +1 -0
  167. package/lib/env.d.ts +3 -0
  168. package/lib/env.d.ts.map +1 -0
  169. package/lib/env.js +5 -0
  170. package/lib/env.js.map +1 -0
  171. package/lib/errors/yaml-parse-error.d.ts +9 -0
  172. package/lib/errors/yaml-parse-error.d.ts.map +1 -0
  173. package/lib/errors/yaml-parse-error.js +14 -0
  174. package/lib/errors/yaml-parse-error.js.map +1 -0
  175. package/lib/format/codeframes.d.ts +23 -0
  176. package/lib/format/codeframes.d.ts.map +1 -0
  177. package/lib/format/codeframes.js +177 -0
  178. package/lib/format/codeframes.js.map +1 -0
  179. package/lib/format/format.d.ts +23 -0
  180. package/lib/format/format.d.ts.map +1 -0
  181. package/lib/format/format.js +365 -0
  182. package/lib/format/format.js.map +1 -0
  183. package/lib/index.d.ts +58 -0
  184. package/lib/index.d.ts.map +1 -0
  185. package/lib/index.js +49 -0
  186. package/lib/index.js.map +1 -0
  187. package/lib/js-yaml/index.d.ts +4 -0
  188. package/lib/js-yaml/index.d.ts.map +1 -0
  189. package/lib/js-yaml/index.js +11 -0
  190. package/lib/js-yaml/index.js.map +1 -0
  191. package/lib/lint-entity.d.ts +24 -0
  192. package/lib/lint-entity.d.ts.map +1 -0
  193. package/lib/lint-entity.js +171 -0
  194. package/lib/lint-entity.js.map +1 -0
  195. package/lib/lint.d.ts +31 -0
  196. package/lib/lint.d.ts.map +1 -0
  197. package/lib/lint.js +123 -0
  198. package/lib/lint.js.map +1 -0
  199. package/lib/logger.d.ts +26 -0
  200. package/lib/logger.d.ts.map +1 -0
  201. package/lib/logger.js +56 -0
  202. package/lib/logger.js.map +1 -0
  203. package/lib/oas-types.d.ts +877 -0
  204. package/lib/oas-types.d.ts.map +1 -0
  205. package/lib/oas-types.js +35 -0
  206. package/lib/oas-types.js.map +1 -0
  207. package/lib/ref-utils.d.ts +32 -0
  208. package/lib/ref-utils.d.ts.map +1 -0
  209. package/lib/ref-utils.js +109 -0
  210. package/lib/ref-utils.js.map +1 -0
  211. package/lib/resolve.d.ts +57 -0
  212. package/lib/resolve.d.ts.map +1 -0
  213. package/lib/resolve.js +326 -0
  214. package/lib/resolve.js.map +1 -0
  215. package/lib/rules/ajv.d.ts +20 -0
  216. package/lib/rules/ajv.d.ts.map +1 -0
  217. package/lib/rules/ajv.js +106 -0
  218. package/lib/rules/ajv.js.map +1 -0
  219. package/lib/rules/arazzo/criteria-unique.d.ts +3 -0
  220. package/lib/rules/arazzo/criteria-unique.d.ts.map +1 -0
  221. package/lib/rules/arazzo/criteria-unique.js +68 -0
  222. package/lib/rules/arazzo/criteria-unique.js.map +1 -0
  223. package/lib/rules/arazzo/index.d.ts +4 -0
  224. package/lib/rules/arazzo/index.d.ts.map +1 -0
  225. package/lib/rules/arazzo/index.js +52 -0
  226. package/lib/rules/arazzo/index.js.map +1 -0
  227. package/lib/rules/arazzo/outputs-defined.d.ts +3 -0
  228. package/lib/rules/arazzo/outputs-defined.d.ts.map +1 -0
  229. package/lib/rules/arazzo/outputs-defined.js +139 -0
  230. package/lib/rules/arazzo/outputs-defined.js.map +1 -0
  231. package/lib/rules/arazzo/parameters-unique.d.ts +3 -0
  232. package/lib/rules/arazzo/parameters-unique.d.ts.map +1 -0
  233. package/lib/rules/arazzo/parameters-unique.js +27 -0
  234. package/lib/rules/arazzo/parameters-unique.js.map +1 -0
  235. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts +3 -0
  236. package/lib/rules/arazzo/requestBody-replacements-unique.d.ts.map +1 -0
  237. package/lib/rules/arazzo/requestBody-replacements-unique.js +30 -0
  238. package/lib/rules/arazzo/requestBody-replacements-unique.js.map +1 -0
  239. package/lib/rules/arazzo/sourceDescription-type.d.ts +3 -0
  240. package/lib/rules/arazzo/sourceDescription-type.d.ts.map +1 -0
  241. package/lib/rules/arazzo/sourceDescription-type.js +19 -0
  242. package/lib/rules/arazzo/sourceDescription-type.js.map +1 -0
  243. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts +3 -0
  244. package/lib/rules/arazzo/sourceDescriptions-name-unique.d.ts.map +1 -0
  245. package/lib/rules/arazzo/sourceDescriptions-name-unique.js +21 -0
  246. package/lib/rules/arazzo/sourceDescriptions-name-unique.js.map +1 -0
  247. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts +3 -0
  248. package/lib/rules/arazzo/sourceDescriptions-not-empty.d.ts.map +1 -0
  249. package/lib/rules/arazzo/sourceDescriptions-not-empty.js +15 -0
  250. package/lib/rules/arazzo/sourceDescriptions-not-empty.js.map +1 -0
  251. package/lib/rules/arazzo/step-onFailure-unique.d.ts +3 -0
  252. package/lib/rules/arazzo/step-onFailure-unique.d.ts.map +1 -0
  253. package/lib/rules/arazzo/step-onFailure-unique.js +27 -0
  254. package/lib/rules/arazzo/step-onFailure-unique.js.map +1 -0
  255. package/lib/rules/arazzo/step-onSuccess-unique.d.ts +3 -0
  256. package/lib/rules/arazzo/step-onSuccess-unique.d.ts.map +1 -0
  257. package/lib/rules/arazzo/step-onSuccess-unique.js +27 -0
  258. package/lib/rules/arazzo/step-onSuccess-unique.js.map +1 -0
  259. package/lib/rules/arazzo/stepId-unique.d.ts +3 -0
  260. package/lib/rules/arazzo/stepId-unique.d.ts.map +1 -0
  261. package/lib/rules/arazzo/stepId-unique.js +23 -0
  262. package/lib/rules/arazzo/stepId-unique.js.map +1 -0
  263. package/lib/rules/arazzo/workflow-dependsOn.d.ts +3 -0
  264. package/lib/rules/arazzo/workflow-dependsOn.d.ts.map +1 -0
  265. package/lib/rules/arazzo/workflow-dependsOn.js +53 -0
  266. package/lib/rules/arazzo/workflow-dependsOn.js.map +1 -0
  267. package/lib/rules/arazzo/workflowId-unique.d.ts +3 -0
  268. package/lib/rules/arazzo/workflowId-unique.d.ts.map +1 -0
  269. package/lib/rules/arazzo/workflowId-unique.js +19 -0
  270. package/lib/rules/arazzo/workflowId-unique.js.map +1 -0
  271. package/lib/rules/async2/channels-kebab-case.d.ts +3 -0
  272. package/lib/rules/async2/channels-kebab-case.d.ts.map +1 -0
  273. package/lib/rules/async2/channels-kebab-case.js +16 -0
  274. package/lib/rules/async2/channels-kebab-case.js.map +1 -0
  275. package/lib/rules/async2/index.d.ts +4 -0
  276. package/lib/rules/async2/index.d.ts.map +1 -0
  277. package/lib/rules/async2/index.js +32 -0
  278. package/lib/rules/async2/index.js.map +1 -0
  279. package/lib/rules/async2/no-channel-trailing-slash.d.ts +3 -0
  280. package/lib/rules/async2/no-channel-trailing-slash.d.ts.map +1 -0
  281. package/lib/rules/async2/no-channel-trailing-slash.js +13 -0
  282. package/lib/rules/async2/no-channel-trailing-slash.js.map +1 -0
  283. package/lib/rules/async3/channels-kebab-case.d.ts +3 -0
  284. package/lib/rules/async3/channels-kebab-case.d.ts.map +1 -0
  285. package/lib/rules/async3/channels-kebab-case.js +16 -0
  286. package/lib/rules/async3/channels-kebab-case.js.map +1 -0
  287. package/lib/rules/async3/index.d.ts +4 -0
  288. package/lib/rules/async3/index.d.ts.map +1 -0
  289. package/lib/rules/async3/index.js +32 -0
  290. package/lib/rules/async3/index.js.map +1 -0
  291. package/lib/rules/async3/no-channel-trailing-slash.d.ts +3 -0
  292. package/lib/rules/async3/no-channel-trailing-slash.d.ts.map +1 -0
  293. package/lib/rules/async3/no-channel-trailing-slash.js +13 -0
  294. package/lib/rules/async3/no-channel-trailing-slash.js.map +1 -0
  295. package/lib/rules/catalog-entity/entity-key-valid.d.ts +3 -0
  296. package/lib/rules/catalog-entity/entity-key-valid.d.ts.map +1 -0
  297. package/lib/rules/catalog-entity/entity-key-valid.js +39 -0
  298. package/lib/rules/catalog-entity/entity-key-valid.js.map +1 -0
  299. package/lib/rules/common/assertions/asserts.d.ts +30 -0
  300. package/lib/rules/common/assertions/asserts.d.ts.map +1 -0
  301. package/lib/rules/common/assertions/asserts.js +272 -0
  302. package/lib/rules/common/assertions/asserts.js.map +1 -0
  303. package/lib/rules/common/assertions/index.d.ts +28 -0
  304. package/lib/rules/common/assertions/index.d.ts.map +1 -0
  305. package/lib/rules/common/assertions/index.js +22 -0
  306. package/lib/rules/common/assertions/index.js.map +1 -0
  307. package/lib/rules/common/assertions/utils.d.ts +21 -0
  308. package/lib/rules/common/assertions/utils.d.ts.map +1 -0
  309. package/lib/rules/common/assertions/utils.js +215 -0
  310. package/lib/rules/common/assertions/utils.js.map +1 -0
  311. package/lib/rules/common/info-contact.d.ts +3 -0
  312. package/lib/rules/common/info-contact.d.ts.map +1 -0
  313. package/lib/rules/common/info-contact.js +14 -0
  314. package/lib/rules/common/info-contact.js.map +1 -0
  315. package/lib/rules/common/info-license-strict.d.ts +3 -0
  316. package/lib/rules/common/info-license-strict.d.ts.map +1 -0
  317. package/lib/rules/common/info-license-strict.js +23 -0
  318. package/lib/rules/common/info-license-strict.js.map +1 -0
  319. package/lib/rules/common/info-license.d.ts +3 -0
  320. package/lib/rules/common/info-license.d.ts.map +1 -0
  321. package/lib/rules/common/info-license.js +14 -0
  322. package/lib/rules/common/info-license.js.map +1 -0
  323. package/lib/rules/common/no-ambiguous-paths.d.ts +3 -0
  324. package/lib/rules/common/no-ambiguous-paths.d.ts.map +1 -0
  325. package/lib/rules/common/no-ambiguous-paths.js +42 -0
  326. package/lib/rules/common/no-ambiguous-paths.js.map +1 -0
  327. package/lib/rules/common/no-duplicated-tag-names.d.ts +3 -0
  328. package/lib/rules/common/no-duplicated-tag-names.d.ts.map +1 -0
  329. package/lib/rules/common/no-duplicated-tag-names.js +21 -0
  330. package/lib/rules/common/no-duplicated-tag-names.js.map +1 -0
  331. package/lib/rules/common/no-enum-type-mismatch.d.ts +3 -0
  332. package/lib/rules/common/no-enum-type-mismatch.d.ts.map +1 -0
  333. package/lib/rules/common/no-enum-type-mismatch.js +38 -0
  334. package/lib/rules/common/no-enum-type-mismatch.js.map +1 -0
  335. package/lib/rules/common/no-http-verbs-in-paths.d.ts +3 -0
  336. package/lib/rules/common/no-http-verbs-in-paths.d.ts.map +1 -0
  337. package/lib/rules/common/no-http-verbs-in-paths.js +31 -0
  338. package/lib/rules/common/no-http-verbs-in-paths.js.map +1 -0
  339. package/lib/rules/common/no-identical-paths.d.ts +3 -0
  340. package/lib/rules/common/no-identical-paths.d.ts.map +1 -0
  341. package/lib/rules/common/no-identical-paths.js +21 -0
  342. package/lib/rules/common/no-identical-paths.js.map +1 -0
  343. package/lib/rules/common/no-invalid-parameter-examples.d.ts +2 -0
  344. package/lib/rules/common/no-invalid-parameter-examples.d.ts.map +1 -0
  345. package/lib/rules/common/no-invalid-parameter-examples.js +32 -0
  346. package/lib/rules/common/no-invalid-parameter-examples.js.map +1 -0
  347. package/lib/rules/common/no-invalid-schema-examples.d.ts +3 -0
  348. package/lib/rules/common/no-invalid-schema-examples.d.ts.map +1 -0
  349. package/lib/rules/common/no-invalid-schema-examples.js +34 -0
  350. package/lib/rules/common/no-invalid-schema-examples.js.map +1 -0
  351. package/lib/rules/common/no-path-trailing-slash.d.ts +3 -0
  352. package/lib/rules/common/no-path-trailing-slash.d.ts.map +1 -0
  353. package/lib/rules/common/no-path-trailing-slash.js +13 -0
  354. package/lib/rules/common/no-path-trailing-slash.js.map +1 -0
  355. package/lib/rules/common/no-required-schema-properties-undefined.d.ts +3 -0
  356. package/lib/rules/common/no-required-schema-properties-undefined.d.ts.map +1 -0
  357. package/lib/rules/common/no-required-schema-properties-undefined.js +78 -0
  358. package/lib/rules/common/no-required-schema-properties-undefined.js.map +1 -0
  359. package/lib/rules/common/no-schema-type-mismatch.d.ts +3 -0
  360. package/lib/rules/common/no-schema-type-mismatch.d.ts.map +1 -0
  361. package/lib/rules/common/no-schema-type-mismatch.js +19 -0
  362. package/lib/rules/common/no-schema-type-mismatch.js.map +1 -0
  363. package/lib/rules/common/no-unresolved-refs.d.ts +6 -0
  364. package/lib/rules/common/no-unresolved-refs.d.ts.map +1 -0
  365. package/lib/rules/common/no-unresolved-refs.js +42 -0
  366. package/lib/rules/common/no-unresolved-refs.js.map +1 -0
  367. package/lib/rules/common/operation-2xx-response.d.ts +3 -0
  368. package/lib/rules/common/operation-2xx-response.d.ts.map +1 -0
  369. package/lib/rules/common/operation-2xx-response.js +20 -0
  370. package/lib/rules/common/operation-2xx-response.js.map +1 -0
  371. package/lib/rules/common/operation-4xx-response.d.ts +3 -0
  372. package/lib/rules/common/operation-4xx-response.d.ts.map +1 -0
  373. package/lib/rules/common/operation-4xx-response.js +20 -0
  374. package/lib/rules/common/operation-4xx-response.js.map +1 -0
  375. package/lib/rules/common/operation-description.d.ts +3 -0
  376. package/lib/rules/common/operation-description.d.ts.map +1 -0
  377. package/lib/rules/common/operation-description.js +9 -0
  378. package/lib/rules/common/operation-description.js.map +1 -0
  379. package/lib/rules/common/operation-operationId-unique.d.ts +3 -0
  380. package/lib/rules/common/operation-operationId-unique.d.ts.map +1 -0
  381. package/lib/rules/common/operation-operationId-unique.js +17 -0
  382. package/lib/rules/common/operation-operationId-unique.js.map +1 -0
  383. package/lib/rules/common/operation-operationId-url-safe.d.ts +3 -0
  384. package/lib/rules/common/operation-operationId-url-safe.d.ts.map +1 -0
  385. package/lib/rules/common/operation-operationId-url-safe.js +15 -0
  386. package/lib/rules/common/operation-operationId-url-safe.js.map +1 -0
  387. package/lib/rules/common/operation-operationId.d.ts +3 -0
  388. package/lib/rules/common/operation-operationId.d.ts.map +1 -0
  389. package/lib/rules/common/operation-operationId.js +13 -0
  390. package/lib/rules/common/operation-operationId.js.map +1 -0
  391. package/lib/rules/common/operation-parameters-unique.d.ts +3 -0
  392. package/lib/rules/common/operation-parameters-unique.d.ts.map +1 -0
  393. package/lib/rules/common/operation-parameters-unique.js +37 -0
  394. package/lib/rules/common/operation-parameters-unique.js.map +1 -0
  395. package/lib/rules/common/operation-singular-tag.d.ts +3 -0
  396. package/lib/rules/common/operation-singular-tag.d.ts.map +1 -0
  397. package/lib/rules/common/operation-singular-tag.js +13 -0
  398. package/lib/rules/common/operation-singular-tag.js.map +1 -0
  399. package/lib/rules/common/operation-summary.d.ts +3 -0
  400. package/lib/rules/common/operation-summary.d.ts.map +1 -0
  401. package/lib/rules/common/operation-summary.js +9 -0
  402. package/lib/rules/common/operation-summary.js.map +1 -0
  403. package/lib/rules/common/operation-tag-defined.d.ts +3 -0
  404. package/lib/rules/common/operation-tag-defined.d.ts.map +1 -0
  405. package/lib/rules/common/operation-tag-defined.js +27 -0
  406. package/lib/rules/common/operation-tag-defined.js.map +1 -0
  407. package/lib/rules/common/parameter-description.d.ts +3 -0
  408. package/lib/rules/common/parameter-description.d.ts.map +1 -0
  409. package/lib/rules/common/parameter-description.js +19 -0
  410. package/lib/rules/common/parameter-description.js.map +1 -0
  411. package/lib/rules/common/path-declaration-must-exist.d.ts +3 -0
  412. package/lib/rules/common/path-declaration-must-exist.d.ts.map +1 -0
  413. package/lib/rules/common/path-declaration-must-exist.js +13 -0
  414. package/lib/rules/common/path-declaration-must-exist.js.map +1 -0
  415. package/lib/rules/common/path-http-verbs-order.d.ts +3 -0
  416. package/lib/rules/common/path-http-verbs-order.d.ts.map +1 -0
  417. package/lib/rules/common/path-http-verbs-order.js +23 -0
  418. package/lib/rules/common/path-http-verbs-order.js.map +1 -0
  419. package/lib/rules/common/path-not-include-query.d.ts +3 -0
  420. package/lib/rules/common/path-not-include-query.d.ts.map +1 -0
  421. package/lib/rules/common/path-not-include-query.js +15 -0
  422. package/lib/rules/common/path-not-include-query.js.map +1 -0
  423. package/lib/rules/common/path-params-defined.d.ts +3 -0
  424. package/lib/rules/common/path-params-defined.d.ts.map +1 -0
  425. package/lib/rules/common/path-params-defined.js +145 -0
  426. package/lib/rules/common/path-params-defined.js.map +1 -0
  427. package/lib/rules/common/path-segment-plural.d.ts +3 -0
  428. package/lib/rules/common/path-segment-plural.d.ts.map +1 -0
  429. package/lib/rules/common/path-segment-plural.js +30 -0
  430. package/lib/rules/common/path-segment-plural.js.map +1 -0
  431. package/lib/rules/common/paths-kebab-case.d.ts +3 -0
  432. package/lib/rules/common/paths-kebab-case.d.ts.map +1 -0
  433. package/lib/rules/common/paths-kebab-case.js +17 -0
  434. package/lib/rules/common/paths-kebab-case.js.map +1 -0
  435. package/lib/rules/common/required-string-property-missing-min-length.d.ts +3 -0
  436. package/lib/rules/common/required-string-property-missing-min-length.d.ts.map +1 -0
  437. package/lib/rules/common/required-string-property-missing-min-length.js +34 -0
  438. package/lib/rules/common/required-string-property-missing-min-length.js.map +1 -0
  439. package/lib/rules/common/response-contains-header.d.ts +3 -0
  440. package/lib/rules/common/response-contains-header.d.ts.map +1 -0
  441. package/lib/rules/common/response-contains-header.js +26 -0
  442. package/lib/rules/common/response-contains-header.js.map +1 -0
  443. package/lib/rules/common/scalar-property-missing-example.d.ts +3 -0
  444. package/lib/rules/common/scalar-property-missing-example.d.ts.map +1 -0
  445. package/lib/rules/common/scalar-property-missing-example.js +39 -0
  446. package/lib/rules/common/scalar-property-missing-example.js.map +1 -0
  447. package/lib/rules/common/security-defined.d.ts +3 -0
  448. package/lib/rules/common/security-defined.d.ts.map +1 -0
  449. package/lib/rules/common/security-defined.js +62 -0
  450. package/lib/rules/common/security-defined.js.map +1 -0
  451. package/lib/rules/common/spec-strict-refs.d.ts +3 -0
  452. package/lib/rules/common/spec-strict-refs.d.ts.map +1 -0
  453. package/lib/rules/common/spec-strict-refs.js +27 -0
  454. package/lib/rules/common/spec-strict-refs.js.map +1 -0
  455. package/lib/rules/common/struct.d.ts +3 -0
  456. package/lib/rules/common/struct.d.ts.map +1 -0
  457. package/lib/rules/common/struct.js +150 -0
  458. package/lib/rules/common/struct.js.map +1 -0
  459. package/lib/rules/common/tag-description.d.ts +3 -0
  460. package/lib/rules/common/tag-description.d.ts.map +1 -0
  461. package/lib/rules/common/tag-description.js +9 -0
  462. package/lib/rules/common/tag-description.js.map +1 -0
  463. package/lib/rules/common/tags-alphabetical.d.ts +3 -0
  464. package/lib/rules/common/tags-alphabetical.d.ts.map +1 -0
  465. package/lib/rules/common/tags-alphabetical.js +18 -0
  466. package/lib/rules/common/tags-alphabetical.js.map +1 -0
  467. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts +6 -0
  468. package/lib/rules/oas2/boolean-parameter-prefixes.d.ts.map +1 -0
  469. package/lib/rules/oas2/boolean-parameter-prefixes.js +19 -0
  470. package/lib/rules/oas2/boolean-parameter-prefixes.js.map +1 -0
  471. package/lib/rules/oas2/index.d.ts +4 -0
  472. package/lib/rules/oas2/index.d.ts.map +1 -0
  473. package/lib/rules/oas2/index.js +93 -0
  474. package/lib/rules/oas2/index.js.map +1 -0
  475. package/lib/rules/oas2/request-mime-type.d.ts +3 -0
  476. package/lib/rules/oas2/request-mime-type.d.ts.map +1 -0
  477. package/lib/rules/oas2/request-mime-type.js +14 -0
  478. package/lib/rules/oas2/request-mime-type.js.map +1 -0
  479. package/lib/rules/oas2/response-contains-property.d.ts +3 -0
  480. package/lib/rules/oas2/response-contains-property.d.ts.map +1 -0
  481. package/lib/rules/oas2/response-contains-property.js +34 -0
  482. package/lib/rules/oas2/response-contains-property.js.map +1 -0
  483. package/lib/rules/oas2/response-mime-type.d.ts +3 -0
  484. package/lib/rules/oas2/response-mime-type.d.ts.map +1 -0
  485. package/lib/rules/oas2/response-mime-type.js +14 -0
  486. package/lib/rules/oas2/response-mime-type.js.map +1 -0
  487. package/lib/rules/oas3/array-parameter-serialization.d.ts +6 -0
  488. package/lib/rules/oas3/array-parameter-serialization.d.ts.map +1 -0
  489. package/lib/rules/oas3/array-parameter-serialization.js +26 -0
  490. package/lib/rules/oas3/array-parameter-serialization.js.map +1 -0
  491. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts +6 -0
  492. package/lib/rules/oas3/boolean-parameter-prefixes.d.ts.map +1 -0
  493. package/lib/rules/oas3/boolean-parameter-prefixes.js +21 -0
  494. package/lib/rules/oas3/boolean-parameter-prefixes.js.map +1 -0
  495. package/lib/rules/oas3/component-name-unique.d.ts +3 -0
  496. package/lib/rules/oas3/component-name-unique.d.ts.map +1 -0
  497. package/lib/rules/oas3/component-name-unique.js +130 -0
  498. package/lib/rules/oas3/component-name-unique.js.map +1 -0
  499. package/lib/rules/oas3/index.d.ts +4 -0
  500. package/lib/rules/oas3/index.d.ts.map +1 -0
  501. package/lib/rules/oas3/index.js +129 -0
  502. package/lib/rules/oas3/index.js.map +1 -0
  503. package/lib/rules/oas3/no-empty-servers.d.ts +3 -0
  504. package/lib/rules/oas3/no-empty-servers.d.ts.map +1 -0
  505. package/lib/rules/oas3/no-empty-servers.js +20 -0
  506. package/lib/rules/oas3/no-empty-servers.js.map +1 -0
  507. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts +3 -0
  508. package/lib/rules/oas3/no-example-value-and-externalValue.d.ts.map +1 -0
  509. package/lib/rules/oas3/no-example-value-and-externalValue.js +13 -0
  510. package/lib/rules/oas3/no-example-value-and-externalValue.js.map +1 -0
  511. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts +3 -0
  512. package/lib/rules/oas3/no-invalid-media-type-examples.d.ts.map +1 -0
  513. package/lib/rules/oas3/no-invalid-media-type-examples.js +59 -0
  514. package/lib/rules/oas3/no-invalid-media-type-examples.js.map +1 -0
  515. package/lib/rules/oas3/no-server-example.com.d.ts +3 -0
  516. package/lib/rules/oas3/no-server-example.com.d.ts.map +1 -0
  517. package/lib/rules/oas3/no-server-example.com.js +15 -0
  518. package/lib/rules/oas3/no-server-example.com.js.map +1 -0
  519. package/lib/rules/oas3/no-server-trailing-slash.d.ts +3 -0
  520. package/lib/rules/oas3/no-server-trailing-slash.d.ts.map +1 -0
  521. package/lib/rules/oas3/no-server-trailing-slash.js +15 -0
  522. package/lib/rules/oas3/no-server-trailing-slash.js.map +1 -0
  523. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts +3 -0
  524. package/lib/rules/oas3/no-server-variables-empty-enum.d.ts.map +1 -0
  525. package/lib/rules/oas3/no-server-variables-empty-enum.js +58 -0
  526. package/lib/rules/oas3/no-server-variables-empty-enum.js.map +1 -0
  527. package/lib/rules/oas3/no-undefined-server-variable.d.ts +3 -0
  528. package/lib/rules/oas3/no-undefined-server-variable.d.ts.map +1 -0
  529. package/lib/rules/oas3/no-undefined-server-variable.js +28 -0
  530. package/lib/rules/oas3/no-undefined-server-variable.js.map +1 -0
  531. package/lib/rules/oas3/no-unused-components.d.ts +3 -0
  532. package/lib/rules/oas3/no-unused-components.d.ts.map +1 -0
  533. package/lib/rules/oas3/no-unused-components.js +83 -0
  534. package/lib/rules/oas3/no-unused-components.js.map +1 -0
  535. package/lib/rules/oas3/nullable-type-sibling.d.ts +3 -0
  536. package/lib/rules/oas3/nullable-type-sibling.d.ts.map +1 -0
  537. package/lib/rules/oas3/nullable-type-sibling.js +15 -0
  538. package/lib/rules/oas3/nullable-type-sibling.js.map +1 -0
  539. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts +6 -0
  540. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.d.ts.map +1 -0
  541. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js +33 -0
  542. package/lib/rules/oas3/operation-4xx-problem-details-rfc7807.js.map +1 -0
  543. package/lib/rules/oas3/request-mime-type.d.ts +3 -0
  544. package/lib/rules/oas3/request-mime-type.d.ts.map +1 -0
  545. package/lib/rules/oas3/request-mime-type.js +28 -0
  546. package/lib/rules/oas3/request-mime-type.js.map +1 -0
  547. package/lib/rules/oas3/response-contains-property.d.ts +3 -0
  548. package/lib/rules/oas3/response-contains-property.d.ts.map +1 -0
  549. package/lib/rules/oas3/response-contains-property.js +36 -0
  550. package/lib/rules/oas3/response-contains-property.js.map +1 -0
  551. package/lib/rules/oas3/response-mime-type.d.ts +3 -0
  552. package/lib/rules/oas3/response-mime-type.d.ts.map +1 -0
  553. package/lib/rules/oas3/response-mime-type.js +28 -0
  554. package/lib/rules/oas3/response-mime-type.js.map +1 -0
  555. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts +3 -0
  556. package/lib/rules/oas3/spec-components-invalid-map-name.d.ts.map +1 -0
  557. package/lib/rules/oas3/spec-components-invalid-map-name.js +59 -0
  558. package/lib/rules/oas3/spec-components-invalid-map-name.js.map +1 -0
  559. package/lib/rules/oas3/spec-discriminator-defaultMapping.d.ts +3 -0
  560. package/lib/rules/oas3/spec-discriminator-defaultMapping.d.ts.map +1 -0
  561. package/lib/rules/oas3/spec-discriminator-defaultMapping.js +32 -0
  562. package/lib/rules/oas3/spec-discriminator-defaultMapping.js.map +1 -0
  563. package/lib/rules/oas3/spec-example-values.d.ts +3 -0
  564. package/lib/rules/oas3/spec-example-values.d.ts.map +1 -0
  565. package/lib/rules/oas3/spec-example-values.js +31 -0
  566. package/lib/rules/oas3/spec-example-values.js.map +1 -0
  567. package/lib/rules/oas3/spec-no-invalid-encoding-combinations.d.ts +3 -0
  568. package/lib/rules/oas3/spec-no-invalid-encoding-combinations.d.ts.map +1 -0
  569. package/lib/rules/oas3/spec-no-invalid-encoding-combinations.js +16 -0
  570. package/lib/rules/oas3/spec-no-invalid-encoding-combinations.js.map +1 -0
  571. package/lib/rules/oas3/spec-no-invalid-tag-parents.d.ts +3 -0
  572. package/lib/rules/oas3/spec-no-invalid-tag-parents.d.ts.map +1 -0
  573. package/lib/rules/oas3/spec-no-invalid-tag-parents.js +38 -0
  574. package/lib/rules/oas3/spec-no-invalid-tag-parents.js.map +1 -0
  575. package/lib/rules/oas3/spec-querystring-parameters.d.ts +3 -0
  576. package/lib/rules/oas3/spec-querystring-parameters.d.ts.map +1 -0
  577. package/lib/rules/oas3/spec-querystring-parameters.js +65 -0
  578. package/lib/rules/oas3/spec-querystring-parameters.js.map +1 -0
  579. package/lib/rules/openrpc/index.d.ts +4 -0
  580. package/lib/rules/openrpc/index.d.ts.map +1 -0
  581. package/lib/rules/openrpc/index.js +20 -0
  582. package/lib/rules/openrpc/index.js.map +1 -0
  583. package/lib/rules/openrpc/no-unused-components.d.ts +3 -0
  584. package/lib/rules/openrpc/no-unused-components.d.ts.map +1 -0
  585. package/lib/rules/openrpc/no-unused-components.js +82 -0
  586. package/lib/rules/openrpc/no-unused-components.js.map +1 -0
  587. package/lib/rules/openrpc/spec-no-duplicated-method-params.d.ts +3 -0
  588. package/lib/rules/openrpc/spec-no-duplicated-method-params.d.ts.map +1 -0
  589. package/lib/rules/openrpc/spec-no-duplicated-method-params.js +28 -0
  590. package/lib/rules/openrpc/spec-no-duplicated-method-params.js.map +1 -0
  591. package/lib/rules/openrpc/spec-no-required-params-after-optional.d.ts +3 -0
  592. package/lib/rules/openrpc/spec-no-required-params-after-optional.d.ts.map +1 -0
  593. package/lib/rules/openrpc/spec-no-required-params-after-optional.js +31 -0
  594. package/lib/rules/openrpc/spec-no-required-params-after-optional.js.map +1 -0
  595. package/lib/rules/other/stats.d.ts +104 -0
  596. package/lib/rules/other/stats.d.ts.map +1 -0
  597. package/lib/rules/other/stats.js +190 -0
  598. package/lib/rules/other/stats.js.map +1 -0
  599. package/lib/rules/overlay1/index.d.ts +4 -0
  600. package/lib/rules/overlay1/index.d.ts.map +1 -0
  601. package/lib/rules/overlay1/index.js +12 -0
  602. package/lib/rules/overlay1/index.js.map +1 -0
  603. package/lib/rules/respect/no-criteria-xpath.d.ts +3 -0
  604. package/lib/rules/respect/no-criteria-xpath.d.ts.map +1 -0
  605. package/lib/rules/respect/no-criteria-xpath.js +20 -0
  606. package/lib/rules/respect/no-criteria-xpath.js.map +1 -0
  607. package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.d.ts +3 -0
  608. package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.d.ts.map +1 -0
  609. package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js +30 -0
  610. package/lib/rules/respect/no-x-security-both-scheme-and-scheme-name.js.map +1 -0
  611. package/lib/rules/respect/no-x-security-scheme-name-without-openapi.d.ts +3 -0
  612. package/lib/rules/respect/no-x-security-scheme-name-without-openapi.d.ts.map +1 -0
  613. package/lib/rules/respect/no-x-security-scheme-name-without-openapi.js +25 -0
  614. package/lib/rules/respect/no-x-security-scheme-name-without-openapi.js.map +1 -0
  615. package/lib/rules/respect/respect-supported-versions.d.ts +3 -0
  616. package/lib/rules/respect/respect-supported-versions.d.ts.map +1 -0
  617. package/lib/rules/respect/respect-supported-versions.js +18 -0
  618. package/lib/rules/respect/respect-supported-versions.js.map +1 -0
  619. package/lib/rules/respect/x-security-scheme-name-reference.d.ts +3 -0
  620. package/lib/rules/respect/x-security-scheme-name-reference.d.ts.map +1 -0
  621. package/lib/rules/respect/x-security-scheme-name-reference.js +35 -0
  622. package/lib/rules/respect/x-security-scheme-name-reference.js.map +1 -0
  623. package/lib/rules/respect/x-security-scheme-required-values.d.ts +3 -0
  624. package/lib/rules/respect/x-security-scheme-required-values.d.ts.map +1 -0
  625. package/lib/rules/respect/x-security-scheme-required-values.js +60 -0
  626. package/lib/rules/respect/x-security-scheme-required-values.js.map +1 -0
  627. package/lib/rules/utils.d.ts +30 -0
  628. package/lib/rules/utils.d.ts.map +1 -0
  629. package/lib/rules/utils.js +172 -0
  630. package/lib/rules/utils.js.map +1 -0
  631. package/lib/types/arazzo.d.ts +3 -0
  632. package/lib/types/arazzo.d.ts.map +1 -0
  633. package/lib/types/arazzo.js +482 -0
  634. package/lib/types/arazzo.js.map +1 -0
  635. package/lib/types/asyncapi2.d.ts +13 -0
  636. package/lib/types/asyncapi2.d.ts.map +1 -0
  637. package/lib/types/asyncapi2.js +1157 -0
  638. package/lib/types/asyncapi2.js.map +1 -0
  639. package/lib/types/asyncapi3.d.ts +3 -0
  640. package/lib/types/asyncapi3.d.ts.map +1 -0
  641. package/lib/types/asyncapi3.js +511 -0
  642. package/lib/types/asyncapi3.js.map +1 -0
  643. package/lib/types/entity.d.ts +9 -0
  644. package/lib/types/entity.d.ts.map +1 -0
  645. package/lib/types/entity.js +32 -0
  646. package/lib/types/entity.js.map +1 -0
  647. package/lib/types/index.d.ts +78 -0
  648. package/lib/types/index.d.ts.map +1 -0
  649. package/lib/types/index.js +90 -0
  650. package/lib/types/index.js.map +1 -0
  651. package/lib/types/json-schema-adapter.d.ts +12 -0
  652. package/lib/types/json-schema-adapter.d.ts.map +1 -0
  653. package/lib/types/json-schema-adapter.js +181 -0
  654. package/lib/types/json-schema-adapter.js.map +1 -0
  655. package/lib/types/json-schema-draft7.shared.d.ts +7 -0
  656. package/lib/types/json-schema-draft7.shared.d.ts.map +1 -0
  657. package/lib/types/json-schema-draft7.shared.js +101 -0
  658. package/lib/types/json-schema-draft7.shared.js.map +1 -0
  659. package/lib/types/oas2.d.ts +107 -0
  660. package/lib/types/oas2.d.ts.map +1 -0
  661. package/lib/types/oas2.js +454 -0
  662. package/lib/types/oas2.js.map +1 -0
  663. package/lib/types/oas3.d.ts +198 -0
  664. package/lib/types/oas3.d.ts.map +1 -0
  665. package/lib/types/oas3.js +828 -0
  666. package/lib/types/oas3.js.map +1 -0
  667. package/lib/types/oas3_1.d.ts +207 -0
  668. package/lib/types/oas3_1.d.ts.map +1 -0
  669. package/lib/types/oas3_1.js +292 -0
  670. package/lib/types/oas3_1.js.map +1 -0
  671. package/lib/types/oas3_2.d.ts +215 -0
  672. package/lib/types/oas3_2.d.ts.map +1 -0
  673. package/lib/types/oas3_2.js +306 -0
  674. package/lib/types/oas3_2.js.map +1 -0
  675. package/lib/types/openrpc.d.ts +136 -0
  676. package/lib/types/openrpc.d.ts.map +1 -0
  677. package/lib/types/openrpc.js +360 -0
  678. package/lib/types/openrpc.js.map +1 -0
  679. package/lib/types/overlay.d.ts +3 -0
  680. package/lib/types/overlay.d.ts.map +1 -0
  681. package/lib/types/overlay.js +61 -0
  682. package/lib/types/overlay.js.map +1 -0
  683. package/lib/types/redocly-yaml.d.ts +29 -0
  684. package/lib/types/redocly-yaml.d.ts.map +1 -0
  685. package/lib/types/redocly-yaml.js +573 -0
  686. package/lib/types/redocly-yaml.js.map +1 -0
  687. package/lib/typings/arazzo.d.ts +172 -0
  688. package/lib/typings/arazzo.d.ts.map +1 -0
  689. package/lib/typings/arazzo.js +3 -0
  690. package/lib/typings/arazzo.js.map +1 -0
  691. package/lib/typings/asyncapi.d.ts +22 -0
  692. package/lib/typings/asyncapi.d.ts.map +1 -0
  693. package/lib/typings/asyncapi.js +2 -0
  694. package/lib/typings/asyncapi.js.map +1 -0
  695. package/lib/typings/asyncapi3.d.ts +54 -0
  696. package/lib/typings/asyncapi3.d.ts.map +1 -0
  697. package/lib/typings/asyncapi3.js +2 -0
  698. package/lib/typings/asyncapi3.js.map +1 -0
  699. package/lib/typings/common.d.ts +13 -0
  700. package/lib/typings/common.d.ts.map +1 -0
  701. package/lib/typings/common.js +2 -0
  702. package/lib/typings/common.js.map +1 -0
  703. package/lib/typings/openapi.d.ts +420 -0
  704. package/lib/typings/openapi.d.ts.map +1 -0
  705. package/lib/typings/openapi.js +2 -0
  706. package/lib/typings/openapi.js.map +1 -0
  707. package/lib/typings/openrpc.d.ts +110 -0
  708. package/lib/typings/openrpc.d.ts.map +1 -0
  709. package/lib/typings/openrpc.js +2 -0
  710. package/lib/typings/openrpc.js.map +1 -0
  711. package/lib/typings/overlay.d.ts +18 -0
  712. package/lib/typings/overlay.d.ts.map +1 -0
  713. package/lib/typings/overlay.js +2 -0
  714. package/lib/typings/overlay.js.map +1 -0
  715. package/lib/typings/swagger.d.ts +218 -0
  716. package/lib/typings/swagger.d.ts.map +1 -0
  717. package/lib/typings/swagger.js +2 -0
  718. package/lib/typings/swagger.js.map +1 -0
  719. package/lib/utils/assign-config.d.ts +7 -0
  720. package/lib/utils/assign-config.d.ts.map +1 -0
  721. package/lib/utils/assign-config.js +28 -0
  722. package/lib/utils/assign-config.js.map +1 -0
  723. package/lib/utils/dequal.d.ts +6 -0
  724. package/lib/utils/dequal.d.ts.map +1 -0
  725. package/lib/utils/dequal.js +36 -0
  726. package/lib/utils/dequal.js.map +1 -0
  727. package/lib/utils/does-yaml-file-exist.d.ts +2 -0
  728. package/lib/utils/does-yaml-file-exist.d.ts.map +1 -0
  729. package/lib/utils/does-yaml-file-exist.js +7 -0
  730. package/lib/utils/does-yaml-file-exist.js.map +1 -0
  731. package/lib/utils/error.d.ts +3 -0
  732. package/lib/utils/error.d.ts.map +1 -0
  733. package/lib/utils/error.js +3 -0
  734. package/lib/utils/error.js.map +1 -0
  735. package/lib/utils/get-intersection-length.d.ts +2 -0
  736. package/lib/utils/get-intersection-length.d.ts.map +1 -0
  737. package/lib/utils/get-intersection-length.js +11 -0
  738. package/lib/utils/get-intersection-length.js.map +1 -0
  739. package/lib/utils/get-matching-status-code-range.d.ts +2 -0
  740. package/lib/utils/get-matching-status-code-range.d.ts.map +1 -0
  741. package/lib/utils/get-matching-status-code-range.js +4 -0
  742. package/lib/utils/get-matching-status-code-range.js.map +1 -0
  743. package/lib/utils/get-own.d.ts +2 -0
  744. package/lib/utils/get-own.d.ts.map +1 -0
  745. package/lib/utils/get-own.js +4 -0
  746. package/lib/utils/get-own.js.map +1 -0
  747. package/lib/utils/identity.d.ts +2 -0
  748. package/lib/utils/identity.d.ts.map +1 -0
  749. package/lib/utils/identity.js +4 -0
  750. package/lib/utils/identity.js.map +1 -0
  751. package/lib/utils/is-custom-rule-id.d.ts +2 -0
  752. package/lib/utils/is-custom-rule-id.d.ts.map +1 -0
  753. package/lib/utils/is-custom-rule-id.js +4 -0
  754. package/lib/utils/is-custom-rule-id.js.map +1 -0
  755. package/lib/utils/is-defined.d.ts +2 -0
  756. package/lib/utils/is-defined.d.ts.map +1 -0
  757. package/lib/utils/is-defined.js +4 -0
  758. package/lib/utils/is-defined.js.map +1 -0
  759. package/lib/utils/is-empty-array.d.ts +2 -0
  760. package/lib/utils/is-empty-array.d.ts.map +1 -0
  761. package/lib/utils/is-empty-array.js +4 -0
  762. package/lib/utils/is-empty-array.js.map +1 -0
  763. package/lib/utils/is-empty-object.d.ts +2 -0
  764. package/lib/utils/is-empty-object.d.ts.map +1 -0
  765. package/lib/utils/is-empty-object.js +5 -0
  766. package/lib/utils/is-empty-object.js.map +1 -0
  767. package/lib/utils/is-not-empty-array.d.ts +2 -0
  768. package/lib/utils/is-not-empty-array.d.ts.map +1 -0
  769. package/lib/utils/is-not-empty-array.js +4 -0
  770. package/lib/utils/is-not-empty-array.js.map +1 -0
  771. package/lib/utils/is-not-empty-object.d.ts +2 -0
  772. package/lib/utils/is-not-empty-object.d.ts.map +1 -0
  773. package/lib/utils/is-not-empty-object.js +6 -0
  774. package/lib/utils/is-not-empty-object.js.map +1 -0
  775. package/lib/utils/is-not-string.d.ts +2 -0
  776. package/lib/utils/is-not-string.d.ts.map +1 -0
  777. package/lib/utils/is-not-string.js +5 -0
  778. package/lib/utils/is-not-string.js.map +1 -0
  779. package/lib/utils/is-ordered.d.ts +7 -0
  780. package/lib/utils/is-ordered.d.ts.map +1 -0
  781. package/lib/utils/is-ordered.js +27 -0
  782. package/lib/utils/is-ordered.js.map +1 -0
  783. package/lib/utils/is-path-parameter.d.ts +2 -0
  784. package/lib/utils/is-path-parameter.d.ts.map +1 -0
  785. package/lib/utils/is-path-parameter.js +4 -0
  786. package/lib/utils/is-path-parameter.js.map +1 -0
  787. package/lib/utils/is-plain-object.d.ts +2 -0
  788. package/lib/utils/is-plain-object.d.ts.map +1 -0
  789. package/lib/utils/is-plain-object.js +4 -0
  790. package/lib/utils/is-plain-object.js.map +1 -0
  791. package/lib/utils/is-string.d.ts +2 -0
  792. package/lib/utils/is-string.d.ts.map +1 -0
  793. package/lib/utils/is-string.js +4 -0
  794. package/lib/utils/is-string.js.map +1 -0
  795. package/lib/utils/is-truthy.d.ts +3 -0
  796. package/lib/utils/is-truthy.d.ts.map +1 -0
  797. package/lib/utils/is-truthy.js +4 -0
  798. package/lib/utils/is-truthy.js.map +1 -0
  799. package/lib/utils/keys-of.d.ts +2 -0
  800. package/lib/utils/keys-of.d.ts.map +1 -0
  801. package/lib/utils/keys-of.js +6 -0
  802. package/lib/utils/keys-of.js.map +1 -0
  803. package/lib/utils/make-ref-id.d.ts +2 -0
  804. package/lib/utils/make-ref-id.d.ts.map +1 -0
  805. package/lib/utils/make-ref-id.js +4 -0
  806. package/lib/utils/make-ref-id.js.map +1 -0
  807. package/lib/utils/next-tick.d.ts +2 -0
  808. package/lib/utils/next-tick.d.ts.map +1 -0
  809. package/lib/utils/next-tick.js +6 -0
  810. package/lib/utils/next-tick.js.map +1 -0
  811. package/lib/utils/oas-has-component.d.ts +3 -0
  812. package/lib/utils/oas-has-component.d.ts.map +1 -0
  813. package/lib/utils/oas-has-component.js +4 -0
  814. package/lib/utils/oas-has-component.js.map +1 -0
  815. package/lib/utils/omit.d.ts +2 -0
  816. package/lib/utils/omit.d.ts.map +1 -0
  817. package/lib/utils/omit.js +8 -0
  818. package/lib/utils/omit.js.map +1 -0
  819. package/lib/utils/pause.d.ts +2 -0
  820. package/lib/utils/pause.d.ts.map +1 -0
  821. package/lib/utils/pause.js +4 -0
  822. package/lib/utils/pause.js.map +1 -0
  823. package/lib/utils/pluralize.d.ts +2 -0
  824. package/lib/utils/pluralize.d.ts.map +1 -0
  825. package/lib/utils/pluralize.js +8 -0
  826. package/lib/utils/pluralize.js.map +1 -0
  827. package/lib/utils/read-file-from-url.d.ts +6 -0
  828. package/lib/utils/read-file-from-url.d.ts.map +1 -0
  829. package/lib/utils/read-file-from-url.js +26 -0
  830. package/lib/utils/read-file-from-url.js.map +1 -0
  831. package/lib/utils/regex-from-string.d.ts +2 -0
  832. package/lib/utils/regex-from-string.d.ts.map +1 -0
  833. package/lib/utils/regex-from-string.js +5 -0
  834. package/lib/utils/regex-from-string.js.map +1 -0
  835. package/lib/utils/scorecards.d.ts +13 -0
  836. package/lib/utils/scorecards.d.ts.map +1 -0
  837. package/lib/utils/scorecards.js +99 -0
  838. package/lib/utils/scorecards.js.map +1 -0
  839. package/lib/utils/slash.d.ts +5 -0
  840. package/lib/utils/slash.d.ts.map +1 -0
  841. package/lib/utils/slash.js +11 -0
  842. package/lib/utils/slash.js.map +1 -0
  843. package/lib/utils/split-camel-case-into-words.d.ts +2 -0
  844. package/lib/utils/split-camel-case-into-words.d.ts.map +1 -0
  845. package/lib/utils/split-camel-case-into-words.js +13 -0
  846. package/lib/utils/split-camel-case-into-words.js.map +1 -0
  847. package/lib/utils/stack.d.ts +12 -0
  848. package/lib/utils/stack.d.ts.map +1 -0
  849. package/lib/utils/stack.js +7 -0
  850. package/lib/utils/stack.js.map +1 -0
  851. package/lib/utils/types.d.ts +5 -0
  852. package/lib/utils/types.d.ts.map +1 -0
  853. package/lib/utils/types.js +2 -0
  854. package/lib/utils/types.js.map +1 -0
  855. package/lib/utils/validate-mime-type.d.ts +4 -0
  856. package/lib/utils/validate-mime-type.d.ts.map +1 -0
  857. package/lib/utils/validate-mime-type.js +31 -0
  858. package/lib/utils/validate-mime-type.js.map +1 -0
  859. package/lib/utils/yaml-fs-helper.d.ts +6 -0
  860. package/lib/utils/yaml-fs-helper.d.ts.map +1 -0
  861. package/lib/utils/yaml-fs-helper.js +23 -0
  862. package/lib/utils/yaml-fs-helper.js.map +1 -0
  863. package/lib/visitors.d.ts +279 -0
  864. package/lib/visitors.d.ts.map +1 -0
  865. package/lib/visitors.js +177 -0
  866. package/lib/visitors.js.map +1 -0
  867. package/lib/walk.d.ts +81 -0
  868. package/lib/walk.d.ts.map +1 -0
  869. package/lib/walk.js +303 -0
  870. package/lib/walk.js.map +1 -0
  871. package/package.json +95 -0
@@ -0,0 +1,3 @@
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
+ export declare const PathSegmentPlural: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=path-segment-plural.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-segment-plural.d.ts","sourceRoot":"","sources":["../../../src/rules/common/path-segment-plural.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,iBAAiB,EAAE,QAAQ,GAAG,QA0B1C,CAAC"}
@@ -0,0 +1,30 @@
1
+ import pluralize from 'pluralize';
2
+ import { isPathParameter } from '../../utils/is-path-parameter.js';
3
+ export const PathSegmentPlural = (opts) => {
4
+ const { ignoreLastPathSegment, exceptions } = opts;
5
+ return {
6
+ PathItem: {
7
+ leave(_path, { report, key, location }) {
8
+ const pathKey = key.toString();
9
+ if (pathKey.startsWith('/')) {
10
+ const pathSegments = pathKey.split('/');
11
+ pathSegments.shift();
12
+ if (ignoreLastPathSegment && pathSegments.length > 0) {
13
+ pathSegments.pop();
14
+ }
15
+ for (const pathSegment of pathSegments) {
16
+ if (exceptions && exceptions.includes(pathSegment))
17
+ continue;
18
+ if (!isPathParameter(pathSegment) && pluralize.isSingular(pathSegment)) {
19
+ report({
20
+ message: `path segment \`${pathSegment}\` should be plural.`,
21
+ location: location.key(),
22
+ });
23
+ }
24
+ }
25
+ }
26
+ },
27
+ },
28
+ };
29
+ };
30
+ //# sourceMappingURL=path-segment-plural.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path-segment-plural.js","sourceRoot":"","sources":["../../../src/rules/common/path-segment-plural.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,MAAM,CAAC,MAAM,iBAAiB,GAAwB,CAAC,IAAI,EAAE,EAAE;IAC7D,MAAM,EAAE,qBAAqB,EAAE,UAAU,EAAE,GAAG,IAAI,CAAC;IACnD,OAAO;QACL,QAAQ,EAAE;YACR,KAAK,CAAC,KAAU,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAe;gBACtD,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;gBAC/B,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;oBAC5B,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;oBACxC,YAAY,CAAC,KAAK,EAAE,CAAC;oBACrB,IAAI,qBAAqB,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;wBACrD,YAAY,CAAC,GAAG,EAAE,CAAC;oBACrB,CAAC;oBAED,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;wBACvC,IAAI,UAAU,IAAI,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC;4BAAE,SAAS;wBAC7D,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,IAAI,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC;4BACvE,MAAM,CAAC;gCACL,OAAO,EAAE,kBAAkB,WAAW,sBAAsB;gCAC5D,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;6BACzB,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
+ export declare const PathsKebabCase: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=paths-kebab-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths-kebab-case.d.ts","sourceRoot":"","sources":["../../../src/rules/common/paths-kebab-case.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,cAAc,EAAE,QAAQ,GAAG,QAevC,CAAC"}
@@ -0,0 +1,17 @@
1
+ export const PathsKebabCase = () => {
2
+ return {
3
+ PathItem(_path, { report, key }) {
4
+ const segments = key
5
+ .substr(1)
6
+ .split('/')
7
+ .filter((s) => s !== ''); // filter out empty segments
8
+ if (!segments.every((segment) => /^{.+}$/.test(segment) || /^[a-z0-9-.]+$/.test(segment))) {
9
+ report({
10
+ message: `\`${key}\` does not use kebab-case.`,
11
+ location: { reportOnKey: true },
12
+ });
13
+ }
14
+ },
15
+ };
16
+ };
17
+ //# sourceMappingURL=paths-kebab-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths-kebab-case.js","sourceRoot":"","sources":["../../../src/rules/common/paths-kebab-case.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,cAAc,GAAwB,GAAG,EAAE;IACtD,OAAO;QACL,QAAQ,CAAC,KAAa,EAAE,EAAE,MAAM,EAAE,GAAG,EAAe;YAClD,MAAM,QAAQ,GAAI,GAAc;iBAC7B,MAAM,CAAC,CAAC,CAAC;iBACT,KAAK,CAAC,GAAG,CAAC;iBACV,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,4BAA4B;YACxD,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC;gBAC1F,MAAM,CAAC;oBACL,OAAO,EAAE,KAAK,GAAG,6BAA6B;oBAC9C,QAAQ,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE;iBAChC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas3Rule } from '../../visitors.js';
2
+ export declare const RequiredStringPropertyMissingMinLength: Oas3Rule;
3
+ //# sourceMappingURL=required-string-property-missing-min-length.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-string-property-missing-min-length.d.ts","sourceRoot":"","sources":["../../../src/rules/common/required-string-property-missing-min-length.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAGlD,eAAO,MAAM,sCAAsC,EAAE,QAsCpD,CAAC"}
@@ -0,0 +1,34 @@
1
+ export const RequiredStringPropertyMissingMinLength = () => {
2
+ let skipSchemaProperties;
3
+ let requiredPropertiesSet;
4
+ return {
5
+ Schema: {
6
+ enter(schema) {
7
+ if (!schema?.required) {
8
+ skipSchemaProperties = true;
9
+ return;
10
+ }
11
+ requiredPropertiesSet = new Set(schema.required);
12
+ skipSchemaProperties = false;
13
+ },
14
+ SchemaProperties: {
15
+ skip() {
16
+ return skipSchemaProperties;
17
+ },
18
+ Schema: {
19
+ enter(schema, { key, location, report }) {
20
+ if (requiredPropertiesSet.has(key) && schema.type === 'string') {
21
+ if (!schema?.minLength) {
22
+ report({
23
+ message: 'Property minLength is required.',
24
+ location: location.key(),
25
+ });
26
+ }
27
+ }
28
+ },
29
+ },
30
+ },
31
+ },
32
+ };
33
+ };
34
+ //# sourceMappingURL=required-string-property-missing-min-length.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"required-string-property-missing-min-length.js","sourceRoot":"","sources":["../../../src/rules/common/required-string-property-missing-min-length.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,MAAM,sCAAsC,GAAa,GAAG,EAAE;IACnE,IAAI,oBAA6B,CAAC;IAClC,IAAI,qBAAkC,CAAC;IAEvC,OAAO;QACL,MAAM,EAAE;YACN,KAAK,CAAC,MAA8C;gBAClD,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,CAAC;oBACtB,oBAAoB,GAAG,IAAI,CAAC;oBAC5B,OAAO;gBACT,CAAC;gBACD,qBAAqB,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;gBACjD,oBAAoB,GAAG,KAAK,CAAC;YAC/B,CAAC;YAED,gBAAgB,EAAE;gBAChB,IAAI;oBACF,OAAO,oBAAoB,CAAC;gBAC9B,CAAC;gBAED,MAAM,EAAE;oBACN,KAAK,CACH,MAA8C,EAC9C,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,EAAe;wBAEtC,IAAI,qBAAqB,CAAC,GAAG,CAAC,GAAa,CAAC,IAAI,MAAM,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;4BACzE,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC;gCACvB,MAAM,CAAC;oCACL,OAAO,EAAE,iCAAiC;oCAC1C,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;iCACzB,CAAC,CAAC;4BACL,CAAC;wBACH,CAAC;oBACH,CAAC;iBACF;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
+ export declare const ResponseContainsHeader: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=response-contains-header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-contains-header.d.ts","sourceRoot":"","sources":["../../../src/rules/common/response-contains-header.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG5D,eAAO,MAAM,sBAAsB,EAAE,QAAQ,GAAG,QA4B/C,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { getMatchingStatusCodeRange } from '../../utils/get-matching-status-code-range.js';
2
+ export const ResponseContainsHeader = (options) => {
3
+ const names = options.names || {};
4
+ return {
5
+ Operation: {
6
+ Response: {
7
+ enter: (response, { report, location, key }) => {
8
+ const expectedHeaders = names[key] ||
9
+ names[getMatchingStatusCodeRange(key)] ||
10
+ names[getMatchingStatusCodeRange(key).toLowerCase()] ||
11
+ [];
12
+ for (const expectedHeader of expectedHeaders) {
13
+ if (!response?.headers ||
14
+ !Object.keys(response?.headers).some((header) => header.toLowerCase() === expectedHeader.toLowerCase())) {
15
+ report({
16
+ message: `Response object must contain a "${expectedHeader}" header.`,
17
+ location: location.child('headers').key(),
18
+ });
19
+ }
20
+ }
21
+ },
22
+ },
23
+ },
24
+ };
25
+ };
26
+ //# sourceMappingURL=response-contains-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-contains-header.js","sourceRoot":"","sources":["../../../src/rules/common/response-contains-header.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,0BAA0B,EAAE,MAAM,+CAA+C,CAAC;AAI3F,MAAM,CAAC,MAAM,sBAAsB,GAAwB,CAAC,OAAO,EAAE,EAAE;IACrE,MAAM,KAAK,GAA6B,OAAO,CAAC,KAAK,IAAI,EAAE,CAAC;IAC5D,OAAO;QACL,SAAS,EAAE;YACT,QAAQ,EAAE;gBACR,KAAK,EAAE,CAAC,QAAqC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,EAAe,EAAE,EAAE;oBACvF,MAAM,eAAe,GACnB,KAAK,CAAC,GAAG,CAAC;wBACV,KAAK,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC;wBACtC,KAAK,CAAC,0BAA0B,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;wBACpD,EAAE,CAAC;oBACL,KAAK,MAAM,cAAc,IAAI,eAAe,EAAE,CAAC;wBAC7C,IACE,CAAC,QAAQ,EAAE,OAAO;4BAClB,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAClC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,cAAc,CAAC,WAAW,EAAE,CAClE,EACD,CAAC;4BACD,MAAM,CAAC;gCACL,OAAO,EAAE,mCAAmC,cAAc,WAAW;gCACrE,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,GAAG,EAAE;6BAC1C,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;aACF;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
+ export declare const ScalarPropertyMissingExample: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=scalar-property-missing-example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalar-property-missing-example.d.ts","sourceRoot":"","sources":["../../../src/rules/common/scalar-property-missing-example.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,4BAA4B,EAAE,QAAQ,GAAG,QA2BrD,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { getOwn } from '../../utils/get-own.js';
2
+ const SCALAR_TYPES = ['string', 'integer', 'number', 'boolean', 'null'];
3
+ export const ScalarPropertyMissingExample = () => {
4
+ return {
5
+ SchemaProperties(properties, { report, location, specVersion, resolve }) {
6
+ for (const propName of Object.keys(properties)) {
7
+ const propSchema = resolve(getOwn(properties, propName)).node;
8
+ if (!propSchema || !isScalarSchema(propSchema)) {
9
+ continue;
10
+ }
11
+ if (propSchema.example === undefined &&
12
+ propSchema.examples === undefined) {
13
+ report({
14
+ message: `Scalar property should have "example"${specVersion === 'oas3_1' || specVersion === 'oas3_2' ? ' or "examples"' : ''} defined.`,
15
+ location: location.child(propName).key(),
16
+ });
17
+ }
18
+ }
19
+ },
20
+ };
21
+ };
22
+ function isScalarSchema(schema) {
23
+ if (!schema.type) {
24
+ return false;
25
+ }
26
+ if (schema.allOf || schema.anyOf || schema.oneOf) {
27
+ // Skip allOf/oneOf/anyOf as it's complicated to validate it right now.
28
+ // We need core support for checking contrstrains through those keywords.
29
+ return false;
30
+ }
31
+ if (schema.format === 'binary') {
32
+ return false;
33
+ }
34
+ if (Array.isArray(schema.type)) {
35
+ return schema.type.every((t) => SCALAR_TYPES.includes(t));
36
+ }
37
+ return SCALAR_TYPES.includes(schema.type);
38
+ }
39
+ //# sourceMappingURL=scalar-property-missing-example.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalar-property-missing-example.js","sourceRoot":"","sources":["../../../src/rules/common/scalar-property-missing-example.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAIhD,MAAM,YAAY,GAAG,CAAC,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AAExE,MAAM,CAAC,MAAM,4BAA4B,GAAwB,GAAG,EAAE;IACpE,OAAO;QACL,gBAAgB,CACd,UAAsE,EACtE,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,EAAe;YAEvD,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC/C,MAAM,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC;gBAE9D,IAAI,CAAC,UAAU,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,CAAC;oBAC/C,SAAS;gBACX,CAAC;gBAED,IACE,UAAU,CAAC,OAAO,KAAK,SAAS;oBAC/B,UAA2B,CAAC,QAAQ,KAAK,SAAS,EACnD,CAAC;oBACD,MAAM,CAAC;wBACL,OAAO,EAAE,wCACP,WAAW,KAAK,QAAQ,IAAI,WAAW,KAAK,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,EAC5E,WAAW;wBACX,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE;qBACzC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,SAAS,cAAc,CAAC,MAA8C;IACpE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACjB,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,MAAM,CAAC,KAAK,IAAK,MAAqB,CAAC,KAAK,IAAK,MAAqB,CAAC,KAAK,EAAE,CAAC;QACjF,uEAAuE;QACvE,yEAAyE;QACzE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QAC/B,OAAO,KAAK,CAAC;IACf,CAAC;IAED,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
+ export declare const SecurityDefined: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=security-defined.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-defined.d.ts","sourceRoot":"","sources":["../../../src/rules/common/security-defined.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK5D,eAAO,MAAM,eAAe,EAAE,QAAQ,GAAG,QAuExC,CAAC"}
@@ -0,0 +1,62 @@
1
+ export const SecurityDefined = (opts) => {
2
+ const referencedSchemes = new Map();
3
+ const operationsWithoutSecurity = [];
4
+ let eachOperationHasSecurity = true;
5
+ let path;
6
+ return {
7
+ Root: {
8
+ leave(root, { report }) {
9
+ for (const [name, scheme] of referencedSchemes.entries()) {
10
+ if (scheme.defined)
11
+ continue;
12
+ for (const reportedFromLocation of scheme.from) {
13
+ report({
14
+ message: `There is no \`${name}\` security scheme defined.`,
15
+ location: reportedFromLocation.key(),
16
+ });
17
+ }
18
+ }
19
+ if (root.security || eachOperationHasSecurity) {
20
+ return;
21
+ }
22
+ else {
23
+ for (const operationLocation of operationsWithoutSecurity) {
24
+ report({
25
+ message: `Every operation should have security defined on it or on the root level.`,
26
+ location: operationLocation.key(),
27
+ });
28
+ }
29
+ }
30
+ },
31
+ },
32
+ SecurityScheme(_securityScheme, { key }) {
33
+ referencedSchemes.set(key.toString(), { defined: true, from: [] });
34
+ },
35
+ SecurityRequirement(requirements, { location }) {
36
+ for (const requirement of Object.keys(requirements)) {
37
+ const authScheme = referencedSchemes.get(requirement);
38
+ const requirementLocation = location.child([requirement]);
39
+ if (!authScheme) {
40
+ referencedSchemes.set(requirement, { from: [requirementLocation] });
41
+ }
42
+ else {
43
+ authScheme.from.push(requirementLocation);
44
+ }
45
+ }
46
+ },
47
+ PathItem: {
48
+ enter(pathItem, { key }) {
49
+ path = key;
50
+ },
51
+ Operation(operation, { location, key }) {
52
+ const isException = opts.exceptions?.some((item) => item.path === path &&
53
+ (!item.methods || item.methods?.some((method) => method.toLowerCase() === key)));
54
+ if (!operation?.security && !isException) {
55
+ eachOperationHasSecurity = false;
56
+ operationsWithoutSecurity.push(location);
57
+ }
58
+ },
59
+ },
60
+ };
61
+ };
62
+ //# sourceMappingURL=security-defined.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security-defined.js","sourceRoot":"","sources":["../../../src/rules/common/security-defined.ts"],"names":[],"mappings":"AAoBA,MAAM,CAAC,MAAM,eAAe,GAAwB,CAAC,IAEpD,EAAE,EAAE;IACH,MAAM,iBAAiB,GAAG,IAAI,GAAG,EAM9B,CAAC;IAEJ,MAAM,yBAAyB,GAAe,EAAE,CAAC;IACjD,IAAI,wBAAwB,GAAY,IAAI,CAAC;IAC7C,IAAI,IAAwB,CAAC;IAE7B,OAAO;QACL,IAAI,EAAE;YACJ,KAAK,CAA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,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,CAAC,mBAAmB,CAAC,EAAE,CAAC,CAAC;gBACtE,CAAC;qBAAM,CAAC;oBACN,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC;gBAC5C,CAAC;YACH,CAAC;QACH,CAAC;QACD,QAAQ,EAAE;YACR,KAAK,CAAC,QAAqC,EAAE,EAAE,GAAG,EAAe;gBAC/D,IAAI,GAAG,GAAa,CAAC;YACvB,CAAC;YACD,SAAS,CAAC,SAAwC,EAAE,EAAE,QAAQ,EAAE,GAAG,EAAe;gBAChF,MAAM,WAAW,GAAG,IAAI,CAAC,UAAU,EAAE,IAAI,CACvC,CAAC,IAAI,EAAE,EAAE,CACP,IAAI,CAAC,IAAI,KAAK,IAAI;oBAClB,CAAC,CAAC,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,CAAC,CAClF,CAAC;gBACF,IAAI,CAAC,SAAS,EAAE,QAAQ,IAAI,CAAC,WAAW,EAAE,CAAC;oBACzC,wBAAwB,GAAG,KAAK,CAAC;oBACjC,yBAAyB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;gBAC3C,CAAC;YACH,CAAC;SACF;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
+ export declare const SpecStrictRefs: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=spec-strict-refs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-strict-refs.d.ts","sourceRoot":"","sources":["../../../src/rules/common/spec-strict-refs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE5D,eAAO,MAAM,cAAc,EAAE,QAAQ,GAAG,QA0BvC,CAAC"}
@@ -0,0 +1,27 @@
1
+ import { isRef } from '../../ref-utils.js';
2
+ export const SpecStrictRefs = () => {
3
+ const nodesToSkip = [
4
+ 'Schema',
5
+ 'Response',
6
+ 'Parameter',
7
+ 'RequestBody',
8
+ 'Example',
9
+ 'Header',
10
+ 'SecurityScheme',
11
+ 'Link',
12
+ 'Callback',
13
+ 'PathItem',
14
+ ];
15
+ return {
16
+ any(_node, { report, rawNode, rawLocation, type }) {
17
+ const shouldCheck = !nodesToSkip.includes(type.name);
18
+ if (shouldCheck && isRef(rawNode)) {
19
+ report({
20
+ message: 'Field $ref is not expected here.',
21
+ location: rawLocation.child('$ref').key(),
22
+ });
23
+ }
24
+ },
25
+ };
26
+ };
27
+ //# sourceMappingURL=spec-strict-refs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spec-strict-refs.js","sourceRoot":"","sources":["../../../src/rules/common/spec-strict-refs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAG3C,MAAM,CAAC,MAAM,cAAc,GAAwB,GAAG,EAAE;IACtD,MAAM,WAAW,GAAG;QAClB,QAAQ;QACR,UAAU;QACV,WAAW;QACX,aAAa;QACb,SAAS;QACT,QAAQ;QACR,gBAAgB;QAChB,MAAM;QACN,UAAU;QACV,UAAU;KACX,CAAC;IAEF,OAAO;QACL,GAAG,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE;YAC/C,MAAM,WAAW,GAAG,CAAC,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAErD,IAAI,WAAW,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,CAAC;gBAClC,MAAM,CAAC;oBACL,OAAO,EAAE,kCAAkC;oBAC3C,QAAQ,EAAE,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE;iBAC1C,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas3Rule, Oas2Rule, Async2Rule, Async3Rule, Arazzo1Rule, Overlay1Rule, OpenRpc1Rule } from '../../visitors.js';
2
+ export declare const Struct: Oas3Rule | Oas2Rule | Async2Rule | Async3Rule | Arazzo1Rule | Overlay1Rule | OpenRpc1Rule;
3
+ //# sourceMappingURL=struct.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct.d.ts","sourceRoot":"","sources":["../../../src/rules/common/struct.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EACV,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,YAAY,EACZ,YAAY,EACb,MAAM,mBAAmB,CAAC;AAI3B,eAAO,MAAM,MAAM,EACf,QAAQ,GACR,QAAQ,GACR,UAAU,GACV,UAAU,GACV,WAAW,GACX,YAAY,GACZ,YAgKH,CAAC"}
@@ -0,0 +1,150 @@
1
+ import { isRef } from '../../ref-utils.js';
2
+ import { isNamedType, SpecExtension } from '../../types/index.js';
3
+ import { getOwn } from '../../utils/get-own.js';
4
+ import { isPlainObject } from '../../utils/is-plain-object.js';
5
+ import { oasTypeOf, matchesJsonSchemaType, getSuggest, validateSchemaEnumType } from '../utils.js';
6
+ export const Struct = () => {
7
+ return {
8
+ any(node, { report, type, location, rawLocation, key, resolve, ignoreNextVisitorsOnNode }) {
9
+ const nodeType = oasTypeOf(node);
10
+ const refLocation = rawLocation !== location ? rawLocation : undefined;
11
+ if (type.items) {
12
+ if (nodeType !== 'array') {
13
+ report({
14
+ message: `Expected type \`${type.name}\` (array) but got \`${nodeType}\``,
15
+ from: refLocation,
16
+ });
17
+ ignoreNextVisitorsOnNode();
18
+ }
19
+ return;
20
+ }
21
+ else if (nodeType !== 'object') {
22
+ if (type !== SpecExtension) {
23
+ // do not validate unknown extensions structure
24
+ report({
25
+ message: `Expected type \`${type.name}\` (object) but got \`${nodeType}\``,
26
+ from: refLocation,
27
+ });
28
+ }
29
+ ignoreNextVisitorsOnNode();
30
+ return;
31
+ }
32
+ const required = typeof type.required === 'function' ? type.required(node, key) : type.required;
33
+ for (const propName of required || []) {
34
+ if (!node.hasOwnProperty(propName)) {
35
+ report({
36
+ message: `The field \`${propName}\` must be present on this level.`,
37
+ from: refLocation,
38
+ location: [{ reportOnKey: true }],
39
+ });
40
+ }
41
+ }
42
+ const allowed = type.allowed?.(node);
43
+ if (allowed && isPlainObject(node)) {
44
+ for (const propName in node) {
45
+ if (allowed.includes(propName) ||
46
+ (type.extensionsPrefix && propName.startsWith(type.extensionsPrefix)) ||
47
+ !Object.keys(type.properties).includes(propName)) {
48
+ continue;
49
+ }
50
+ report({
51
+ message: `The field \`${propName}\` is not allowed here.`,
52
+ from: refLocation,
53
+ location: location.child([propName]).key(),
54
+ });
55
+ }
56
+ }
57
+ const requiredOneOf = type.requiredOneOf || null;
58
+ if (requiredOneOf) {
59
+ let hasProperty = false;
60
+ for (const propName of requiredOneOf || []) {
61
+ if (node.hasOwnProperty(propName)) {
62
+ hasProperty = true;
63
+ }
64
+ }
65
+ if (!hasProperty)
66
+ report({
67
+ message: `Must contain at least one of the following fields: ${type.requiredOneOf?.join(', ')}.`,
68
+ from: refLocation,
69
+ location: [{ reportOnKey: true }],
70
+ });
71
+ }
72
+ for (const propName of Object.keys(node)) {
73
+ const propLocation = location.child([propName]);
74
+ let propValue = node[propName];
75
+ let propType = getOwn(type.properties, propName);
76
+ if (propType === undefined)
77
+ propType = type.additionalProperties;
78
+ if (typeof propType === 'function')
79
+ propType = propType(propValue, propName);
80
+ if (isNamedType(propType)) {
81
+ continue; // do nothing for named schema, it is executed with the next any call
82
+ }
83
+ const propSchema = propType;
84
+ const propValueType = oasTypeOf(propValue);
85
+ if (propSchema === undefined) {
86
+ if (propName.startsWith('x-'))
87
+ continue;
88
+ report({
89
+ message: `Property \`${propName}\` is not expected here.`,
90
+ suggest: getSuggest(propName, Object.keys(type.properties)),
91
+ from: refLocation,
92
+ location: propLocation.key(),
93
+ });
94
+ continue;
95
+ }
96
+ if (propSchema === null) {
97
+ continue; // just defined, no validation
98
+ }
99
+ if (propSchema.resolvable !== false && isRef(propValue)) {
100
+ propValue = resolve(propValue).node;
101
+ }
102
+ if (propSchema.items && propSchema.items?.enum && Array.isArray(propValue)) {
103
+ for (let i = 0; i < propValue.length; i++) {
104
+ validateSchemaEnumType(propSchema.items?.enum, propValue[i], propName, refLocation, {
105
+ report,
106
+ location: location.child([propName, i]),
107
+ });
108
+ }
109
+ }
110
+ if (propSchema.enum) {
111
+ validateSchemaEnumType(propSchema.enum, propValue, propName, refLocation, {
112
+ report,
113
+ location: location.child([propName]),
114
+ });
115
+ }
116
+ else if (propSchema.type && !matchesJsonSchemaType(propValue, propSchema.type, false)) {
117
+ report({
118
+ message: `Expected type \`${propSchema.type}\` but got \`${propValueType}\`.`,
119
+ from: refLocation,
120
+ location: propLocation,
121
+ });
122
+ ignoreNextVisitorsOnNode();
123
+ }
124
+ else if (propValueType === 'array' && propSchema.items?.type) {
125
+ const itemsType = propSchema.items?.type;
126
+ for (let i = 0; i < propValue.length; i++) {
127
+ const item = propValue[i];
128
+ if (!matchesJsonSchemaType(item, itemsType, false)) {
129
+ report({
130
+ message: `Expected type \`${itemsType}\` but got \`${oasTypeOf(item)}\`.`,
131
+ from: refLocation,
132
+ location: propLocation.child([i]),
133
+ });
134
+ }
135
+ }
136
+ }
137
+ if (typeof propSchema.minimum === 'number') {
138
+ if (propSchema.minimum > node[propName]) {
139
+ report({
140
+ message: `The value of the ${propName} field must be greater than or equal to ${propSchema.minimum}`,
141
+ from: refLocation,
142
+ location: location.child([propName]),
143
+ });
144
+ }
145
+ }
146
+ }
147
+ },
148
+ };
149
+ };
150
+ //# sourceMappingURL=struct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"struct.js","sourceRoot":"","sources":["../../../src/rules/common/struct.ts"],"names":[],"mappings":"AAAA,OAAO,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Q,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,CAAC;yBACrC,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas3Rule, Oas2Rule } from '../../visitors.js';
2
+ export declare const TagDescription: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=tag-description.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-description.d.ts","sourceRoot":"","sources":["../../../src/rules/common/tag-description.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAI5D,eAAO,MAAM,cAAc,EAAE,QAAQ,GAAG,QAMvC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { validateDefinedAndNonEmpty } from '../utils.js';
2
+ export const TagDescription = () => {
3
+ return {
4
+ Tag(tag, ctx) {
5
+ validateDefinedAndNonEmpty('description', tag, ctx);
6
+ },
7
+ };
8
+ };
9
+ //# sourceMappingURL=tag-description.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tag-description.js","sourceRoot":"","sources":["../../../src/rules/common/tag-description.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAEzD,MAAM,CAAC,MAAM,cAAc,GAAwB,GAAG,EAAE;IACtD,OAAO;QACL,GAAG,CAAC,GAAkC,EAAE,GAAgB;YACtD,0BAA0B,CAAC,aAAa,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QACtD,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { Oas2Rule, Oas3Rule } from '../../visitors.js';
2
+ export declare const TagsAlphabetical: Oas3Rule | Oas2Rule;
3
+ //# sourceMappingURL=tags-alphabetical.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-alphabetical.d.ts","sourceRoot":"","sources":["../../../src/rules/common/tags-alphabetical.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAM5D,eAAO,MAAM,gBAAgB,EAAE,QAAQ,GAAG,QAczC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { getTagName } from '../utils.js';
2
+ export const TagsAlphabetical = ({ ignoreCase = false }) => {
3
+ return {
4
+ Root(root, { report, location }) {
5
+ if (!root.tags)
6
+ return;
7
+ for (let i = 0; i < root.tags.length - 1; i++) {
8
+ if (getTagName(root.tags[i], ignoreCase) > getTagName(root.tags[i + 1], ignoreCase)) {
9
+ report({
10
+ message: 'The `tags` array should be in alphabetical order.',
11
+ location: location.child(['tags', i]),
12
+ });
13
+ }
14
+ }
15
+ },
16
+ };
17
+ };
18
+ //# sourceMappingURL=tags-alphabetical.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-alphabetical.js","sourceRoot":"","sources":["../../../src/rules/common/tags-alphabetical.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAIzC,MAAM,CAAC,MAAM,gBAAgB,GAAwB,CAAC,EAAE,UAAU,GAAG,KAAK,EAAE,EAAE,EAAE;IAC9E,OAAO;QACL,IAAI,CAAC,IAAwC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAe;YAC9E,IAAI,CAAC,IAAI,CAAC,IAAI;gBAAE,OAAO;YACvB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;gBAC9C,IAAI,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,UAAU,CAAC,GAAG,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,CAAC;oBACpF,MAAM,CAAC;wBACL,OAAO,EAAE,mDAAmD;wBAC5D,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;qBACtC,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { Oas2Rule } from '../../visitors.js';
2
+ export type BooleanParameterPrefixesOptions = {
3
+ prefixes?: string[];
4
+ };
5
+ export declare const BooleanParameterPrefixes: Oas2Rule;
6
+ //# sourceMappingURL=boolean-parameter-prefixes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-parameter-prefixes.d.ts","sourceRoot":"","sources":["../../../src/rules/oas2/boolean-parameter-prefixes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,MAAM,+BAA+B,GAAG;IAC5C,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,QAmBtC,CAAC"}
@@ -0,0 +1,19 @@
1
+ export const BooleanParameterPrefixes = (options) => {
2
+ const prefixes = options.prefixes || ['is', 'has'];
3
+ const regexp = new RegExp(`^(${prefixes.join('|')})[A-Z-_]`);
4
+ const wrappedPrefixes = prefixes.map((p) => `\`${p}\``);
5
+ const prefixesString = wrappedPrefixes.length === 1
6
+ ? wrappedPrefixes[0]
7
+ : wrappedPrefixes.slice(0, -1).join(', ') + ' or ' + wrappedPrefixes[prefixes.length - 1];
8
+ return {
9
+ Parameter(param, { report, location }) {
10
+ if (param.type === 'boolean' && !regexp.test(param.name)) {
11
+ report({
12
+ message: `Boolean parameter \`${param.name}\` should have ${prefixesString} prefix.`,
13
+ location: location.child('name'),
14
+ });
15
+ }
16
+ },
17
+ };
18
+ };
19
+ //# sourceMappingURL=boolean-parameter-prefixes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boolean-parameter-prefixes.js","sourceRoot":"","sources":["../../../src/rules/oas2/boolean-parameter-prefixes.ts"],"names":[],"mappings":"AAMA,MAAM,CAAC,MAAM,wBAAwB,GAAa,CAAC,OAAwC,EAAE,EAAE;IAC7F,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACnD,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC;IAC7D,MAAM,eAAe,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACxD,MAAM,cAAc,GAClB,eAAe,CAAC,MAAM,KAAK,CAAC;QAC1B,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;QACpB,CAAC,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,MAAM,GAAG,eAAe,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAE9F,OAAO;QACL,SAAS,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;YACnC,IAAI,KAAK,CAAC,IAAI,KAAK,SAAS,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBACzD,MAAM,CAAC;oBACL,OAAO,EAAE,uBAAuB,KAAK,CAAC,IAAI,kBAAkB,cAAc,UAAU;oBACpF,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC;iBACjC,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Oas2RuleSet } from '../../oas-types.js';
2
+ export declare const rules: Oas2RuleSet<'built-in'>;
3
+ export declare const preprocessors: {};
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/oas2/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AA+CtD,eAAO,MAAM,KAAK,EAAE,WAAW,CAAC,UAAU,CA8CzC,CAAC;AAEF,eAAO,MAAM,aAAa,IAAK,CAAC"}