@scalar/api-reference-react 0.0.8 → 0.1.1

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