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