@scalar/openapi-parser 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/configuration.d.ts +3907 -0
  3. package/dist/index.d.ts +29 -5877
  4. package/dist/lib/Validator/Validator.d.ts +33 -0
  5. package/dist/pipeline.d.ts +445 -0
  6. package/dist/schemas/v2.0/schema.json.js +1623 -0
  7. package/dist/schemas/v3.0/schema.json.js +1673 -0
  8. package/dist/schemas/v3.1/schema.json.js +1452 -0
  9. package/dist/src/configuration.js +22 -0
  10. package/dist/src/index.js +27 -0
  11. package/dist/src/lib/Validator/Validator.js +94 -0
  12. package/dist/src/pipeline.js +131 -0
  13. package/dist/src/polyfills/path.js +83 -0
  14. package/dist/src/utils/betterAjvErrors/helpers.js +89 -0
  15. package/dist/src/utils/betterAjvErrors/index.js +15 -0
  16. package/dist/src/utils/betterAjvErrors/utils.js +17 -0
  17. package/dist/src/utils/betterAjvErrors/validation-errors/additional-prop.js +18 -0
  18. package/dist/src/utils/betterAjvErrors/validation-errors/base.js +23 -0
  19. package/dist/src/utils/betterAjvErrors/validation-errors/default.js +18 -0
  20. package/dist/src/utils/betterAjvErrors/validation-errors/enum.js +41 -0
  21. package/dist/src/utils/betterAjvErrors/validation-errors/pattern.js +18 -0
  22. package/dist/src/utils/betterAjvErrors/validation-errors/required.js +17 -0
  23. package/dist/src/utils/betterAjvErrors/validation-errors/unevaluated-prop.js +18 -0
  24. package/dist/src/utils/dereference.js +18 -0
  25. package/dist/src/utils/details.js +22 -0
  26. package/dist/src/utils/escapeJsonPointer.js +5 -0
  27. package/dist/src/utils/filter.js +12 -0
  28. package/dist/src/utils/getEntrypoint.js +5 -0
  29. package/dist/src/utils/getListOfReferences.js +17 -0
  30. package/dist/src/utils/getSegmentsFromPath.js +10 -0
  31. package/dist/src/utils/isFilesystem.js +5 -0
  32. package/dist/src/utils/isJson.js +10 -0
  33. package/dist/src/utils/isObject.js +3 -0
  34. package/dist/src/utils/isYaml.js +16 -0
  35. package/dist/src/utils/load/load.js +46 -0
  36. package/dist/src/utils/load/plugins/fetchUrlsPlugin.js +38 -0
  37. package/dist/src/utils/load/plugins/readFilesPlugin.js +50 -0
  38. package/dist/src/utils/makeFilesystem.js +22 -0
  39. package/dist/src/utils/normalize.js +18 -0
  40. package/dist/src/utils/resolveReferences.js +106 -0
  41. package/dist/src/utils/toJson.js +3 -0
  42. package/dist/src/utils/toYaml.js +5 -0
  43. package/dist/src/utils/transformErrors.js +19 -0
  44. package/dist/src/utils/traverse.js +20 -0
  45. package/dist/src/utils/unescapeJsonPointer.js +5 -0
  46. package/dist/src/utils/upgrade.js +17 -0
  47. package/dist/src/utils/upgradeFromThreeToThreeOne.js +71 -0
  48. package/dist/src/utils/upgradeFromTwoToThree.js +5 -0
  49. package/dist/src/utils/validate.js +15 -0
  50. package/dist/types/index.d.ts +42 -0
  51. package/dist/types/openapi.d.ts +747 -0
  52. package/dist/utils/dereference.d.ts +8 -0
  53. package/dist/utils/details.d.ts +12 -0
  54. package/dist/utils/escapeJsonPointer.d.ts +8 -0
  55. package/dist/utils/filter.d.ts +8 -0
  56. package/dist/utils/getEntrypoint.d.ts +8 -0
  57. package/dist/utils/getListOfReferences.d.ts +10 -0
  58. package/dist/utils/getSegmentsFromPath.d.ts +6 -0
  59. package/dist/utils/isFilesystem.d.ts +6 -0
  60. package/dist/utils/isJson.d.ts +3 -0
  61. package/dist/utils/isObject.d.ts +6 -0
  62. package/dist/utils/isYaml.d.ts +3 -0
  63. package/dist/utils/load/load.d.ts +16 -0
  64. package/dist/utils/load/plugins/fetchUrlsPlugin.d.ts +10 -0
  65. package/dist/utils/load/plugins/readFilesPlugin.d.ts +5 -0
  66. package/dist/utils/normalize.d.ts +9 -0
  67. package/dist/utils/resolveReferences.d.ts +14 -0
  68. package/dist/utils/toJson.d.ts +5 -0
  69. package/dist/utils/toYaml.d.ts +5 -0
  70. package/dist/utils/transformErrors.d.ts +8 -0
  71. package/dist/utils/traverse.d.ts +8 -0
  72. package/dist/utils/unescapeJsonPointer.d.ts +9 -0
  73. package/dist/utils/upgrade.d.ts +8 -0
  74. package/dist/utils/upgradeFromThreeToThreeOne.d.ts +10 -0
  75. package/dist/utils/upgradeFromTwoToThree.d.ts +10 -0
  76. package/dist/utils/validate.d.ts +8 -0
  77. package/dist/webpack-stats.json +1 -1
  78. package/package.json +12 -8
  79. package/dist/index.js +0 -16818
@@ -0,0 +1,1623 @@
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 };