@scalar/openapi-parser 0.10.15 → 0.10.17

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 (332) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +0 -22
  3. package/dist/configuration/index.js +19 -22
  4. package/dist/configuration/index.js.map +7 -0
  5. package/dist/declarations.d.js +1 -0
  6. package/dist/declarations.d.js.map +7 -0
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +5 -29
  10. package/dist/index.js.map +7 -0
  11. package/dist/lib/Validator/Validator.d.ts +2 -2
  12. package/dist/lib/Validator/Validator.d.ts.map +1 -1
  13. package/dist/lib/Validator/Validator.js +99 -119
  14. package/dist/lib/Validator/Validator.js.map +7 -0
  15. package/dist/lib/Validator/Validator.test.js +8 -0
  16. package/dist/lib/Validator/Validator.test.js.map +7 -0
  17. package/dist/lib/Validator/index.d.ts +2 -2
  18. package/dist/lib/Validator/index.d.ts.map +1 -1
  19. package/dist/lib/Validator/index.js +3 -0
  20. package/dist/lib/Validator/index.js.map +7 -0
  21. package/dist/plugins/fetch-urls/fetchUrls.d.ts +1 -2
  22. package/dist/plugins/fetch-urls/fetchUrls.d.ts.map +1 -1
  23. package/dist/plugins/fetch-urls/fetchUrls.js +36 -111
  24. package/dist/plugins/fetch-urls/fetchUrls.js.map +7 -0
  25. package/dist/plugins/fetch-urls/fetchUrls.test.js +50 -0
  26. package/dist/plugins/fetch-urls/fetchUrls.test.js.map +7 -0
  27. package/dist/plugins/fetch-urls/index.d.ts +1 -1
  28. package/dist/plugins/fetch-urls/index.d.ts.map +1 -1
  29. package/dist/plugins/fetch-urls/index.js +2 -1
  30. package/dist/plugins/fetch-urls/index.js.map +7 -0
  31. package/dist/plugins/read-files/index.d.ts +1 -1
  32. package/dist/plugins/read-files/index.d.ts.map +1 -1
  33. package/dist/plugins/read-files/index.js +2 -1
  34. package/dist/plugins/read-files/index.js.map +7 -0
  35. package/dist/plugins/read-files/readFiles.d.ts +1 -1
  36. package/dist/plugins/read-files/readFiles.d.ts.map +1 -1
  37. package/dist/plugins/read-files/readFiles.js +50 -70
  38. package/dist/plugins/read-files/readFiles.js.map +7 -0
  39. package/dist/plugins/read-files/readFiles.test.js +20 -0
  40. package/dist/plugins/read-files/readFiles.test.js.map +7 -0
  41. package/dist/polyfills/index.d.ts +1 -1
  42. package/dist/polyfills/index.d.ts.map +1 -1
  43. package/dist/polyfills/index.js +5 -0
  44. package/dist/polyfills/index.js.map +7 -0
  45. package/dist/polyfills/path.js +155 -98
  46. package/dist/polyfills/path.js.map +7 -0
  47. package/dist/schemas/v2.0/schema.d.ts +1405 -0
  48. package/dist/schemas/v2.0/schema.d.ts.map +1 -0
  49. package/dist/schemas/v2.0/schema.js +1463 -0
  50. package/dist/schemas/v2.0/schema.js.map +7 -0
  51. package/dist/schemas/v3.0/schema.d.ts +1264 -0
  52. package/dist/schemas/v3.0/schema.d.ts.map +1 -0
  53. package/dist/schemas/v3.0/schema.js +1493 -0
  54. package/dist/schemas/v3.0/schema.js.map +7 -0
  55. package/dist/schemas/v3.1/schema.d.ts +1225 -0
  56. package/dist/schemas/v3.1/schema.d.ts.map +1 -0
  57. package/dist/schemas/v3.1/schema.js +1296 -0
  58. package/dist/schemas/v3.1/schema.js.map +7 -0
  59. package/dist/types/index.d.ts +5 -24
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/dist/types/index.js +1 -0
  62. package/dist/types/index.js.map +7 -0
  63. package/dist/utils/betterAjvErrors/helpers.js +88 -93
  64. package/dist/utils/betterAjvErrors/helpers.js.map +7 -0
  65. package/dist/utils/betterAjvErrors/index.js +14 -13
  66. package/dist/utils/betterAjvErrors/index.js.map +7 -0
  67. package/dist/utils/betterAjvErrors/json/get-meta-from-path.d.ts +2 -0
  68. package/dist/utils/betterAjvErrors/json/get-meta-from-path.d.ts.map +1 -0
  69. package/dist/utils/betterAjvErrors/json/get-meta-from-path.js +27 -0
  70. package/dist/utils/betterAjvErrors/json/get-meta-from-path.js.map +7 -0
  71. package/dist/utils/betterAjvErrors/json/index.d.ts +2 -0
  72. package/dist/utils/betterAjvErrors/json/index.d.ts.map +1 -0
  73. package/dist/utils/betterAjvErrors/json/index.js +5 -0
  74. package/dist/utils/betterAjvErrors/json/index.js.map +7 -0
  75. package/dist/utils/betterAjvErrors/json/utils.d.ts +2 -0
  76. package/dist/utils/betterAjvErrors/json/utils.d.ts.map +1 -0
  77. package/dist/utils/betterAjvErrors/json/utils.js +11 -0
  78. package/dist/utils/betterAjvErrors/json/utils.js.map +7 -0
  79. package/dist/utils/betterAjvErrors/utils.js +21 -14
  80. package/dist/utils/betterAjvErrors/utils.js.map +7 -0
  81. package/dist/utils/betterAjvErrors/validation-errors/additional-prop.d.ts +10 -0
  82. package/dist/utils/betterAjvErrors/validation-errors/additional-prop.d.ts.map +1 -0
  83. package/dist/utils/betterAjvErrors/validation-errors/additional-prop.js +8 -9
  84. package/dist/utils/betterAjvErrors/validation-errors/additional-prop.js.map +7 -0
  85. package/dist/utils/betterAjvErrors/validation-errors/base.d.ts +23 -0
  86. package/dist/utils/betterAjvErrors/validation-errors/base.d.ts.map +1 -0
  87. package/dist/utils/betterAjvErrors/validation-errors/base.js +6 -10
  88. package/dist/utils/betterAjvErrors/validation-errors/base.js.map +7 -0
  89. package/dist/utils/betterAjvErrors/validation-errors/default.d.ts +10 -0
  90. package/dist/utils/betterAjvErrors/validation-errors/default.d.ts.map +1 -0
  91. package/dist/utils/betterAjvErrors/validation-errors/default.js +8 -9
  92. package/dist/utils/betterAjvErrors/validation-errors/default.js.map +7 -0
  93. package/dist/utils/betterAjvErrors/validation-errors/enum.d.ts +11 -0
  94. package/dist/utils/betterAjvErrors/validation-errors/enum.d.ts.map +1 -0
  95. package/dist/utils/betterAjvErrors/validation-errors/enum.js +19 -29
  96. package/dist/utils/betterAjvErrors/validation-errors/enum.js.map +7 -0
  97. package/dist/utils/betterAjvErrors/validation-errors/index.d.ts +7 -0
  98. package/dist/utils/betterAjvErrors/validation-errors/index.d.ts.map +1 -0
  99. package/dist/utils/betterAjvErrors/validation-errors/index.js +15 -0
  100. package/dist/utils/betterAjvErrors/validation-errors/index.js.map +7 -0
  101. package/dist/utils/betterAjvErrors/validation-errors/pattern.d.ts +10 -0
  102. package/dist/utils/betterAjvErrors/validation-errors/pattern.d.ts.map +1 -0
  103. package/dist/utils/betterAjvErrors/validation-errors/pattern.js +8 -9
  104. package/dist/utils/betterAjvErrors/validation-errors/pattern.js.map +7 -0
  105. package/dist/utils/betterAjvErrors/validation-errors/required.d.ts +10 -0
  106. package/dist/utils/betterAjvErrors/validation-errors/required.d.ts.map +1 -0
  107. package/dist/utils/betterAjvErrors/validation-errors/required.js +8 -9
  108. package/dist/utils/betterAjvErrors/validation-errors/required.js.map +7 -0
  109. package/dist/utils/betterAjvErrors/validation-errors/unevaluated-prop.d.ts +10 -0
  110. package/dist/utils/betterAjvErrors/validation-errors/unevaluated-prop.d.ts.map +1 -0
  111. package/dist/utils/betterAjvErrors/validation-errors/unevaluated-prop.js +8 -9
  112. package/dist/utils/betterAjvErrors/validation-errors/unevaluated-prop.js.map +7 -0
  113. package/dist/utils/dereference.d.ts +2 -2
  114. package/dist/utils/dereference.d.ts.map +1 -1
  115. package/dist/utils/dereference.js +17 -19
  116. package/dist/utils/dereference.js.map +7 -0
  117. package/dist/utils/dereference.test.js +300 -0
  118. package/dist/utils/dereference.test.js.map +7 -0
  119. package/dist/utils/details.d.ts +1 -1
  120. package/dist/utils/details.d.ts.map +1 -1
  121. package/dist/utils/details.js +26 -28
  122. package/dist/utils/details.js.map +7 -0
  123. package/dist/utils/errors.test.js +48 -0
  124. package/dist/utils/errors.test.js.map +7 -0
  125. package/dist/utils/escapeJsonPointer.js +5 -8
  126. package/dist/utils/escapeJsonPointer.js.map +7 -0
  127. package/dist/utils/escapeJsonPointer.test.js +11 -0
  128. package/dist/utils/escapeJsonPointer.test.js.map +7 -0
  129. package/dist/utils/filter.d.ts +1 -1
  130. package/dist/utils/filter.d.ts.map +1 -1
  131. package/dist/utils/filter.js +13 -15
  132. package/dist/utils/filter.js.map +7 -0
  133. package/dist/utils/getEntrypoint.d.ts +1 -1
  134. package/dist/utils/getEntrypoint.d.ts.map +1 -1
  135. package/dist/utils/getEntrypoint.js +5 -6
  136. package/dist/utils/getEntrypoint.js.map +7 -0
  137. package/dist/utils/getEntrypoint.test.js +18 -0
  138. package/dist/utils/getEntrypoint.test.js.map +7 -0
  139. package/dist/utils/getListOfReferences.d.ts +1 -1
  140. package/dist/utils/getListOfReferences.d.ts.map +1 -1
  141. package/dist/utils/getListOfReferences.js +15 -22
  142. package/dist/utils/getListOfReferences.js.map +7 -0
  143. package/dist/utils/getSegmentsFromPath.js +8 -15
  144. package/dist/utils/getSegmentsFromPath.js.map +7 -0
  145. package/dist/utils/getSegmentsFromPath.test.js +13 -0
  146. package/dist/utils/getSegmentsFromPath.test.js.map +7 -0
  147. package/dist/utils/index.d.ts +26 -26
  148. package/dist/utils/index.d.ts.map +1 -1
  149. package/dist/utils/index.js +27 -0
  150. package/dist/utils/index.js.map +7 -0
  151. package/dist/utils/isFilesystem.d.ts +1 -2
  152. package/dist/utils/isFilesystem.d.ts.map +1 -1
  153. package/dist/utils/isFilesystem.js +5 -9
  154. package/dist/utils/isFilesystem.js.map +7 -0
  155. package/dist/utils/isJson.js +10 -9
  156. package/dist/utils/isJson.js.map +7 -0
  157. package/dist/utils/isObject.js +5 -6
  158. package/dist/utils/isObject.js.map +7 -0
  159. package/dist/utils/isObject.test.js +23 -0
  160. package/dist/utils/isObject.test.js.map +7 -0
  161. package/dist/utils/isYaml.js +16 -17
  162. package/dist/utils/isYaml.js.map +7 -0
  163. package/dist/utils/load/index.d.ts +1 -1
  164. package/dist/utils/load/index.d.ts.map +1 -1
  165. package/dist/utils/load/index.js +2 -0
  166. package/dist/utils/load/index.js.map +7 -0
  167. package/dist/utils/load/load.d.ts +3 -12
  168. package/dist/utils/load/load.d.ts.map +1 -1
  169. package/dist/utils/load/load.js +89 -149
  170. package/dist/utils/load/load.js.map +7 -0
  171. package/dist/utils/load/load.test.js +361 -0
  172. package/dist/utils/load/load.test.js.map +7 -0
  173. package/dist/utils/makeFilesystem.d.ts +2 -19
  174. package/dist/utils/makeFilesystem.d.ts.map +1 -1
  175. package/dist/utils/makeFilesystem.js +20 -68
  176. package/dist/utils/makeFilesystem.js.map +7 -0
  177. package/dist/utils/makeFilesystem.test.js +15 -0
  178. package/dist/utils/makeFilesystem.test.js.map +7 -0
  179. package/dist/utils/normalize.d.ts +1 -1
  180. package/dist/utils/normalize.d.ts.map +1 -1
  181. package/dist/utils/normalize.js +22 -27
  182. package/dist/utils/normalize.js.map +7 -0
  183. package/dist/utils/normalize.test.js +88 -0
  184. package/dist/utils/normalize.test.js.map +7 -0
  185. package/dist/utils/openapi/actions/details.d.ts +2 -2
  186. package/dist/utils/openapi/actions/details.d.ts.map +1 -1
  187. package/dist/utils/openapi/actions/details.js +9 -11
  188. package/dist/utils/openapi/actions/details.js.map +7 -0
  189. package/dist/utils/openapi/actions/files.d.ts +1 -1
  190. package/dist/utils/openapi/actions/files.d.ts.map +1 -1
  191. package/dist/utils/openapi/actions/files.js +7 -9
  192. package/dist/utils/openapi/actions/files.js.map +7 -0
  193. package/dist/utils/openapi/actions/get.d.ts +1 -1
  194. package/dist/utils/openapi/actions/get.d.ts.map +1 -1
  195. package/dist/utils/openapi/actions/get.js +9 -11
  196. package/dist/utils/openapi/actions/get.js.map +7 -0
  197. package/dist/utils/openapi/actions/toJson.d.ts +1 -1
  198. package/dist/utils/openapi/actions/toJson.d.ts.map +1 -1
  199. package/dist/utils/openapi/actions/toJson.js +9 -11
  200. package/dist/utils/openapi/actions/toJson.js.map +7 -0
  201. package/dist/utils/openapi/actions/toYaml.d.ts +1 -1
  202. package/dist/utils/openapi/actions/toYaml.d.ts.map +1 -1
  203. package/dist/utils/openapi/actions/toYaml.js +9 -11
  204. package/dist/utils/openapi/actions/toYaml.js.map +7 -0
  205. package/dist/utils/openapi/commands/dereferenceCommand.d.ts +5 -5
  206. package/dist/utils/openapi/commands/dereferenceCommand.d.ts.map +1 -1
  207. package/dist/utils/openapi/commands/dereferenceCommand.js +25 -27
  208. package/dist/utils/openapi/commands/dereferenceCommand.js.map +7 -0
  209. package/dist/utils/openapi/commands/filterCommand.d.ts +9 -9
  210. package/dist/utils/openapi/commands/filterCommand.d.ts.map +1 -1
  211. package/dist/utils/openapi/commands/filterCommand.js +24 -26
  212. package/dist/utils/openapi/commands/filterCommand.js.map +7 -0
  213. package/dist/utils/openapi/commands/loadCommand.d.ts +1174 -1174
  214. package/dist/utils/openapi/commands/loadCommand.d.ts.map +1 -1
  215. package/dist/utils/openapi/commands/loadCommand.js +40 -42
  216. package/dist/utils/openapi/commands/loadCommand.js.map +7 -0
  217. package/dist/utils/openapi/commands/upgradeCommand.d.ts +311 -311
  218. package/dist/utils/openapi/commands/upgradeCommand.d.ts.map +1 -1
  219. package/dist/utils/openapi/commands/upgradeCommand.js +27 -29
  220. package/dist/utils/openapi/commands/upgradeCommand.js.map +7 -0
  221. package/dist/utils/openapi/commands/validateCommand.d.ts +311 -311
  222. package/dist/utils/openapi/commands/validateCommand.d.ts.map +1 -1
  223. package/dist/utils/openapi/commands/validateCommand.js +31 -33
  224. package/dist/utils/openapi/commands/validateCommand.js.map +7 -0
  225. package/dist/utils/openapi/index.d.ts +1 -1
  226. package/dist/utils/openapi/index.d.ts.map +1 -1
  227. package/dist/utils/openapi/index.js +2 -0
  228. package/dist/utils/openapi/index.js.map +7 -0
  229. package/dist/utils/openapi/openapi.d.ts +700 -700
  230. package/dist/utils/openapi/openapi.d.ts.map +1 -1
  231. package/dist/utils/openapi/openapi.js +13 -16
  232. package/dist/utils/openapi/openapi.js.map +7 -0
  233. package/dist/utils/openapi/openapi.test-d.js +14 -0
  234. package/dist/utils/openapi/openapi.test-d.js.map +7 -0
  235. package/dist/utils/openapi/openapi.test.js +309 -0
  236. package/dist/utils/openapi/openapi.test.js.map +7 -0
  237. package/dist/utils/openapi/utils/queueTask.d.ts +1 -1
  238. package/dist/utils/openapi/utils/queueTask.d.ts.map +1 -1
  239. package/dist/utils/openapi/utils/queueTask.js +8 -9
  240. package/dist/utils/openapi/utils/queueTask.js.map +7 -0
  241. package/dist/utils/openapi/utils/workThroughQueue.d.ts +1 -1
  242. package/dist/utils/openapi/utils/workThroughQueue.d.ts.map +1 -1
  243. package/dist/utils/openapi/utils/workThroughQueue.js +49 -64
  244. package/dist/utils/openapi/utils/workThroughQueue.js.map +7 -0
  245. package/dist/utils/openapi/utils/workThroughQueue.test.js +244 -0
  246. package/dist/utils/openapi/utils/workThroughQueue.test.js.map +7 -0
  247. package/dist/utils/resolveReferences.d.ts +1 -7
  248. package/dist/utils/resolveReferences.d.ts.map +1 -1
  249. package/dist/utils/resolveReferences.js +91 -149
  250. package/dist/utils/resolveReferences.js.map +7 -0
  251. package/dist/utils/resolveReferences.test.js +567 -0
  252. package/dist/utils/resolveReferences.test.js.map +7 -0
  253. package/dist/utils/toJson.d.ts +1 -1
  254. package/dist/utils/toJson.d.ts.map +1 -1
  255. package/dist/utils/toJson.js +4 -2
  256. package/dist/utils/toJson.js.map +7 -0
  257. package/dist/utils/toYaml.d.ts +1 -1
  258. package/dist/utils/toYaml.d.ts.map +1 -1
  259. package/dist/utils/toYaml.js +5 -4
  260. package/dist/utils/toYaml.js.map +7 -0
  261. package/dist/utils/transform/index.d.ts +1 -1
  262. package/dist/utils/transform/index.d.ts.map +1 -1
  263. package/dist/utils/transform/index.js +2 -0
  264. package/dist/utils/transform/index.js.map +7 -0
  265. package/dist/utils/transform/sanitize.d.ts +3 -3
  266. package/dist/utils/transform/sanitize.d.ts.map +1 -1
  267. package/dist/utils/transform/sanitize.js +22 -21
  268. package/dist/utils/transform/sanitize.js.map +7 -0
  269. package/dist/utils/transform/sanitize.test.js +148 -0
  270. package/dist/utils/transform/sanitize.test.js.map +7 -0
  271. package/dist/utils/transform/utils/addInfoObject.d.ts +1 -1
  272. package/dist/utils/transform/utils/addInfoObject.d.ts.map +1 -1
  273. package/dist/utils/transform/utils/addInfoObject.js +14 -10
  274. package/dist/utils/transform/utils/addInfoObject.js.map +7 -0
  275. package/dist/utils/transform/utils/addLatestOpenApiVersion.d.ts +1 -1
  276. package/dist/utils/transform/utils/addLatestOpenApiVersion.d.ts.map +1 -1
  277. package/dist/utils/transform/utils/addLatestOpenApiVersion.js +8 -5
  278. package/dist/utils/transform/utils/addLatestOpenApiVersion.js.map +7 -0
  279. package/dist/utils/transform/utils/addMissingTags.d.ts +1 -1
  280. package/dist/utils/transform/utils/addMissingTags.d.ts.map +1 -1
  281. package/dist/utils/transform/utils/addMissingTags.js +26 -27
  282. package/dist/utils/transform/utils/addMissingTags.js.map +7 -0
  283. package/dist/utils/transform/utils/normalizeSecuritySchemes.d.ts +1 -1
  284. package/dist/utils/transform/utils/normalizeSecuritySchemes.d.ts.map +1 -1
  285. package/dist/utils/transform/utils/normalizeSecuritySchemes.js +36 -40
  286. package/dist/utils/transform/utils/normalizeSecuritySchemes.js.map +7 -0
  287. package/dist/utils/transform/utils/rejectSwaggerDocuments.d.ts +1 -1
  288. package/dist/utils/transform/utils/rejectSwaggerDocuments.d.ts.map +1 -1
  289. package/dist/utils/transform/utils/rejectSwaggerDocuments.js +8 -6
  290. package/dist/utils/transform/utils/rejectSwaggerDocuments.js.map +7 -0
  291. package/dist/utils/transformErrors.d.ts +1 -1
  292. package/dist/utils/transformErrors.d.ts.map +1 -1
  293. package/dist/utils/transformErrors.js +18 -21
  294. package/dist/utils/transformErrors.js.map +7 -0
  295. package/dist/utils/transformErrors.test.js +17 -0
  296. package/dist/utils/transformErrors.test.js.map +7 -0
  297. package/dist/utils/traverse.d.ts +1 -1
  298. package/dist/utils/traverse.d.ts.map +1 -1
  299. package/dist/utils/traverse.js +19 -22
  300. package/dist/utils/traverse.js.map +7 -0
  301. package/dist/utils/traverse.test.js +68 -0
  302. package/dist/utils/traverse.test.js.map +7 -0
  303. package/dist/utils/unescapeJsonPointer.js +5 -9
  304. package/dist/utils/unescapeJsonPointer.js.map +7 -0
  305. package/dist/utils/unescapeJsonPointer.test.js +19 -0
  306. package/dist/utils/unescapeJsonPointer.test.js.map +7 -0
  307. package/dist/utils/upgrade.d.ts +1 -1
  308. package/dist/utils/upgrade.d.ts.map +1 -1
  309. package/dist/utils/upgrade.js +22 -22
  310. package/dist/utils/upgrade.js.map +7 -0
  311. package/dist/utils/upgrade.test-d.js +16 -0
  312. package/dist/utils/upgrade.test-d.js.map +7 -0
  313. package/dist/utils/upgrade.test.js +57 -0
  314. package/dist/utils/upgrade.test.js.map +7 -0
  315. package/dist/utils/upgradeFromThreeToThreeOne.js +114 -140
  316. package/dist/utils/upgradeFromThreeToThreeOne.js.map +7 -0
  317. package/dist/utils/upgradeFromThreeToThreeOne.test.js +462 -0
  318. package/dist/utils/upgradeFromThreeToThreeOne.test.js.map +7 -0
  319. package/dist/utils/upgradeFromTwoToThree.js +212 -219
  320. package/dist/utils/upgradeFromTwoToThree.js.map +7 -0
  321. package/dist/utils/upgradeFromTwoToThree.test.js +589 -0
  322. package/dist/utils/upgradeFromTwoToThree.test.js.map +7 -0
  323. package/dist/utils/validate.d.ts +1 -1
  324. package/dist/utils/validate.d.ts.map +1 -1
  325. package/dist/utils/validate.js +14 -16
  326. package/dist/utils/validate.js.map +7 -0
  327. package/dist/utils/validate.test.js +64 -0
  328. package/dist/utils/validate.test.js.map +7 -0
  329. package/package.json +6 -8
  330. package/dist/schemas/v2.0/schema.json.js +0 -1623
  331. package/dist/schemas/v3.0/schema.json.js +0 -1673
  332. package/dist/schemas/v3.1/schema.json.js +0 -1451
