@scalar/openapi-parser 0.7.0 → 0.7.2

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