@@ -0,0 +1,1463 @@
1
+ var schema_default = {
2
+ "title": "A JSON Schema for Swagger 2.0 API.",
3
+ "id": "http://swagger.io/v2/schema.json#",
4
+ "$schema": "http://json-schema.org/draft-04/schema#",
5
+ "type": "object",
6
+ "required": ["swagger", "info", "paths"],
7
+ "additionalProperties": false,
8
+ "patternProperties": {
9
+ "^x-": {
10
+ "$ref": "#/definitions/vendorExtension"
11
+ }
12
+ },
13
+ "properties": {
14
+ "swagger": {
15
+ "type": "string",
16
+ "enum": ["2.0"],
17
+ "description": "The Swagger version of this document."
18
+ },
19
+ "info": {
20
+ "$ref": "#/definitions/info"
21
+ },
22
+ "host": {
23
+ "type": "string",
24
+ "pattern": "^[^{}/ :\\\\]+(?::\\d+)?$",
25
+ "description": "The host (name or ip) of the API. Example: 'swagger.io'"
26
+ },
27
+ "basePath": {
28
+ "type": "string",
29
+ "pattern": "^/",
30
+ "description": "The base path to the API. Example: '/api'."
31
+ },
32
+ "schemes": {
33
+ "$ref": "#/definitions/schemesList"
34
+ },
35
+ "consumes": {
36
+ "description": "A list of MIME types accepted by the API.",
37
+ "allOf": [
38
+ {
39
+ "$ref": "#/definitions/mediaTypeList"
40
+ }
41
+ ]
42
+ },
43
+ "produces": {
44
+ "description": "A list of MIME types the API can produce.",
45
+ "allOf": [
46
+ {
47
+ "$ref": "#/definitions/mediaTypeList"
48
+ }
49
+ ]
50
+ },
51
+ "paths": {
52
+ "$ref": "#/definitions/paths"
53
+ },
54
+ "definitions": {
55
+ "$ref": "#/definitions/definitions"
56
+ },
57
+ "parameters": {
58
+ "$ref": "#/definitions/parameterDefinitions"
59
+ },
60
+ "responses": {
61
+ "$ref": "#/definitions/responseDefinitions"
62
+ },
63
+ "security": {
64
+ "$ref": "#/definitions/security"
65
+ },
66
+ "securityDefinitions": {
67
+ "$ref": "#/definitions/securityDefinitions"
68
+ },
69
+ "tags": {
70
+ "type": "array",
71
+ "items": {
72
+ "$ref": "#/definitions/tag"
73
+ },
74
+ "uniqueItems": true
75
+ },
76
+ "externalDocs": {
77
+ "$ref": "#/definitions/externalDocs"
78
+ }
79
+ },
80
+ "definitions": {
81
+ "info": {
82
+ "type": "object",
83
+ "description": "General information about the API.",
84
+ "required": ["version", "title"],
85
+ "additionalProperties": false,
86
+ "patternProperties": {
87
+ "^x-": {
88
+ "$ref": "#/definitions/vendorExtension"
89
+ }
90
+ },
91
+ "properties": {
92
+ "title": {
93
+ "type": "string",
94
+ "description": "A unique and precise title of the API."
95
+ },
96
+ "version": {
97
+ "type": "string",
98
+ "description": "A semantic version number of the API."
99
+ },
100
+ "description": {
101
+ "type": "string",
102
+ "description": "A longer description of the API. Should be different from the title. GitHub Flavored Markdown is allowed."
103
+ },
104
+ "termsOfService": {
105
+ "type": "string",
106
+ "description": "The terms of service for the API."
107
+ },
108
+ "contact": {
109
+ "$ref": "#/definitions/contact"
110
+ },
111
+ "license": {
112
+ "$ref": "#/definitions/license"
113
+ }
114
+ }
115
+ },
116
+ "contact": {
117
+ "type": "object",
118
+ "description": "Contact information for the owners of the API.",
119
+ "additionalProperties": false,
120
+ "properties": {
121
+ "name": {
122
+ "type": "string",
123
+ "description": "The identifying name of the contact person/organization."
124
+ },
125
+ "url": {
126
+ "type": "string",
127
+ "description": "The URL pointing to the contact information.",
128
+ "format": "uri"
129
+ },
130
+ "email": {
131
+ "type": "string",
132
+ "description": "The email address of the contact person/organization.",
133
+ "format": "email"
134
+ }
135
+ },
136
+ "patternProperties": {
137
+ "^x-": {
138
+ "$ref": "#/definitions/vendorExtension"
139
+ }
140
+ }
141
+ },
142
+ "license": {
143
+ "type": "object",
144
+ "required": ["name"],
145
+ "additionalProperties": false,
146
+ "properties": {
147
+ "name": {
148
+ "type": "string",
149
+ "description": "The name of the license type. It's encouraged to use an OSI compatible license."
150
+ },
151
+ "url": {
152
+ "type": "string",
153
+ "description": "The URL pointing to the license.",
154
+ "format": "uri"
155
+ }
156
+ },
157
+ "patternProperties": {
158
+ "^x-": {
159
+ "$ref": "#/definitions/vendorExtension"
160
+ }
161
+ }
162
+ },
163
+ "paths": {
164
+ "type": "object",
165
+ "description": "Relative paths to the individual endpoints. They must be relative to the 'basePath'.",
166
+ "patternProperties": {
167
+ "^x-": {
168
+ "$ref": "#/definitions/vendorExtension"
169
+ },
170
+ "^/": {
171
+ "$ref": "#/definitions/pathItem"
172
+ }
173
+ },
174
+ "additionalProperties": false
175
+ },
176
+ "definitions": {
177
+ "type": "object",
178
+ "additionalProperties": {
179
+ "$ref": "#/definitions/schema"
180
+ },
181
+ "description": "One or more JSON objects describing the schemas being consumed and produced by the API."
182
+ },
183
+ "parameterDefinitions": {
184
+ "type": "object",
185
+ "additionalProperties": {
186
+ "$ref": "#/definitions/parameter"
187
+ },
188
+ "description": "One or more JSON representations for parameters"
189
+ },
190
+ "responseDefinitions": {
191
+ "type": "object",
192
+ "additionalProperties": {
193
+ "$ref": "#/definitions/response"
194
+ },
195
+ "description": "One or more JSON representations for responses"
196
+ },
197
+ "externalDocs": {
198
+ "type": "object",
199
+ "additionalProperties": false,
200
+ "description": "information about external documentation",
201
+ "required": ["url"],
202
+ "properties": {
203
+ "description": {
204
+ "type": "string"
205
+ },
206
+ "url": {
207
+ "type": "string",
208
+ "format": "uri"
209
+ }
210
+ },
211
+ "patternProperties": {
212
+ "^x-": {
213
+ "$ref": "#/definitions/vendorExtension"
214
+ }
215
+ }
216
+ },
217
+ "examples": {
218
+ "type": "object",
219
+ "additionalProperties": true
220
+ },
221
+ "mimeType": {
222
+ "type": "string",
223
+ "description": "The MIME type of the HTTP message."
224
+ },
225
+ "operation": {
226
+ "type": "object",
227
+ "required": ["responses"],
228
+ "additionalProperties": false,
229
+ "patternProperties": {
230
+ "^x-": {
231
+ "$ref": "#/definitions/vendorExtension"
232
+ }
233
+ },
234
+ "properties": {
235
+ "tags": {
236
+ "type": "array",
237
+ "items": {
238
+ "type": "string"
239
+ },
240
+ "uniqueItems": true
241
+ },
242
+ "summary": {
243
+ "type": "string",
244
+ "description": "A brief summary of the operation."
245
+ },
246
+ "description": {
247
+ "type": "string",
248
+ "description": "A longer description of the operation, GitHub Flavored Markdown is allowed."
249
+ },
250
+ "externalDocs": {
251
+ "$ref": "#/definitions/externalDocs"
252
+ },
253
+ "operationId": {
254
+ "type": "string",
255
+ "description": "A unique identifier of the operation."
256
+ },
257
+ "produces": {
258
+ "description": "A list of MIME types the API can produce.",
259
+ "allOf": [
260
+ {
261
+ "$ref": "#/definitions/mediaTypeList"
262
+ }
263
+ ]
264
+ },
265
+ "consumes": {
266
+ "description": "A list of MIME types the API can consume.",
267
+ "allOf": [
268
+ {
269
+ "$ref": "#/definitions/mediaTypeList"
270
+ }
271
+ ]
272
+ },
273
+ "parameters": {
274
+ "$ref": "#/definitions/parametersList"
275
+ },
276
+ "responses": {
277
+ "$ref": "#/definitions/responses"
278
+ },
279
+ "schemes": {
280
+ "$ref": "#/definitions/schemesList"
281
+ },
282
+ "deprecated": {
283
+ "type": "boolean",
284
+ "default": false
285
+ },
286
+ "security": {
287
+ "$ref": "#/definitions/security"
288
+ }
289
+ }
290
+ },
291
+ "pathItem": {
292
+ "type": "object",
293
+ "additionalProperties": false,
294
+ "patternProperties": {
295
+ "^x-": {
296
+ "$ref": "#/definitions/vendorExtension"
297
+ }
298
+ },
299
+ "properties": {
300
+ "$ref": {
301
+ "type": "string"
302
+ },
303
+ "get": {
304
+ "$ref": "#/definitions/operation"
305
+ },
306
+ "put": {
307
+ "$ref": "#/definitions/operation"
308
+ },
309
+ "post": {
310
+ "$ref": "#/definitions/operation"
311
+ },
312
+ "delete": {
313
+ "$ref": "#/definitions/operation"
314
+ },
315
+ "options": {
316
+ "$ref": "#/definitions/operation"
317
+ },
318
+ "head": {
319
+ "$ref": "#/definitions/operation"
320
+ },
321
+ "patch": {
322
+ "$ref": "#/definitions/operation"
323
+ },
324
+ "parameters": {
325
+ "$ref": "#/definitions/parametersList"
326
+ }
327
+ }
328
+ },
329
+ "responses": {
330
+ "type": "object",
331
+ "description": "Response objects names can either be any valid HTTP status code or 'default'.",
332
+ "minProperties": 1,
333
+ "additionalProperties": false,
334
+ "patternProperties": {
335
+ "^([0-9]{3})$|^(default)$": {
336
+ "$ref": "#/definitions/responseValue"
337
+ },
338
+ "^x-": {
339
+ "$ref": "#/definitions/vendorExtension"
340
+ }
341
+ },
342
+ "not": {
343
+ "type": "object",
344
+ "additionalProperties": false,
345
+ "patternProperties": {
346
+ "^x-": {
347
+ "$ref": "#/definitions/vendorExtension"
348
+ }
349
+ }
350
+ }
351
+ },
352
+ "responseValue": {
353
+ "oneOf": [
354
+ {
355
+ "$ref": "#/definitions/response"
356
+ },
357
+ {
358
+ "$ref": "#/definitions/jsonReference"
359
+ }
360
+ ]
361
+ },
362
+ "response": {
363
+ "type": "object",
364
+ "required": ["description"],
365
+ "properties": {
366
+ "description": {
367
+ "type": "string"
368
+ },
369
+ "schema": {
370
+ "oneOf": [
371
+ {
372
+ "$ref": "#/definitions/schema"
373
+ },
374
+ {
375
+ "$ref": "#/definitions/fileSchema"
376
+ }
377
+ ]
378
+ },
379
+ "headers": {
380
+ "$ref": "#/definitions/headers"
381
+ },
382
+ "examples": {
383
+ "$ref": "#/definitions/examples"
384
+ }
385
+ },
386
+ "additionalProperties": false,
387
+ "patternProperties": {
388
+ "^x-": {
389
+ "$ref": "#/definitions/vendorExtension"
390
+ }
391
+ }
392
+ },
393
+ "headers": {
394
+ "type": "object",
395
+ "additionalProperties": {
396
+ "$ref": "#/definitions/header"
397
+ }
398
+ },
399
+ "header": {
400
+ "type": "object",
401
+ "additionalProperties": false,
402
+ "required": ["type"],
403
+ "properties": {
404
+ "type": {
405
+ "type": "string",
406
+ "enum": ["string", "number", "integer", "boolean", "array"]
407
+ },
408
+ "format": {
409
+ "type": "string"
410
+ },
411
+ "items": {
412
+ "$ref": "#/definitions/primitivesItems"
413
+ },
414
+ "collectionFormat": {
415
+ "$ref": "#/definitions/collectionFormat"
416
+ },
417
+ "default": {
418
+ "$ref": "#/definitions/default"
419
+ },
420
+ "maximum": {
421
+ "$ref": "#/definitions/maximum"
422
+ },
423
+ "exclusiveMaximum": {
424
+ "$ref": "#/definitions/exclusiveMaximum"
425
+ },
426
+ "minimum": {
427
+ "$ref": "#/definitions/minimum"
428
+ },
429
+ "exclusiveMinimum": {
430
+ "$ref": "#/definitions/exclusiveMinimum"
431
+ },
432
+ "maxLength": {
433
+ "$ref": "#/definitions/maxLength"
434
+ },
435
+ "minLength": {
436
+ "$ref": "#/definitions/minLength"
437
+ },
438
+ "pattern": {
439
+ "$ref": "#/definitions/pattern"
440
+ },
441
+ "maxItems": {
442
+ "$ref": "#/definitions/maxItems"
443
+ },
444
+ "minItems": {
445
+ "$ref": "#/definitions/minItems"
446
+ },
447
+ "uniqueItems": {
448
+ "$ref": "#/definitions/uniqueItems"
449
+ },
450
+ "enum": {
451
+ "$ref": "#/definitions/enum"
452
+ },
453
+ "multipleOf": {
454
+ "$ref": "#/definitions/multipleOf"
455
+ },
456
+ "description": {
457
+ "type": "string"
458
+ }
459
+ },
460
+ "patternProperties": {
461
+ "^x-": {
462
+ "$ref": "#/definitions/vendorExtension"
463
+ }
464
+ }
465
+ },
466
+ "vendorExtension": {
467
+ "description": "Any property starting with x- is valid.",
468
+ "additionalProperties": true,
469
+ "additionalItems": true
470
+ },
471
+ "bodyParameter": {
472
+ "type": "object",
473
+ "required": ["name", "in", "schema"],
474
+ "patternProperties": {
475
+ "^x-": {
476
+ "$ref": "#/definitions/vendorExtension"
477
+ }
478
+ },
479
+ "properties": {
480
+ "description": {
481
+ "type": "string",
482
+ "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."
483
+ },
484
+ "name": {
485
+ "type": "string",
486
+ "description": "The name of the parameter."
487
+ },
488
+ "in": {
489
+ "type": "string",
490
+ "description": "Determines the location of the parameter.",
491
+ "enum": ["body"]
492
+ },
493
+ "required": {
494
+ "type": "boolean",
495
+ "description": "Determines whether or not this parameter is required or optional.",
496
+ "default": false
497
+ },
498
+ "schema": {
499
+ "$ref": "#/definitions/schema"
500
+ }
501
+ },
502
+ "additionalProperties": false
503
+ },
504
+ "headerParameterSubSchema": {
505
+ "additionalProperties": false,
506
+ "patternProperties": {
507
+ "^x-": {
508
+ "$ref": "#/definitions/vendorExtension"
509
+ }
510
+ },
511
+ "properties": {
512
+ "required": {
513
+ "type": "boolean",
514
+ "description": "Determines whether or not this parameter is required or optional.",
515
+ "default": false
516
+ },
517
+ "in": {
518
+ "type": "string",
519
+ "description": "Determines the location of the parameter.",
520
+ "enum": ["header"]
521
+ },
522
+ "description": {
523
+ "type": "string",
524
+ "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."
525
+ },
526
+ "name": {
527
+ "type": "string",
528
+ "description": "The name of the parameter."
529
+ },
530
+ "type": {
531
+ "type": "string",
532
+ "enum": ["string", "number", "boolean", "integer", "array"]
533
+ },
534
+ "format": {
535
+ "type": "string"
536
+ },
537
+ "items": {
538
+ "$ref": "#/definitions/primitivesItems"
539
+ },
540
+ "collectionFormat": {
541
+ "$ref": "#/definitions/collectionFormat"
542
+ },
543
+ "default": {
544
+ "$ref": "#/definitions/default"
545
+ },
546
+ "maximum": {
547
+ "$ref": "#/definitions/maximum"
548
+ },
549
+ "exclusiveMaximum": {
550
+ "$ref": "#/definitions/exclusiveMaximum"
551
+ },
552
+ "minimum": {
553
+ "$ref": "#/definitions/minimum"
554
+ },
555
+ "exclusiveMinimum": {
556
+ "$ref": "#/definitions/exclusiveMinimum"
557
+ },
558
+ "maxLength": {
559
+ "$ref": "#/definitions/maxLength"
560
+ },
561
+ "minLength": {
562
+ "$ref": "#/definitions/minLength"
563
+ },
564
+ "pattern": {
565
+ "$ref": "#/definitions/pattern"
566
+ },
567
+ "maxItems": {
568
+ "$ref": "#/definitions/maxItems"
569
+ },
570
+ "minItems": {
571
+ "$ref": "#/definitions/minItems"
572
+ },
573
+ "uniqueItems": {
574
+ "$ref": "#/definitions/uniqueItems"
575
+ },
576
+ "enum": {
577
+ "$ref": "#/definitions/enum"
578
+ },
579
+ "multipleOf": {
580
+ "$ref": "#/definitions/multipleOf"
581
+ }
582
+ }
583
+ },
584
+ "queryParameterSubSchema": {
585
+ "additionalProperties": false,
586
+ "patternProperties": {
587
+ "^x-": {
588
+ "$ref": "#/definitions/vendorExtension"
589
+ }
590
+ },
591
+ "properties": {
592
+ "required": {
593
+ "type": "boolean",
594
+ "description": "Determines whether or not this parameter is required or optional.",
595
+ "default": false
596
+ },
597
+ "in": {
598
+ "type": "string",
599
+ "description": "Determines the location of the parameter.",
600
+ "enum": ["query"]
601
+ },
602
+ "description": {
603
+ "type": "string",
604
+ "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."
605
+ },
606
+ "name": {
607
+ "type": "string",
608
+ "description": "The name of the parameter."
609
+ },
610
+ "allowEmptyValue": {
611
+ "type": "boolean",
612
+ "default": false,
613
+ "description": "allows sending a parameter by name only or with an empty value."
614
+ },
615
+ "type": {
616
+ "type": "string",
617
+ "enum": ["string", "number", "boolean", "integer", "array"]
618
+ },
619
+ "format": {
620
+ "type": "string"
621
+ },
622
+ "items": {
623
+ "$ref": "#/definitions/primitivesItems"
624
+ },
625
+ "collectionFormat": {
626
+ "$ref": "#/definitions/collectionFormatWithMulti"
627
+ },
628
+ "default": {
629
+ "$ref": "#/definitions/default"
630
+ },
631
+ "maximum": {
632
+ "$ref": "#/definitions/maximum"
633
+ },
634
+ "exclusiveMaximum": {
635
+ "$ref": "#/definitions/exclusiveMaximum"
636
+ },
637
+ "minimum": {
638
+ "$ref": "#/definitions/minimum"
639
+ },
640
+ "exclusiveMinimum": {
641
+ "$ref": "#/definitions/exclusiveMinimum"
642
+ },
643
+ "maxLength": {
644
+ "$ref": "#/definitions/maxLength"
645
+ },
646
+ "minLength": {
647
+ "$ref": "#/definitions/minLength"
648
+ },
649
+ "pattern": {
650
+ "$ref": "#/definitions/pattern"
651
+ },
652
+ "maxItems": {
653
+ "$ref": "#/definitions/maxItems"
654
+ },
655
+ "minItems": {
656
+ "$ref": "#/definitions/minItems"
657
+ },
658
+ "uniqueItems": {
659
+ "$ref": "#/definitions/uniqueItems"
660
+ },
661
+ "enum": {
662
+ "$ref": "#/definitions/enum"
663
+ },
664
+ "multipleOf": {
665
+ "$ref": "#/definitions/multipleOf"
666
+ }
667
+ }
668
+ },
669
+ "formDataParameterSubSchema": {
670
+ "additionalProperties": false,
671
+ "patternProperties": {
672
+ "^x-": {
673
+ "$ref": "#/definitions/vendorExtension"
674
+ }
675
+ },
676
+ "properties": {
677
+ "required": {
678
+ "type": "boolean",
679
+ "description": "Determines whether or not this parameter is required or optional.",
680
+ "default": false
681
+ },
682
+ "in": {
683
+ "type": "string",
684
+ "description": "Determines the location of the parameter.",
685
+ "enum": ["formData"]
686
+ },
687
+ "description": {
688
+ "type": "string",
689
+ "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."
690
+ },
691
+ "name": {
692
+ "type": "string",
693
+ "description": "The name of the parameter."
694
+ },
695
+ "allowEmptyValue": {
696
+ "type": "boolean",
697
+ "default": false,
698
+ "description": "allows sending a parameter by name only or with an empty value."
699
+ },
700
+ "type": {
701
+ "type": "string",
702
+ "enum": ["string", "number", "boolean", "integer", "array", "file"]
703
+ },
704
+ "format": {
705
+ "type": "string"
706
+ },
707
+ "items": {
708
+ "$ref": "#/definitions/primitivesItems"
709
+ },
710
+ "collectionFormat": {
711
+ "$ref": "#/definitions/collectionFormatWithMulti"
712
+ },
713
+ "default": {
714
+ "$ref": "#/definitions/default"
715
+ },
716
+ "maximum": {
717
+ "$ref": "#/definitions/maximum"
718
+ },
719
+ "exclusiveMaximum": {
720
+ "$ref": "#/definitions/exclusiveMaximum"
721
+ },
722
+ "minimum": {
723
+ "$ref": "#/definitions/minimum"
724
+ },
725
+ "exclusiveMinimum": {
726
+ "$ref": "#/definitions/exclusiveMinimum"
727
+ },
728
+ "maxLength": {
729
+ "$ref": "#/definitions/maxLength"
730
+ },
731
+ "minLength": {
732
+ "$ref": "#/definitions/minLength"
733
+ },
734
+ "pattern": {
735
+ "$ref": "#/definitions/pattern"
736
+ },
737
+ "maxItems": {
738
+ "$ref": "#/definitions/maxItems"
739
+ },
740
+ "minItems": {
741
+ "$ref": "#/definitions/minItems"
742
+ },
743
+ "uniqueItems": {
744
+ "$ref": "#/definitions/uniqueItems"
745
+ },
746
+ "enum": {
747
+ "$ref": "#/definitions/enum"
748
+ },
749
+ "multipleOf": {
750
+ "$ref": "#/definitions/multipleOf"
751
+ }
752
+ }
753
+ },
754
+ "pathParameterSubSchema": {
755
+ "additionalProperties": false,
756
+ "patternProperties": {
757
+ "^x-": {
758
+ "$ref": "#/definitions/vendorExtension"
759
+ }
760
+ },
761
+ "required": ["required"],
762
+ "properties": {
763
+ "required": {
764
+ "type": "boolean",
765
+ "enum": [true],
766
+ "description": "Determines whether or not this parameter is required or optional."
767
+ },
768
+ "in": {
769
+ "type": "string",
770
+ "description": "Determines the location of the parameter.",
771
+ "enum": ["path"]
772
+ },
773
+ "description": {
774
+ "type": "string",
775
+ "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed."
776
+ },
777
+ "name": {
778
+ "type": "string",
779
+ "description": "The name of the parameter."
780
+ },
781
+ "type": {
782
+ "type": "string",
783
+ "enum": ["string", "number", "boolean", "integer", "array"]
784
+ },
785
+ "format": {
786
+ "type": "string"
787
+ },
788
+ "items": {
789
+ "$ref": "#/definitions/primitivesItems"
790
+ },
791
+ "collectionFormat": {
792
+ "$ref": "#/definitions/collectionFormat"
793
+ },
794
+ "default": {
795
+ "$ref": "#/definitions/default"
796
+ },
797
+ "maximum": {
798
+ "$ref": "#/definitions/maximum"
799
+ },
800
+ "exclusiveMaximum": {
801
+ "$ref": "#/definitions/exclusiveMaximum"
802
+ },
803
+ "minimum": {
804
+ "$ref": "#/definitions/minimum"
805
+ },
806
+ "exclusiveMinimum": {
807
+ "$ref": "#/definitions/exclusiveMinimum"
808
+ },
809
+ "maxLength": {
810
+ "$ref": "#/definitions/maxLength"
811
+ },
812
+ "minLength": {
813
+ "$ref": "#/definitions/minLength"
814
+ },
815
+ "pattern": {
816
+ "$ref": "#/definitions/pattern"
817
+ },
818
+ "maxItems": {
819
+ "$ref": "#/definitions/maxItems"
820
+ },
821
+ "minItems": {
822
+ "$ref": "#/definitions/minItems"
823
+ },
824
+ "uniqueItems": {
825
+ "$ref": "#/definitions/uniqueItems"
826
+ },
827
+ "enum": {
828
+ "$ref": "#/definitions/enum"
829
+ },
830
+ "multipleOf": {
831
+ "$ref": "#/definitions/multipleOf"
832
+ }
833
+ }
834
+ },
835
+ "nonBodyParameter": {
836
+ "type": "object",
837
+ "required": ["name", "in", "type"],
838
+ "oneOf": [
839
+ {
840
+ "$ref": "#/definitions/headerParameterSubSchema"
841
+ },
842
+ {
843
+ "$ref": "#/definitions/formDataParameterSubSchema"
844
+ },
845
+ {
846
+ "$ref": "#/definitions/queryParameterSubSchema"
847
+ },
848
+ {
849
+ "$ref": "#/definitions/pathParameterSubSchema"
850
+ }
851
+ ]
852
+ },
853
+ "parameter": {
854
+ "oneOf": [
855
+ {
856
+ "$ref": "#/definitions/bodyParameter"
857
+ },
858
+ {
859
+ "$ref": "#/definitions/nonBodyParameter"
860
+ }
861
+ ]
862
+ },
863
+ "schema": {
864
+ "type": "object",
865
+ "description": "A deterministic version of a JSON Schema object.",
866
+ "patternProperties": {
867
+ "^x-": {
868
+ "$ref": "#/definitions/vendorExtension"
869
+ }
870
+ },
871
+ "properties": {
872
+ "$ref": {
873
+ "type": "string"
874
+ },
875
+ "format": {
876
+ "type": "string"
877
+ },
878
+ "title": {
879
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/title"
880
+ },
881
+ "description": {
882
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/description"
883
+ },
884
+ "default": {
885
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/default"
886
+ },
887
+ "multipleOf": {
888
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
889
+ },
890
+ "maximum": {
891
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
892
+ },
893
+ "exclusiveMaximum": {
894
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
895
+ },
896
+ "minimum": {
897
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
898
+ },
899
+ "exclusiveMinimum": {
900
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
901
+ },
902
+ "maxLength": {
903
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
904
+ },
905
+ "minLength": {
906
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
907
+ },
908
+ "pattern": {
909
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
910
+ },
911
+ "maxItems": {
912
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
913
+ },
914
+ "minItems": {
915
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
916
+ },
917
+ "uniqueItems": {
918
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
919
+ },
920
+ "maxProperties": {
921
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
922
+ },
923
+ "minProperties": {
924
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
925
+ },
926
+ "required": {
927
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"
928
+ },
929
+ "enum": {
930
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
931
+ },
932
+ "additionalProperties": {
933
+ "anyOf": [
934
+ {
935
+ "$ref": "#/definitions/schema"
936
+ },
937
+ {
938
+ "type": "boolean"
939
+ }
940
+ ],
941
+ "default": {}
942
+ },
943
+ "type": {
944
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/type"
945
+ },
946
+ "items": {
947
+ "anyOf": [
948
+ {
949
+ "$ref": "#/definitions/schema"
950
+ },
951
+ {
952
+ "type": "array",
953
+ "minItems": 1,
954
+ "items": {
955
+ "$ref": "#/definitions/schema"
956
+ }
957
+ }
958
+ ],
959
+ "default": {}
960
+ },
961
+ "allOf": {
962
+ "type": "array",
963
+ "minItems": 1,
964
+ "items": {
965
+ "$ref": "#/definitions/schema"
966
+ }
967
+ },
968
+ "properties": {
969
+ "type": "object",
970
+ "additionalProperties": {
971
+ "$ref": "#/definitions/schema"
972
+ },
973
+ "default": {}
974
+ },
975
+ "discriminator": {
976
+ "type": "string"
977
+ },
978
+ "readOnly": {
979
+ "type": "boolean",
980
+ "default": false
981
+ },
982
+ "xml": {
983
+ "$ref": "#/definitions/xml"
984
+ },
985
+ "externalDocs": {
986
+ "$ref": "#/definitions/externalDocs"
987
+ },
988
+ "example": {}
989
+ },
990
+ "additionalProperties": false
991
+ },
992
+ "fileSchema": {
993
+ "type": "object",
994
+ "description": "A deterministic version of a JSON Schema object.",
995
+ "patternProperties": {
996
+ "^x-": {
997
+ "$ref": "#/definitions/vendorExtension"
998
+ }
999
+ },
1000
+ "required": ["type"],
1001
+ "properties": {
1002
+ "format": {
1003
+ "type": "string"
1004
+ },
1005
+ "title": {
1006
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/title"
1007
+ },
1008
+ "description": {
1009
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/description"
1010
+ },
1011
+ "default": {
1012
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/default"
1013
+ },
1014
+ "required": {
1015
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray"
1016
+ },
1017
+ "type": {
1018
+ "type": "string",
1019
+ "enum": ["file"]
1020
+ },
1021
+ "readOnly": {
1022
+ "type": "boolean",
1023
+ "default": false
1024
+ },
1025
+ "externalDocs": {
1026
+ "$ref": "#/definitions/externalDocs"
1027
+ },
1028
+ "example": {}
1029
+ },
1030
+ "additionalProperties": false
1031
+ },
1032
+ "primitivesItems": {
1033
+ "type": "object",
1034
+ "additionalProperties": false,
1035
+ "properties": {
1036
+ "type": {
1037
+ "type": "string",
1038
+ "enum": ["string", "number", "integer", "boolean", "array"]
1039
+ },
1040
+ "format": {
1041
+ "type": "string"
1042
+ },
1043
+ "items": {
1044
+ "$ref": "#/definitions/primitivesItems"
1045
+ },
1046
+ "collectionFormat": {
1047
+ "$ref": "#/definitions/collectionFormat"
1048
+ },
1049
+ "default": {
1050
+ "$ref": "#/definitions/default"
1051
+ },
1052
+ "maximum": {
1053
+ "$ref": "#/definitions/maximum"
1054
+ },
1055
+ "exclusiveMaximum": {
1056
+ "$ref": "#/definitions/exclusiveMaximum"
1057
+ },
1058
+ "minimum": {
1059
+ "$ref": "#/definitions/minimum"
1060
+ },
1061
+ "exclusiveMinimum": {
1062
+ "$ref": "#/definitions/exclusiveMinimum"
1063
+ },
1064
+ "maxLength": {
1065
+ "$ref": "#/definitions/maxLength"
1066
+ },
1067
+ "minLength": {
1068
+ "$ref": "#/definitions/minLength"
1069
+ },
1070
+ "pattern": {
1071
+ "$ref": "#/definitions/pattern"
1072
+ },
1073
+ "maxItems": {
1074
+ "$ref": "#/definitions/maxItems"
1075
+ },
1076
+ "minItems": {
1077
+ "$ref": "#/definitions/minItems"
1078
+ },
1079
+ "uniqueItems": {
1080
+ "$ref": "#/definitions/uniqueItems"
1081
+ },
1082
+ "enum": {
1083
+ "$ref": "#/definitions/enum"
1084
+ },
1085
+ "multipleOf": {
1086
+ "$ref": "#/definitions/multipleOf"
1087
+ }
1088
+ },
1089
+ "patternProperties": {
1090
+ "^x-": {
1091
+ "$ref": "#/definitions/vendorExtension"
1092
+ }
1093
+ }
1094
+ },
1095
+ "security": {
1096
+ "type": "array",
1097
+ "items": {
1098
+ "$ref": "#/definitions/securityRequirement"
1099
+ },
1100
+ "uniqueItems": true
1101
+ },
1102
+ "securityRequirement": {
1103
+ "type": "object",
1104
+ "additionalProperties": {
1105
+ "type": "array",
1106
+ "items": {
1107
+ "type": "string"
1108
+ },
1109
+ "uniqueItems": true
1110
+ }
1111
+ },
1112
+ "xml": {
1113
+ "type": "object",
1114
+ "additionalProperties": false,
1115
+ "properties": {
1116
+ "name": {
1117
+ "type": "string"
1118
+ },
1119
+ "namespace": {
1120
+ "type": "string"
1121
+ },
1122
+ "prefix": {
1123
+ "type": "string"
1124
+ },
1125
+ "attribute": {
1126
+ "type": "boolean",
1127
+ "default": false
1128
+ },
1129
+ "wrapped": {
1130
+ "type": "boolean",
1131
+ "default": false
1132
+ }
1133
+ },
1134
+ "patternProperties": {
1135
+ "^x-": {
1136
+ "$ref": "#/definitions/vendorExtension"
1137
+ }
1138
+ }
1139
+ },
1140
+ "tag": {
1141
+ "type": "object",
1142
+ "additionalProperties": false,
1143
+ "required": ["name"],
1144
+ "properties": {
1145
+ "name": {
1146
+ "type": "string"
1147
+ },
1148
+ "description": {
1149
+ "type": "string"
1150
+ },
1151
+ "externalDocs": {
1152
+ "$ref": "#/definitions/externalDocs"
1153
+ }
1154
+ },
1155
+ "patternProperties": {
1156
+ "^x-": {
1157
+ "$ref": "#/definitions/vendorExtension"
1158
+ }
1159
+ }
1160
+ },
1161
+ "securityDefinitions": {
1162
+ "type": "object",
1163
+ "additionalProperties": {
1164
+ "oneOf": [
1165
+ {
1166
+ "$ref": "#/definitions/basicAuthenticationSecurity"
1167
+ },
1168
+ {
1169
+ "$ref": "#/definitions/apiKeySecurity"
1170
+ },
1171
+ {
1172
+ "$ref": "#/definitions/oauth2ImplicitSecurity"
1173
+ },
1174
+ {
1175
+ "$ref": "#/definitions/oauth2PasswordSecurity"
1176
+ },
1177
+ {
1178
+ "$ref": "#/definitions/oauth2ApplicationSecurity"
1179
+ },
1180
+ {
1181
+ "$ref": "#/definitions/oauth2AccessCodeSecurity"
1182
+ }
1183
+ ]
1184
+ }
1185
+ },
1186
+ "basicAuthenticationSecurity": {
1187
+ "type": "object",
1188
+ "additionalProperties": false,
1189
+ "required": ["type"],
1190
+ "properties": {
1191
+ "type": {
1192
+ "type": "string",
1193
+ "enum": ["basic"]
1194
+ },
1195
+ "description": {
1196
+ "type": "string"
1197
+ }
1198
+ },
1199
+ "patternProperties": {
1200
+ "^x-": {
1201
+ "$ref": "#/definitions/vendorExtension"
1202
+ }
1203
+ }
1204
+ },
1205
+ "apiKeySecurity": {
1206
+ "type": "object",
1207
+ "additionalProperties": false,
1208
+ "required": ["type", "name", "in"],
1209
+ "properties": {
1210
+ "type": {
1211
+ "type": "string",
1212
+ "enum": ["apiKey"]
1213
+ },
1214
+ "name": {
1215
+ "type": "string"
1216
+ },
1217
+ "in": {
1218
+ "type": "string",
1219
+ "enum": ["header", "query"]
1220
+ },
1221
+ "description": {
1222
+ "type": "string"
1223
+ }
1224
+ },
1225
+ "patternProperties": {
1226
+ "^x-": {
1227
+ "$ref": "#/definitions/vendorExtension"
1228
+ }
1229
+ }
1230
+ },
1231
+ "oauth2ImplicitSecurity": {
1232
+ "type": "object",
1233
+ "additionalProperties": false,
1234
+ "required": ["type", "flow", "authorizationUrl"],
1235
+ "properties": {
1236
+ "type": {
1237
+ "type": "string",
1238
+ "enum": ["oauth2"]
1239
+ },
1240
+ "flow": {
1241
+ "type": "string",
1242
+ "enum": ["implicit"]
1243
+ },
1244
+ "scopes": {
1245
+ "$ref": "#/definitions/oauth2Scopes"
1246
+ },
1247
+ "authorizationUrl": {
1248
+ "type": "string",
1249
+ "format": "uri"
1250
+ },
1251
+ "description": {
1252
+ "type": "string"
1253
+ }
1254
+ },
1255
+ "patternProperties": {
1256
+ "^x-": {
1257
+ "$ref": "#/definitions/vendorExtension"
1258
+ }
1259
+ }
1260
+ },
1261
+ "oauth2PasswordSecurity": {
1262
+ "type": "object",
1263
+ "additionalProperties": false,
1264
+ "required": ["type", "flow", "tokenUrl"],
1265
+ "properties": {
1266
+ "type": {
1267
+ "type": "string",
1268
+ "enum": ["oauth2"]
1269
+ },
1270
+ "flow": {
1271
+ "type": "string",
1272
+ "enum": ["password"]
1273
+ },
1274
+ "scopes": {
1275
+ "$ref": "#/definitions/oauth2Scopes"
1276
+ },
1277
+ "tokenUrl": {
1278
+ "type": "string",
1279
+ "format": "uri"
1280
+ },
1281
+ "description": {
1282
+ "type": "string"
1283
+ }
1284
+ },
1285
+ "patternProperties": {
1286
+ "^x-": {
1287
+ "$ref": "#/definitions/vendorExtension"
1288
+ }
1289
+ }
1290
+ },
1291
+ "oauth2ApplicationSecurity": {
1292
+ "type": "object",
1293
+ "additionalProperties": false,
1294
+ "required": ["type", "flow", "tokenUrl"],
1295
+ "properties": {
1296
+ "type": {
1297
+ "type": "string",
1298
+ "enum": ["oauth2"]
1299
+ },
1300
+ "flow": {
1301
+ "type": "string",
1302
+ "enum": ["application"]
1303
+ },
1304
+ "scopes": {
1305
+ "$ref": "#/definitions/oauth2Scopes"
1306
+ },
1307
+ "tokenUrl": {
1308
+ "type": "string",
1309
+ "format": "uri"
1310
+ },
1311
+ "description": {
1312
+ "type": "string"
1313
+ }
1314
+ },
1315
+ "patternProperties": {
1316
+ "^x-": {
1317
+ "$ref": "#/definitions/vendorExtension"
1318
+ }
1319
+ }
1320
+ },
1321
+ "oauth2AccessCodeSecurity": {
1322
+ "type": "object",
1323
+ "additionalProperties": false,
1324
+ "required": ["type", "flow", "authorizationUrl", "tokenUrl"],
1325
+ "properties": {
1326
+ "type": {
1327
+ "type": "string",
1328
+ "enum": ["oauth2"]
1329
+ },
1330
+ "flow": {
1331
+ "type": "string",
1332
+ "enum": ["accessCode"]
1333
+ },
1334
+ "scopes": {
1335
+ "$ref": "#/definitions/oauth2Scopes"
1336
+ },
1337
+ "authorizationUrl": {
1338
+ "type": "string",
1339
+ "format": "uri"
1340
+ },
1341
+ "tokenUrl": {
1342
+ "type": "string",
1343
+ "format": "uri"
1344
+ },
1345
+ "description": {
1346
+ "type": "string"
1347
+ }
1348
+ },
1349
+ "patternProperties": {
1350
+ "^x-": {
1351
+ "$ref": "#/definitions/vendorExtension"
1352
+ }
1353
+ }
1354
+ },
1355
+ "oauth2Scopes": {
1356
+ "type": "object",
1357
+ "additionalProperties": {
1358
+ "type": "string"
1359
+ }
1360
+ },
1361
+ "mediaTypeList": {
1362
+ "type": "array",
1363
+ "items": {
1364
+ "$ref": "#/definitions/mimeType"
1365
+ },
1366
+ "uniqueItems": true
1367
+ },
1368
+ "parametersList": {
1369
+ "type": "array",
1370
+ "description": "The parameters needed to send a valid API call.",
1371
+ "additionalItems": false,
1372
+ "items": {
1373
+ "oneOf": [
1374
+ {
1375
+ "$ref": "#/definitions/parameter"
1376
+ },
1377
+ {
1378
+ "$ref": "#/definitions/jsonReference"
1379
+ }
1380
+ ]
1381
+ },
1382
+ "uniqueItems": true
1383
+ },
1384
+ "schemesList": {
1385
+ "type": "array",
1386
+ "description": "The transfer protocol of the API.",
1387
+ "items": {
1388
+ "type": "string",
1389
+ "enum": ["http", "https", "ws", "wss"]
1390
+ },
1391
+ "uniqueItems": true
1392
+ },
1393
+ "collectionFormat": {
1394
+ "type": "string",
1395
+ "enum": ["csv", "ssv", "tsv", "pipes"],
1396
+ "default": "csv"
1397
+ },
1398
+ "collectionFormatWithMulti": {
1399
+ "type": "string",
1400
+ "enum": ["csv", "ssv", "tsv", "pipes", "multi"],
1401
+ "default": "csv"
1402
+ },
1403
+ "title": {
1404
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/title"
1405
+ },
1406
+ "description": {
1407
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/description"
1408
+ },
1409
+ "default": {
1410
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/default"
1411
+ },
1412
+ "multipleOf": {
1413
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf"
1414
+ },
1415
+ "maximum": {
1416
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum"
1417
+ },
1418
+ "exclusiveMaximum": {
1419
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum"
1420
+ },
1421
+ "minimum": {
1422
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum"
1423
+ },
1424
+ "exclusiveMinimum": {
1425
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum"
1426
+ },
1427
+ "maxLength": {
1428
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
1429
+ },
1430
+ "minLength": {
1431
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
1432
+ },
1433
+ "pattern": {
1434
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern"
1435
+ },
1436
+ "maxItems": {
1437
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger"
1438
+ },
1439
+ "minItems": {
1440
+ "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0"
1441
+ },
1442
+ "uniqueItems": {
1443
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems"
1444
+ },
1445
+ "enum": {
1446
+ "$ref": "http://json-schema.org/draft-04/schema#/properties/enum"
1447
+ },
1448
+ "jsonReference": {
1449
+ "type": "object",
1450
+ "required": ["$ref"],
1451
+ "additionalProperties": false,
1452
+ "properties": {
1453
+ "$ref": {
1454
+ "type": "string"
1455
+ }
1456
+ }
1457
+ }
1458
+ }
1459
+ };
1460
+ export {
1461
+ schema_default as default
1462
+ };
1463
+ //# sourceMappingURL=schema.js.map