json-schema-oas 0.1.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.
@@ -0,0 +1,2299 @@
1
+ {
2
+ "title": "A JSON Schema for OpenAPI 3.0 API.",
3
+ "id": "http://swagger.io/v3/schema.json#",
4
+ "type": "object",
5
+ "required": [
6
+ "openapi",
7
+ "info",
8
+ "paths"
9
+ ],
10
+ "properties": {
11
+ "openapi": {
12
+ "type": "string",
13
+ "pattern": "^3\\.0\\.\\d(-.+)?$"
14
+ },
15
+ "info": {
16
+ "$ref": "#/definitions/Info"
17
+ },
18
+ "externalDocs": {
19
+ "$ref": "#/definitions/ExternalDocumentation"
20
+ },
21
+ "servers": {
22
+ "type": "array",
23
+ "items": {
24
+ "$ref": "#/definitions/Server"
25
+ }
26
+ },
27
+ "security": {
28
+ "type": "array",
29
+ "items": {
30
+ "$ref": "#/definitions/SecurityRequirement"
31
+ }
32
+ },
33
+ "tags": {
34
+ "type": "array",
35
+ "items": {
36
+ "$ref": "#/definitions/Tag"
37
+ }
38
+ },
39
+ "paths": {
40
+ "$ref": "#/definitions/Paths"
41
+ },
42
+ "components": {
43
+ "$ref": "#/definitions/Components"
44
+ }
45
+ },
46
+ "patternProperties": {
47
+ "^x-": {}
48
+ },
49
+ "additionalProperties": false,
50
+ "definitions": {
51
+ "Reference": {
52
+ "type": "object",
53
+ "required": [
54
+ "$ref"
55
+ ],
56
+ "properties": {
57
+ "$ref": {
58
+ "type": "string",
59
+ "format": "uriref"
60
+ }
61
+ }
62
+ },
63
+ "Info": {
64
+ "type": "object",
65
+ "required": [
66
+ "title",
67
+ "version"
68
+ ],
69
+ "properties": {
70
+ "title": {
71
+ "type": "string"
72
+ },
73
+ "description": {
74
+ "type": "string"
75
+ },
76
+ "termsOfService": {
77
+ "type": "string",
78
+ "format": "uriref"
79
+ },
80
+ "contact": {
81
+ "$ref": "#/definitions/Contact"
82
+ },
83
+ "license": {
84
+ "$ref": "#/definitions/License"
85
+ },
86
+ "version": {
87
+ "type": "string"
88
+ }
89
+ },
90
+ "patternProperties": {
91
+ "^x-": {}
92
+ },
93
+ "additionalProperties": false
94
+ },
95
+ "Contact": {
96
+ "type": "object",
97
+ "properties": {
98
+ "name": {
99
+ "type": "string"
100
+ },
101
+ "url": {
102
+ "type": "string",
103
+ "format": "uriref"
104
+ },
105
+ "email": {
106
+ "type": "string",
107
+ "format": "email"
108
+ }
109
+ },
110
+ "patternProperties": {
111
+ "^x-": {}
112
+ },
113
+ "additionalProperties": false
114
+ },
115
+ "License": {
116
+ "type": "object",
117
+ "required": [
118
+ "name"
119
+ ],
120
+ "properties": {
121
+ "name": {
122
+ "type": "string"
123
+ },
124
+ "url": {
125
+ "type": "string",
126
+ "format": "uriref"
127
+ }
128
+ },
129
+ "patternProperties": {
130
+ "^x-": {}
131
+ },
132
+ "additionalProperties": false
133
+ },
134
+ "Server": {
135
+ "type": "object",
136
+ "required": [
137
+ "url"
138
+ ],
139
+ "properties": {
140
+ "url": {
141
+ "type": "string"
142
+ },
143
+ "description": {
144
+ "type": "string"
145
+ },
146
+ "variables": {
147
+ "type": "object",
148
+ "additionalProperties": {
149
+ "$ref": "#/definitions/ServerVariable"
150
+ }
151
+ }
152
+ },
153
+ "patternProperties": {
154
+ "^x-": {}
155
+ },
156
+ "additionalProperties": false
157
+ },
158
+ "ServerVariable": {
159
+ "type": "object",
160
+ "required": [
161
+ "default"
162
+ ],
163
+ "properties": {
164
+ "enum": {
165
+ "type": "array",
166
+ "items": {
167
+ "type": "string"
168
+ }
169
+ },
170
+ "default": {
171
+ "type": "string"
172
+ },
173
+ "description": {
174
+ "type": "string"
175
+ }
176
+ },
177
+ "patternProperties": {
178
+ "^x-": {}
179
+ },
180
+ "additionalProperties": false
181
+ },
182
+ "Components": {
183
+ "type": "object",
184
+ "properties": {
185
+ "schemas": {
186
+ "type": "object",
187
+ "patternProperties": {
188
+ "^[a-zA-Z0-9\\.\\-_]+$": {
189
+ "oneOf": [
190
+ {
191
+ "$ref": "#/definitions/Reference"
192
+ },
193
+ {
194
+ "$ref": "#/definitions/Schema"
195
+ }
196
+ ]
197
+ }
198
+ }
199
+ },
200
+ "responses": {
201
+ "type": "object",
202
+ "patternProperties": {
203
+ "^[a-zA-Z0-9\\.\\-_]+$": {
204
+ "oneOf": [
205
+ {
206
+ "$ref": "#/definitions/Reference"
207
+ },
208
+ {
209
+ "$ref": "#/definitions/Response"
210
+ }
211
+ ]
212
+ }
213
+ }
214
+ },
215
+ "parameters": {
216
+ "type": "object",
217
+ "patternProperties": {
218
+ "^[a-zA-Z0-9\\.\\-_]+$": {
219
+ "oneOf": [
220
+ {
221
+ "$ref": "#/definitions/Reference"
222
+ },
223
+ {
224
+ "$ref": "#/definitions/Parameter"
225
+ }
226
+ ]
227
+ }
228
+ }
229
+ },
230
+ "examples": {
231
+ "type": "object",
232
+ "patternProperties": {
233
+ "^[a-zA-Z0-9\\.\\-_]+$": {
234
+ "oneOf": [
235
+ {
236
+ "$ref": "#/definitions/Reference"
237
+ },
238
+ {
239
+ "$ref": "#/definitions/Example"
240
+ }
241
+ ]
242
+ }
243
+ }
244
+ },
245
+ "requestBodies": {
246
+ "type": "object",
247
+ "patternProperties": {
248
+ "^[a-zA-Z0-9\\.\\-_]+$": {
249
+ "oneOf": [
250
+ {
251
+ "$ref": "#/definitions/Reference"
252
+ },
253
+ {
254
+ "$ref": "#/definitions/RequestBody"
255
+ }
256
+ ]
257
+ }
258
+ }
259
+ },
260
+ "headers": {
261
+ "type": "object",
262
+ "patternProperties": {
263
+ "^[a-zA-Z0-9\\.\\-_]+$": {
264
+ "oneOf": [
265
+ {
266
+ "$ref": "#/definitions/Reference"
267
+ },
268
+ {
269
+ "$ref": "#/definitions/Header"
270
+ }
271
+ ]
272
+ }
273
+ }
274
+ },
275
+ "securitySchemes": {
276
+ "type": "object",
277
+ "patternProperties": {
278
+ "^[a-zA-Z0-9\\.\\-_]+$": {
279
+ "oneOf": [
280
+ {
281
+ "$ref": "#/definitions/Reference"
282
+ },
283
+ {
284
+ "$ref": "#/definitions/SecurityScheme"
285
+ }
286
+ ]
287
+ }
288
+ }
289
+ },
290
+ "links": {
291
+ "type": "object",
292
+ "patternProperties": {
293
+ "^[a-zA-Z0-9\\.\\-_]+$": {
294
+ "oneOf": [
295
+ {
296
+ "$ref": "#/definitions/Reference"
297
+ },
298
+ {
299
+ "$ref": "#/definitions/Link"
300
+ }
301
+ ]
302
+ }
303
+ }
304
+ },
305
+ "callbacks": {
306
+ "type": "object",
307
+ "patternProperties": {
308
+ "^[a-zA-Z0-9\\.\\-_]+$": {
309
+ "oneOf": [
310
+ {
311
+ "$ref": "#/definitions/Reference"
312
+ },
313
+ {
314
+ "$ref": "#/definitions/Callback"
315
+ }
316
+ ]
317
+ }
318
+ }
319
+ }
320
+ },
321
+ "patternProperties": {
322
+ "^x-": {}
323
+ },
324
+ "additionalProperties": false
325
+ },
326
+ "Schema": {
327
+ "type": "object",
328
+ "properties": {
329
+ "title": {
330
+ "type": "string"
331
+ },
332
+ "multipleOf": {
333
+ "type": "number",
334
+ "minimum": 0,
335
+ "exclusiveMinimum": true
336
+ },
337
+ "maximum": {
338
+ "type": "number"
339
+ },
340
+ "exclusiveMaximum": {
341
+ "type": "boolean",
342
+ "default": false
343
+ },
344
+ "minimum": {
345
+ "type": "number"
346
+ },
347
+ "exclusiveMinimum": {
348
+ "type": "boolean",
349
+ "default": false
350
+ },
351
+ "maxLength": {
352
+ "type": "integer",
353
+ "minimum": 0
354
+ },
355
+ "minLength": {
356
+ "type": "integer",
357
+ "minimum": 0,
358
+ "default": 0
359
+ },
360
+ "pattern": {
361
+ "type": "string",
362
+ "format": "regex"
363
+ },
364
+ "maxItems": {
365
+ "type": "integer",
366
+ "minimum": 0
367
+ },
368
+ "minItems": {
369
+ "type": "integer",
370
+ "minimum": 0,
371
+ "default": 0
372
+ },
373
+ "uniqueItems": {
374
+ "type": "boolean",
375
+ "default": false
376
+ },
377
+ "maxProperties": {
378
+ "type": "integer",
379
+ "minimum": 0
380
+ },
381
+ "minProperties": {
382
+ "type": "integer",
383
+ "minimum": 0,
384
+ "default": 0
385
+ },
386
+ "required": {
387
+ "type": "array",
388
+ "items": {
389
+ "type": "string"
390
+ },
391
+ "minItems": 1,
392
+ "uniqueItems": true
393
+ },
394
+ "enum": {
395
+ "type": "array",
396
+ "items": {},
397
+ "minItems": 1,
398
+ "uniqueItems": true
399
+ },
400
+ "type": {
401
+ "type": "string",
402
+ "enum": [
403
+ "array",
404
+ "boolean",
405
+ "integer",
406
+ "number",
407
+ "object",
408
+ "string"
409
+ ]
410
+ },
411
+ "not": {
412
+ "oneOf": [
413
+ {
414
+ "$ref": "#/definitions/Schema"
415
+ },
416
+ {
417
+ "$ref": "#/definitions/Reference"
418
+ }
419
+ ]
420
+ },
421
+ "allOf": {
422
+ "type": "array",
423
+ "items": {
424
+ "oneOf": [
425
+ {
426
+ "$ref": "#/definitions/Schema"
427
+ },
428
+ {
429
+ "$ref": "#/definitions/Reference"
430
+ }
431
+ ]
432
+ }
433
+ },
434
+ "oneOf": {
435
+ "type": "array",
436
+ "items": {
437
+ "oneOf": [
438
+ {
439
+ "$ref": "#/definitions/Schema"
440
+ },
441
+ {
442
+ "$ref": "#/definitions/Reference"
443
+ }
444
+ ]
445
+ }
446
+ },
447
+ "anyOf": {
448
+ "type": "array",
449
+ "items": {
450
+ "oneOf": [
451
+ {
452
+ "$ref": "#/definitions/Schema"
453
+ },
454
+ {
455
+ "$ref": "#/definitions/Reference"
456
+ }
457
+ ]
458
+ }
459
+ },
460
+ "items": {
461
+ "oneOf": [
462
+ {
463
+ "$ref": "#/definitions/Schema"
464
+ },
465
+ {
466
+ "$ref": "#/definitions/Reference"
467
+ }
468
+ ]
469
+ },
470
+ "properties": {
471
+ "type": "object",
472
+ "additionalProperties": {
473
+ "oneOf": [
474
+ {
475
+ "$ref": "#/definitions/Schema"
476
+ },
477
+ {
478
+ "$ref": "#/definitions/Reference"
479
+ }
480
+ ]
481
+ }
482
+ },
483
+ "additionalProperties": {
484
+ "oneOf": [
485
+ {
486
+ "$ref": "#/definitions/Schema"
487
+ },
488
+ {
489
+ "$ref": "#/definitions/Reference"
490
+ },
491
+ {
492
+ "type": "boolean"
493
+ }
494
+ ],
495
+ "default": true
496
+ },
497
+ "description": {
498
+ "type": "string"
499
+ },
500
+ "format": {
501
+ "type": "string"
502
+ },
503
+ "default": {},
504
+ "nullable": {
505
+ "type": "boolean",
506
+ "default": false
507
+ },
508
+ "discriminator": {
509
+ "$ref": "#/definitions/Discriminator"
510
+ },
511
+ "readOnly": {
512
+ "type": "boolean",
513
+ "default": false
514
+ },
515
+ "writeOnly": {
516
+ "type": "boolean",
517
+ "default": false
518
+ },
519
+ "example": {},
520
+ "externalDocs": {
521
+ "$ref": "#/definitions/ExternalDocumentation"
522
+ },
523
+ "deprecated": {
524
+ "type": "boolean",
525
+ "default": false
526
+ },
527
+ "xml": {
528
+ "$ref": "#/definitions/XML"
529
+ }
530
+ },
531
+ "patternProperties": {
532
+ "^x-": {}
533
+ },
534
+ "additionalProperties": false
535
+ },
536
+ "Discriminator": {
537
+ "type": "object",
538
+ "required": [
539
+ "propertyName"
540
+ ],
541
+ "properties": {
542
+ "propertyName": {
543
+ "type": "string"
544
+ },
545
+ "mapping": {
546
+ "type": "object",
547
+ "additionalProperties": {
548
+ "type": "string"
549
+ }
550
+ }
551
+ }
552
+ },
553
+ "XML": {
554
+ "type": "object",
555
+ "properties": {
556
+ "name": {
557
+ "type": "string"
558
+ },
559
+ "namespace": {
560
+ "type": "string",
561
+ "format": "url"
562
+ },
563
+ "prefix": {
564
+ "type": "string"
565
+ },
566
+ "attribute": {
567
+ "type": "boolean",
568
+ "default": false
569
+ },
570
+ "wrapped": {
571
+ "type": "boolean",
572
+ "default": false
573
+ }
574
+ },
575
+ "patternProperties": {
576
+ "^x-": {}
577
+ },
578
+ "additionalProperties": false
579
+ },
580
+ "Response": {
581
+ "type": "object",
582
+ "required": [
583
+ "description"
584
+ ],
585
+ "properties": {
586
+ "description": {
587
+ "type": "string"
588
+ },
589
+ "headers": {
590
+ "additionalProperties": {
591
+ "oneOf": [
592
+ {
593
+ "$ref": "#/definitions/Header"
594
+ },
595
+ {
596
+ "$ref": "#/definitions/Reference"
597
+ }
598
+ ]
599
+ }
600
+ },
601
+ "content": {
602
+ "type": "object",
603
+ "additionalProperties": {
604
+ "$ref": "#/definitions/MediaType"
605
+ }
606
+ },
607
+ "links": {
608
+ "type": "object",
609
+ "additionalProperties": {
610
+ "oneOf": [
611
+ {
612
+ "$ref": "#/definitions/Link"
613
+ },
614
+ {
615
+ "$ref": "#/definitions/Reference"
616
+ }
617
+ ]
618
+ }
619
+ }
620
+ },
621
+ "patternProperties": {
622
+ "^x-": {}
623
+ },
624
+ "additionalProperties": false
625
+ },
626
+ "MediaType": {
627
+ "oneOf": [
628
+ {
629
+ "$ref": "#/definitions/MediaTypeWithExample"
630
+ },
631
+ {
632
+ "$ref": "#/definitions/MediaTypeWithExamples"
633
+ }
634
+ ]
635
+ },
636
+ "MediaTypeWithExample": {
637
+ "type": "object",
638
+ "properties": {
639
+ "schema": {
640
+ "oneOf": [
641
+ {
642
+ "$ref": "#/definitions/Schema"
643
+ },
644
+ {
645
+ "$ref": "#/definitions/Reference"
646
+ }
647
+ ]
648
+ },
649
+ "example": {},
650
+ "encoding": {
651
+ "type": "object",
652
+ "additionalProperties": {
653
+ "$ref": "#/definitions/Encoding"
654
+ }
655
+ }
656
+ },
657
+ "patternProperties": {
658
+ "^x-": {}
659
+ },
660
+ "additionalProperties": false
661
+ },
662
+ "MediaTypeWithExamples": {
663
+ "type": "object",
664
+ "required": [
665
+ "examples"
666
+ ],
667
+ "properties": {
668
+ "schema": {
669
+ "oneOf": [
670
+ {
671
+ "$ref": "#/definitions/Schema"
672
+ },
673
+ {
674
+ "$ref": "#/definitions/Reference"
675
+ }
676
+ ]
677
+ },
678
+ "examples": {
679
+ "type": "object",
680
+ "additionalProperties": {
681
+ "oneOf": [
682
+ {
683
+ "$ref": "#/definitions/Example"
684
+ },
685
+ {
686
+ "$ref": "#/definitions/Reference"
687
+ }
688
+ ]
689
+ }
690
+ },
691
+ "encoding": {
692
+ "type": "object",
693
+ "additionalProperties": {
694
+ "$ref": "#/definitions/Encoding"
695
+ }
696
+ }
697
+ },
698
+ "patternProperties": {
699
+ "^x-": {}
700
+ },
701
+ "additionalProperties": false
702
+ },
703
+ "Example": {
704
+ "type": "object",
705
+ "properties": {
706
+ "summary": {
707
+ "type": "string"
708
+ },
709
+ "description": {
710
+ "type": "string"
711
+ },
712
+ "value": {},
713
+ "externalValue": {
714
+ "type": "string",
715
+ "format": "uriref"
716
+ }
717
+ },
718
+ "patternProperties": {
719
+ "^x-": {}
720
+ },
721
+ "additionalProperties": false
722
+ },
723
+ "Header": {
724
+ "oneOf": [
725
+ {
726
+ "$ref": "#/definitions/HeaderWithSchema"
727
+ },
728
+ {
729
+ "$ref": "#/definitions/HeaderWithContent"
730
+ }
731
+ ]
732
+ },
733
+ "HeaderWithSchema": {
734
+ "oneOf": [
735
+ {
736
+ "$ref": "#/definitions/HeaderWithSchemaWithExample"
737
+ },
738
+ {
739
+ "$ref": "#/definitions/HeaderWithSchemaWithExamples"
740
+ }
741
+ ]
742
+ },
743
+ "HeaderWithSchemaWithExample": {
744
+ "type": "object",
745
+ "required": [
746
+ "schema"
747
+ ],
748
+ "properties": {
749
+ "description": {
750
+ "type": "string"
751
+ },
752
+ "required": {
753
+ "type": "boolean",
754
+ "default": false
755
+ },
756
+ "deprecated": {
757
+ "type": "boolean",
758
+ "default": false
759
+ },
760
+ "allowEmptyValue": {
761
+ "type": "boolean",
762
+ "default": false
763
+ },
764
+ "style": {
765
+ "type": "string",
766
+ "enum": [
767
+ "simple"
768
+ ],
769
+ "default": "simple"
770
+ },
771
+ "explode": {
772
+ "type": "boolean"
773
+ },
774
+ "allowReserved": {
775
+ "type": "boolean",
776
+ "default": false
777
+ },
778
+ "schema": {
779
+ "oneOf": [
780
+ {
781
+ "$ref": "#/definitions/Schema"
782
+ },
783
+ {
784
+ "$ref": "#/definitions/Reference"
785
+ }
786
+ ]
787
+ },
788
+ "example": {}
789
+ },
790
+ "patternProperties": {
791
+ "^x-": {}
792
+ },
793
+ "additionalProperties": false
794
+ },
795
+ "HeaderWithSchemaWithExamples": {
796
+ "type": "object",
797
+ "required": [
798
+ "schema",
799
+ "examples"
800
+ ],
801
+ "properties": {
802
+ "description": {
803
+ "type": "string"
804
+ },
805
+ "required": {
806
+ "type": "boolean",
807
+ "default": false
808
+ },
809
+ "deprecated": {
810
+ "type": "boolean",
811
+ "default": false
812
+ },
813
+ "allowEmptyValue": {
814
+ "type": "boolean",
815
+ "default": false
816
+ },
817
+ "style": {
818
+ "type": "string",
819
+ "enum": [
820
+ "simple"
821
+ ],
822
+ "default": "simple"
823
+ },
824
+ "explode": {
825
+ "type": "boolean"
826
+ },
827
+ "allowReserved": {
828
+ "type": "boolean",
829
+ "default": false
830
+ },
831
+ "schema": {
832
+ "oneOf": [
833
+ {
834
+ "$ref": "#/definitions/Schema"
835
+ },
836
+ {
837
+ "$ref": "#/definitions/Reference"
838
+ }
839
+ ]
840
+ },
841
+ "examples": {
842
+ "type": "object",
843
+ "additionalProperties": {
844
+ "oneOf": [
845
+ {
846
+ "$ref": "#/definitions/Example"
847
+ },
848
+ {
849
+ "$ref": "#/definitions/Reference"
850
+ }
851
+ ]
852
+ }
853
+ }
854
+ },
855
+ "patternProperties": {
856
+ "^x-": {}
857
+ },
858
+ "additionalProperties": false
859
+ },
860
+ "HeaderWithContent": {
861
+ "type": "object",
862
+ "required": [
863
+ "content"
864
+ ],
865
+ "properties": {
866
+ "description": {
867
+ "type": "string"
868
+ },
869
+ "required": {
870
+ "type": "boolean",
871
+ "default": false
872
+ },
873
+ "deprecated": {
874
+ "type": "boolean",
875
+ "default": false
876
+ },
877
+ "allowEmptyValue": {
878
+ "type": "boolean",
879
+ "default": false
880
+ },
881
+ "content": {
882
+ "type": "object",
883
+ "additionalProperties": {
884
+ "$ref": "#/definitions/MediaType"
885
+ },
886
+ "minProperties": 1,
887
+ "maxProperties": 1
888
+ }
889
+ },
890
+ "patternProperties": {
891
+ "^x-": {}
892
+ },
893
+ "additionalProperties": false
894
+ },
895
+ "Paths": {
896
+ "type": "object",
897
+ "patternProperties": {
898
+ "^\\/": {
899
+ "$ref": "#/definitions/PathItem"
900
+ },
901
+ "^x-": {}
902
+ },
903
+ "additionalProperties": false
904
+ },
905
+ "PathItem": {
906
+ "type": "object",
907
+ "properties": {
908
+ "$ref": {
909
+ "type": "string"
910
+ },
911
+ "summary": {
912
+ "type": "string"
913
+ },
914
+ "description": {
915
+ "type": "string"
916
+ },
917
+ "get": {
918
+ "$ref": "#/definitions/Operation"
919
+ },
920
+ "put": {
921
+ "$ref": "#/definitions/Operation"
922
+ },
923
+ "post": {
924
+ "$ref": "#/definitions/Operation"
925
+ },
926
+ "delete": {
927
+ "$ref": "#/definitions/Operation"
928
+ },
929
+ "options": {
930
+ "$ref": "#/definitions/Operation"
931
+ },
932
+ "head": {
933
+ "$ref": "#/definitions/Operation"
934
+ },
935
+ "patch": {
936
+ "$ref": "#/definitions/Operation"
937
+ },
938
+ "trace": {
939
+ "$ref": "#/definitions/Operation"
940
+ },
941
+ "servers": {
942
+ "type": "array",
943
+ "items": {
944
+ "$ref": "#/definitions/Server"
945
+ }
946
+ },
947
+ "parameters": {
948
+ "type": "array",
949
+ "items": {
950
+ "oneOf": [
951
+ {
952
+ "$ref": "#/definitions/Parameter"
953
+ },
954
+ {
955
+ "$ref": "#/definitions/Reference"
956
+ }
957
+ ]
958
+ }
959
+ }
960
+ },
961
+ "patternProperties": {
962
+ "^x-": {}
963
+ },
964
+ "additionalProperties": false
965
+ },
966
+ "Operation": {
967
+ "type": "object",
968
+ "required": [
969
+ "responses"
970
+ ],
971
+ "properties": {
972
+ "tags": {
973
+ "type": "array",
974
+ "items": {
975
+ "type": "string"
976
+ }
977
+ },
978
+ "summary": {
979
+ "type": "string"
980
+ },
981
+ "description": {
982
+ "type": "string"
983
+ },
984
+ "externalDocs": {
985
+ "$ref": "#/definitions/ExternalDocumentation"
986
+ },
987
+ "operationId": {
988
+ "type": "string"
989
+ },
990
+ "parameters": {
991
+ "type": "array",
992
+ "items": {
993
+ "oneOf": [
994
+ {
995
+ "$ref": "#/definitions/Parameter"
996
+ },
997
+ {
998
+ "$ref": "#/definitions/Reference"
999
+ }
1000
+ ]
1001
+ }
1002
+ },
1003
+ "requestBody": {
1004
+ "oneOf": [
1005
+ {
1006
+ "$ref": "#/definitions/RequestBody"
1007
+ },
1008
+ {
1009
+ "$ref": "#/definitions/Reference"
1010
+ }
1011
+ ]
1012
+ },
1013
+ "responses": {
1014
+ "$ref": "#/definitions/Responses"
1015
+ },
1016
+ "callbacks": {
1017
+ "type": "object",
1018
+ "additionalProperties": {
1019
+ "oneOf": [
1020
+ {
1021
+ "$ref": "#/definitions/Callback"
1022
+ },
1023
+ {
1024
+ "$ref": "#/definitions/Reference"
1025
+ }
1026
+ ]
1027
+ }
1028
+ },
1029
+ "deprecated": {
1030
+ "type": "boolean",
1031
+ "default": false
1032
+ },
1033
+ "security": {
1034
+ "type": "array",
1035
+ "items": {
1036
+ "$ref": "#/definitions/SecurityRequirement"
1037
+ }
1038
+ },
1039
+ "servers": {
1040
+ "type": "array",
1041
+ "items": {
1042
+ "$ref": "#/definitions/Server"
1043
+ }
1044
+ }
1045
+ },
1046
+ "patternProperties": {
1047
+ "^x-": {}
1048
+ },
1049
+ "additionalProperties": false
1050
+ },
1051
+ "Responses": {
1052
+ "type": "object",
1053
+ "properties": {
1054
+ "default": {
1055
+ "oneOf": [
1056
+ {
1057
+ "$ref": "#/definitions/Response"
1058
+ },
1059
+ {
1060
+ "$ref": "#/definitions/Reference"
1061
+ }
1062
+ ]
1063
+ }
1064
+ },
1065
+ "patternProperties": {
1066
+ "[1-5](?:\\d{2}|XX)": {
1067
+ "oneOf": [
1068
+ {
1069
+ "$ref": "#/definitions/Response"
1070
+ },
1071
+ {
1072
+ "$ref": "#/definitions/Reference"
1073
+ }
1074
+ ]
1075
+ },
1076
+ "^x-": {}
1077
+ },
1078
+ "minProperties": 1,
1079
+ "additionalProperties": false,
1080
+ "not": {
1081
+ "type": "object",
1082
+ "patternProperties": {
1083
+ "^x-": {}
1084
+ },
1085
+ "additionalProperties": false
1086
+ }
1087
+ },
1088
+ "SecurityRequirement": {
1089
+ "type": "object",
1090
+ "additionalProperties": {
1091
+ "type": "array",
1092
+ "items": {
1093
+ "type": "string"
1094
+ }
1095
+ }
1096
+ },
1097
+ "Tag": {
1098
+ "type": "object",
1099
+ "required": [
1100
+ "name"
1101
+ ],
1102
+ "properties": {
1103
+ "name": {
1104
+ "type": "string"
1105
+ },
1106
+ "description": {
1107
+ "type": "string"
1108
+ },
1109
+ "externalDocs": {
1110
+ "$ref": "#/definitions/ExternalDocumentation"
1111
+ }
1112
+ },
1113
+ "patternProperties": {
1114
+ "^x-": {}
1115
+ },
1116
+ "additionalProperties": false
1117
+ },
1118
+ "ExternalDocumentation": {
1119
+ "type": "object",
1120
+ "required": [
1121
+ "url"
1122
+ ],
1123
+ "properties": {
1124
+ "description": {
1125
+ "type": "string"
1126
+ },
1127
+ "url": {
1128
+ "type": "string",
1129
+ "format": "uriref"
1130
+ }
1131
+ },
1132
+ "patternProperties": {
1133
+ "^x-": {}
1134
+ },
1135
+ "additionalProperties": false
1136
+ },
1137
+ "Parameter": {
1138
+ "oneOf": [
1139
+ {
1140
+ "$ref": "#/definitions/ParameterWithSchema"
1141
+ },
1142
+ {
1143
+ "$ref": "#/definitions/ParameterWithContent"
1144
+ }
1145
+ ]
1146
+ },
1147
+ "ParameterWithSchema": {
1148
+ "oneOf": [
1149
+ {
1150
+ "$ref": "#/definitions/ParameterWithSchemaWithExample"
1151
+ },
1152
+ {
1153
+ "$ref": "#/definitions/ParameterWithSchemaWithExamples"
1154
+ }
1155
+ ]
1156
+ },
1157
+ "ParameterWithSchemaWithExample": {
1158
+ "oneOf": [
1159
+ {
1160
+ "$ref": "#/definitions/ParameterWithSchemaWithExampleInPath"
1161
+ },
1162
+ {
1163
+ "$ref": "#/definitions/ParameterWithSchemaWithExampleInQuery"
1164
+ },
1165
+ {
1166
+ "$ref": "#/definitions/ParameterWithSchemaWithExampleInHeader"
1167
+ },
1168
+ {
1169
+ "$ref": "#/definitions/ParameterWithSchemaWithExampleInCookie"
1170
+ }
1171
+ ]
1172
+ },
1173
+ "ParameterWithSchemaWithExampleInPath": {
1174
+ "type": "object",
1175
+ "required": [
1176
+ "name",
1177
+ "in",
1178
+ "schema",
1179
+ "required"
1180
+ ],
1181
+ "properties": {
1182
+ "name": {
1183
+ "type": "string"
1184
+ },
1185
+ "in": {
1186
+ "type": "string",
1187
+ "enum": [
1188
+ "path"
1189
+ ]
1190
+ },
1191
+ "description": {
1192
+ "type": "string"
1193
+ },
1194
+ "required": {
1195
+ "type": "boolean",
1196
+ "enum": [
1197
+ true
1198
+ ]
1199
+ },
1200
+ "deprecated": {
1201
+ "type": "boolean",
1202
+ "default": false
1203
+ },
1204
+ "allowEmptyValue": {
1205
+ "type": "boolean",
1206
+ "default": false
1207
+ },
1208
+ "style": {
1209
+ "type": "string",
1210
+ "enum": [
1211
+ "matrix",
1212
+ "label",
1213
+ "simple"
1214
+ ],
1215
+ "default": "simple"
1216
+ },
1217
+ "explode": {
1218
+ "type": "boolean"
1219
+ },
1220
+ "allowReserved": {
1221
+ "type": "boolean",
1222
+ "default": false
1223
+ },
1224
+ "schema": {
1225
+ "oneOf": [
1226
+ {
1227
+ "$ref": "#/definitions/Schema"
1228
+ },
1229
+ {
1230
+ "$ref": "#/definitions/Reference"
1231
+ }
1232
+ ]
1233
+ },
1234
+ "example": {}
1235
+ },
1236
+ "patternProperties": {
1237
+ "^x-": {}
1238
+ },
1239
+ "additionalProperties": false
1240
+ },
1241
+ "ParameterWithSchemaWithExampleInQuery": {
1242
+ "type": "object",
1243
+ "required": [
1244
+ "name",
1245
+ "in",
1246
+ "schema"
1247
+ ],
1248
+ "properties": {
1249
+ "name": {
1250
+ "type": "string"
1251
+ },
1252
+ "in": {
1253
+ "type": "string",
1254
+ "enum": [
1255
+ "query"
1256
+ ]
1257
+ },
1258
+ "description": {
1259
+ "type": "string"
1260
+ },
1261
+ "required": {
1262
+ "type": "boolean",
1263
+ "default": false
1264
+ },
1265
+ "deprecated": {
1266
+ "type": "boolean",
1267
+ "default": false
1268
+ },
1269
+ "allowEmptyValue": {
1270
+ "type": "boolean",
1271
+ "default": false
1272
+ },
1273
+ "style": {
1274
+ "type": "string",
1275
+ "enum": [
1276
+ "form",
1277
+ "spaceDelimited",
1278
+ "pipeDelimited",
1279
+ "deepObject"
1280
+ ],
1281
+ "default": "form"
1282
+ },
1283
+ "explode": {
1284
+ "type": "boolean"
1285
+ },
1286
+ "allowReserved": {
1287
+ "type": "boolean",
1288
+ "default": false
1289
+ },
1290
+ "schema": {
1291
+ "oneOf": [
1292
+ {
1293
+ "$ref": "#/definitions/Schema"
1294
+ },
1295
+ {
1296
+ "$ref": "#/definitions/Reference"
1297
+ }
1298
+ ]
1299
+ },
1300
+ "example": {}
1301
+ },
1302
+ "patternProperties": {
1303
+ "^x-": {}
1304
+ },
1305
+ "additionalProperties": false
1306
+ },
1307
+ "ParameterWithSchemaWithExampleInHeader": {
1308
+ "type": "object",
1309
+ "required": [
1310
+ "name",
1311
+ "in",
1312
+ "schema"
1313
+ ],
1314
+ "properties": {
1315
+ "name": {
1316
+ "type": "string"
1317
+ },
1318
+ "in": {
1319
+ "type": "string",
1320
+ "enum": [
1321
+ "header"
1322
+ ]
1323
+ },
1324
+ "description": {
1325
+ "type": "string"
1326
+ },
1327
+ "required": {
1328
+ "type": "boolean",
1329
+ "default": false
1330
+ },
1331
+ "deprecated": {
1332
+ "type": "boolean",
1333
+ "default": false
1334
+ },
1335
+ "allowEmptyValue": {
1336
+ "type": "boolean",
1337
+ "default": false
1338
+ },
1339
+ "style": {
1340
+ "type": "string",
1341
+ "enum": [
1342
+ "simple"
1343
+ ],
1344
+ "default": "simple"
1345
+ },
1346
+ "explode": {
1347
+ "type": "boolean"
1348
+ },
1349
+ "allowReserved": {
1350
+ "type": "boolean",
1351
+ "default": false
1352
+ },
1353
+ "schema": {
1354
+ "oneOf": [
1355
+ {
1356
+ "$ref": "#/definitions/Schema"
1357
+ },
1358
+ {
1359
+ "$ref": "#/definitions/Reference"
1360
+ }
1361
+ ]
1362
+ },
1363
+ "example": {}
1364
+ },
1365
+ "patternProperties": {
1366
+ "^x-": {}
1367
+ },
1368
+ "additionalProperties": false
1369
+ },
1370
+ "ParameterWithSchemaWithExampleInCookie": {
1371
+ "type": "object",
1372
+ "required": [
1373
+ "name",
1374
+ "in",
1375
+ "schema"
1376
+ ],
1377
+ "properties": {
1378
+ "name": {
1379
+ "type": "string"
1380
+ },
1381
+ "in": {
1382
+ "type": "string",
1383
+ "enum": [
1384
+ "cookie"
1385
+ ]
1386
+ },
1387
+ "description": {
1388
+ "type": "string"
1389
+ },
1390
+ "required": {
1391
+ "type": "boolean",
1392
+ "default": false
1393
+ },
1394
+ "deprecated": {
1395
+ "type": "boolean",
1396
+ "default": false
1397
+ },
1398
+ "allowEmptyValue": {
1399
+ "type": "boolean",
1400
+ "default": false
1401
+ },
1402
+ "style": {
1403
+ "type": "string",
1404
+ "enum": [
1405
+ "form"
1406
+ ],
1407
+ "default": "form"
1408
+ },
1409
+ "explode": {
1410
+ "type": "boolean"
1411
+ },
1412
+ "allowReserved": {
1413
+ "type": "boolean",
1414
+ "default": false
1415
+ },
1416
+ "schema": {
1417
+ "oneOf": [
1418
+ {
1419
+ "$ref": "#/definitions/Schema"
1420
+ },
1421
+ {
1422
+ "$ref": "#/definitions/Reference"
1423
+ }
1424
+ ]
1425
+ },
1426
+ "example": {}
1427
+ },
1428
+ "patternProperties": {
1429
+ "^x-": {}
1430
+ },
1431
+ "additionalProperties": false
1432
+ },
1433
+ "ParameterWithSchemaWithExamples": {
1434
+ "oneOf": [
1435
+ {
1436
+ "$ref": "#/definitions/ParameterWithSchemaWithExamplesInPath"
1437
+ },
1438
+ {
1439
+ "$ref": "#/definitions/ParameterWithSchemaWithExamplesInQuery"
1440
+ },
1441
+ {
1442
+ "$ref": "#/definitions/ParameterWithSchemaWithExamplesInHeader"
1443
+ },
1444
+ {
1445
+ "$ref": "#/definitions/ParameterWithSchemaWithExamplesInCookie"
1446
+ }
1447
+ ]
1448
+ },
1449
+ "ParameterWithSchemaWithExamplesInPath": {
1450
+ "type": "object",
1451
+ "required": [
1452
+ "name",
1453
+ "in",
1454
+ "schema",
1455
+ "required",
1456
+ "examples"
1457
+ ],
1458
+ "properties": {
1459
+ "name": {
1460
+ "type": "string"
1461
+ },
1462
+ "in": {
1463
+ "type": "string",
1464
+ "enum": [
1465
+ "path"
1466
+ ]
1467
+ },
1468
+ "description": {
1469
+ "type": "string"
1470
+ },
1471
+ "required": {
1472
+ "type": "boolean",
1473
+ "enum": [
1474
+ true
1475
+ ]
1476
+ },
1477
+ "deprecated": {
1478
+ "type": "boolean",
1479
+ "default": false
1480
+ },
1481
+ "allowEmptyValue": {
1482
+ "type": "boolean",
1483
+ "default": false
1484
+ },
1485
+ "style": {
1486
+ "type": "string",
1487
+ "enum": [
1488
+ "matrix",
1489
+ "label",
1490
+ "simple"
1491
+ ],
1492
+ "default": "simple"
1493
+ },
1494
+ "explode": {
1495
+ "type": "boolean"
1496
+ },
1497
+ "allowReserved": {
1498
+ "type": "boolean",
1499
+ "default": false
1500
+ },
1501
+ "schema": {
1502
+ "oneOf": [
1503
+ {
1504
+ "$ref": "#/definitions/Schema"
1505
+ },
1506
+ {
1507
+ "$ref": "#/definitions/Reference"
1508
+ }
1509
+ ]
1510
+ },
1511
+ "examples": {
1512
+ "type": "object",
1513
+ "additionalProperties": {
1514
+ "oneOf": [
1515
+ {
1516
+ "$ref": "#/definitions/Example"
1517
+ },
1518
+ {
1519
+ "$ref": "#/definitions/Reference"
1520
+ }
1521
+ ]
1522
+ }
1523
+ }
1524
+ },
1525
+ "patternProperties": {
1526
+ "^x-": {}
1527
+ },
1528
+ "additionalProperties": false
1529
+ },
1530
+ "ParameterWithSchemaWithExamplesInQuery": {
1531
+ "type": "object",
1532
+ "required": [
1533
+ "name",
1534
+ "in",
1535
+ "schema",
1536
+ "examples"
1537
+ ],
1538
+ "properties": {
1539
+ "name": {
1540
+ "type": "string"
1541
+ },
1542
+ "in": {
1543
+ "type": "string",
1544
+ "enum": [
1545
+ "query"
1546
+ ]
1547
+ },
1548
+ "description": {
1549
+ "type": "string"
1550
+ },
1551
+ "required": {
1552
+ "type": "boolean",
1553
+ "default": false
1554
+ },
1555
+ "deprecated": {
1556
+ "type": "boolean",
1557
+ "default": false
1558
+ },
1559
+ "allowEmptyValue": {
1560
+ "type": "boolean",
1561
+ "default": false
1562
+ },
1563
+ "style": {
1564
+ "type": "string",
1565
+ "enum": [
1566
+ "form",
1567
+ "spaceDelimited",
1568
+ "pipeDelimited",
1569
+ "deepObject"
1570
+ ],
1571
+ "default": "form"
1572
+ },
1573
+ "explode": {
1574
+ "type": "boolean"
1575
+ },
1576
+ "allowReserved": {
1577
+ "type": "boolean",
1578
+ "default": false
1579
+ },
1580
+ "schema": {
1581
+ "oneOf": [
1582
+ {
1583
+ "$ref": "#/definitions/Schema"
1584
+ },
1585
+ {
1586
+ "$ref": "#/definitions/Reference"
1587
+ }
1588
+ ]
1589
+ },
1590
+ "examples": {
1591
+ "type": "object",
1592
+ "additionalProperties": {
1593
+ "oneOf": [
1594
+ {
1595
+ "$ref": "#/definitions/Example"
1596
+ },
1597
+ {
1598
+ "$ref": "#/definitions/Reference"
1599
+ }
1600
+ ]
1601
+ }
1602
+ }
1603
+ },
1604
+ "patternProperties": {
1605
+ "^x-": {}
1606
+ },
1607
+ "additionalProperties": false
1608
+ },
1609
+ "ParameterWithSchemaWithExamplesInHeader": {
1610
+ "type": "object",
1611
+ "required": [
1612
+ "name",
1613
+ "in",
1614
+ "schema",
1615
+ "examples"
1616
+ ],
1617
+ "properties": {
1618
+ "name": {
1619
+ "type": "string"
1620
+ },
1621
+ "in": {
1622
+ "type": "string",
1623
+ "enum": [
1624
+ "header"
1625
+ ]
1626
+ },
1627
+ "description": {
1628
+ "type": "string"
1629
+ },
1630
+ "required": {
1631
+ "type": "boolean",
1632
+ "default": false
1633
+ },
1634
+ "deprecated": {
1635
+ "type": "boolean",
1636
+ "default": false
1637
+ },
1638
+ "allowEmptyValue": {
1639
+ "type": "boolean",
1640
+ "default": false
1641
+ },
1642
+ "style": {
1643
+ "type": "string",
1644
+ "enum": [
1645
+ "simple"
1646
+ ],
1647
+ "default": "simple"
1648
+ },
1649
+ "explode": {
1650
+ "type": "boolean"
1651
+ },
1652
+ "allowReserved": {
1653
+ "type": "boolean",
1654
+ "default": false
1655
+ },
1656
+ "schema": {
1657
+ "oneOf": [
1658
+ {
1659
+ "$ref": "#/definitions/Schema"
1660
+ },
1661
+ {
1662
+ "$ref": "#/definitions/Reference"
1663
+ }
1664
+ ]
1665
+ },
1666
+ "examples": {
1667
+ "type": "object",
1668
+ "additionalProperties": {
1669
+ "oneOf": [
1670
+ {
1671
+ "$ref": "#/definitions/Example"
1672
+ },
1673
+ {
1674
+ "$ref": "#/definitions/Reference"
1675
+ }
1676
+ ]
1677
+ }
1678
+ }
1679
+ },
1680
+ "patternProperties": {
1681
+ "^x-": {}
1682
+ },
1683
+ "additionalProperties": false
1684
+ },
1685
+ "ParameterWithSchemaWithExamplesInCookie": {
1686
+ "type": "object",
1687
+ "required": [
1688
+ "name",
1689
+ "in",
1690
+ "schema",
1691
+ "examples"
1692
+ ],
1693
+ "properties": {
1694
+ "name": {
1695
+ "type": "string"
1696
+ },
1697
+ "in": {
1698
+ "type": "string",
1699
+ "enum": [
1700
+ "cookie"
1701
+ ]
1702
+ },
1703
+ "description": {
1704
+ "type": "string"
1705
+ },
1706
+ "required": {
1707
+ "type": "boolean",
1708
+ "default": false
1709
+ },
1710
+ "deprecated": {
1711
+ "type": "boolean",
1712
+ "default": false
1713
+ },
1714
+ "allowEmptyValue": {
1715
+ "type": "boolean",
1716
+ "default": false
1717
+ },
1718
+ "style": {
1719
+ "type": "string",
1720
+ "enum": [
1721
+ "form"
1722
+ ],
1723
+ "default": "form"
1724
+ },
1725
+ "explode": {
1726
+ "type": "boolean"
1727
+ },
1728
+ "allowReserved": {
1729
+ "type": "boolean",
1730
+ "default": false
1731
+ },
1732
+ "schema": {
1733
+ "oneOf": [
1734
+ {
1735
+ "$ref": "#/definitions/Schema"
1736
+ },
1737
+ {
1738
+ "$ref": "#/definitions/Reference"
1739
+ }
1740
+ ]
1741
+ },
1742
+ "examples": {
1743
+ "type": "object",
1744
+ "additionalProperties": {
1745
+ "oneOf": [
1746
+ {
1747
+ "$ref": "#/definitions/Example"
1748
+ },
1749
+ {
1750
+ "$ref": "#/definitions/Reference"
1751
+ }
1752
+ ]
1753
+ }
1754
+ }
1755
+ },
1756
+ "patternProperties": {
1757
+ "^x-": {}
1758
+ },
1759
+ "additionalProperties": false
1760
+ },
1761
+ "ParameterWithContent": {
1762
+ "oneOf": [
1763
+ {
1764
+ "$ref": "#/definitions/ParameterWithContentInPath"
1765
+ },
1766
+ {
1767
+ "$ref": "#/definitions/ParameterWithContentNotInPath"
1768
+ }
1769
+ ]
1770
+ },
1771
+ "ParameterWithContentInPath": {
1772
+ "type": "object",
1773
+ "required": [
1774
+ "name",
1775
+ "in",
1776
+ "content"
1777
+ ],
1778
+ "properties": {
1779
+ "name": {
1780
+ "type": "string"
1781
+ },
1782
+ "in": {
1783
+ "type": "string",
1784
+ "enum": [
1785
+ "path"
1786
+ ]
1787
+ },
1788
+ "description": {
1789
+ "type": "string"
1790
+ },
1791
+ "required": {
1792
+ "type": "boolean",
1793
+ "enum": [
1794
+ true
1795
+ ]
1796
+ },
1797
+ "deprecated": {
1798
+ "type": "boolean",
1799
+ "default": false
1800
+ },
1801
+ "allowEmptyValue": {
1802
+ "type": "boolean",
1803
+ "default": false
1804
+ },
1805
+ "content": {
1806
+ "type": "object",
1807
+ "additionalProperties": {
1808
+ "$ref": "#/definitions/MediaType"
1809
+ },
1810
+ "minProperties": 1,
1811
+ "maxProperties": 1
1812
+ }
1813
+ },
1814
+ "patternProperties": {
1815
+ "^x-": {}
1816
+ },
1817
+ "additionalProperties": false
1818
+ },
1819
+ "ParameterWithContentNotInPath": {
1820
+ "type": "object",
1821
+ "required": [
1822
+ "name",
1823
+ "in",
1824
+ "content"
1825
+ ],
1826
+ "properties": {
1827
+ "name": {
1828
+ "type": "string"
1829
+ },
1830
+ "in": {
1831
+ "type": "string",
1832
+ "enum": [
1833
+ "query",
1834
+ "header",
1835
+ "cookie"
1836
+ ]
1837
+ },
1838
+ "description": {
1839
+ "type": "string"
1840
+ },
1841
+ "required": {
1842
+ "type": "boolean",
1843
+ "default": false
1844
+ },
1845
+ "deprecated": {
1846
+ "type": "boolean",
1847
+ "default": false
1848
+ },
1849
+ "allowEmptyValue": {
1850
+ "type": "boolean",
1851
+ "default": false
1852
+ },
1853
+ "content": {
1854
+ "type": "object",
1855
+ "additionalProperties": {
1856
+ "$ref": "#/definitions/MediaType"
1857
+ },
1858
+ "minProperties": 1,
1859
+ "maxProperties": 1
1860
+ }
1861
+ },
1862
+ "patternProperties": {
1863
+ "^x-": {}
1864
+ },
1865
+ "additionalProperties": false
1866
+ },
1867
+ "RequestBody": {
1868
+ "type": "object",
1869
+ "required": [
1870
+ "content"
1871
+ ],
1872
+ "properties": {
1873
+ "description": {
1874
+ "type": "string"
1875
+ },
1876
+ "content": {
1877
+ "type": "object",
1878
+ "additionalProperties": {
1879
+ "$ref": "#/definitions/MediaType"
1880
+ }
1881
+ },
1882
+ "required": {
1883
+ "type": "boolean",
1884
+ "default": false
1885
+ }
1886
+ },
1887
+ "patternProperties": {
1888
+ "^x-": {}
1889
+ },
1890
+ "additionalProperties": false
1891
+ },
1892
+ "SecurityScheme": {
1893
+ "oneOf": [
1894
+ {
1895
+ "$ref": "#/definitions/APIKeySecurityScheme"
1896
+ },
1897
+ {
1898
+ "$ref": "#/definitions/HTTPSecurityScheme"
1899
+ },
1900
+ {
1901
+ "$ref": "#/definitions/OAuth2SecurityScheme"
1902
+ },
1903
+ {
1904
+ "$ref": "#/definitions/OpenIdConnectSecurityScheme"
1905
+ }
1906
+ ]
1907
+ },
1908
+ "APIKeySecurityScheme": {
1909
+ "type": "object",
1910
+ "required": [
1911
+ "type",
1912
+ "name",
1913
+ "in"
1914
+ ],
1915
+ "properties": {
1916
+ "type": {
1917
+ "type": "string",
1918
+ "enum": [
1919
+ "apiKey"
1920
+ ]
1921
+ },
1922
+ "name": {
1923
+ "type": "string"
1924
+ },
1925
+ "in": {
1926
+ "type": "string",
1927
+ "enum": [
1928
+ "header",
1929
+ "query",
1930
+ "cookie"
1931
+ ]
1932
+ },
1933
+ "description": {
1934
+ "type": "string"
1935
+ }
1936
+ },
1937
+ "patternProperties": {
1938
+ "^x-": {}
1939
+ },
1940
+ "additionalProperties": false
1941
+ },
1942
+ "HTTPSecurityScheme": {
1943
+ "oneOf": [
1944
+ {
1945
+ "$ref": "#/definitions/NonBearerHTTPSecurityScheme"
1946
+ },
1947
+ {
1948
+ "$ref": "#/definitions/BearerHTTPSecurityScheme"
1949
+ }
1950
+ ]
1951
+ },
1952
+ "NonBearerHTTPSecurityScheme": {
1953
+ "not": {
1954
+ "type": "object",
1955
+ "properties": {
1956
+ "scheme": {
1957
+ "type": "string",
1958
+ "enum": [
1959
+ "bearer"
1960
+ ]
1961
+ }
1962
+ }
1963
+ },
1964
+ "type": "object",
1965
+ "required": [
1966
+ "scheme",
1967
+ "type"
1968
+ ],
1969
+ "properties": {
1970
+ "scheme": {
1971
+ "type": "string"
1972
+ },
1973
+ "description": {
1974
+ "type": "string"
1975
+ },
1976
+ "type": {
1977
+ "type": "string",
1978
+ "enum": [
1979
+ "http"
1980
+ ]
1981
+ }
1982
+ },
1983
+ "patternProperties": {
1984
+ "^x-": {}
1985
+ },
1986
+ "additionalProperties": false
1987
+ },
1988
+ "BearerHTTPSecurityScheme": {
1989
+ "type": "object",
1990
+ "required": [
1991
+ "type",
1992
+ "scheme"
1993
+ ],
1994
+ "properties": {
1995
+ "scheme": {
1996
+ "type": "string",
1997
+ "enum": [
1998
+ "bearer"
1999
+ ]
2000
+ },
2001
+ "bearerFormat": {
2002
+ "type": "string"
2003
+ },
2004
+ "type": {
2005
+ "type": "string",
2006
+ "enum": [
2007
+ "http"
2008
+ ]
2009
+ },
2010
+ "description": {
2011
+ "type": "string"
2012
+ }
2013
+ },
2014
+ "patternProperties": {
2015
+ "^x-": {}
2016
+ },
2017
+ "additionalProperties": false
2018
+ },
2019
+ "OAuth2SecurityScheme": {
2020
+ "type": "object",
2021
+ "required": [
2022
+ "type",
2023
+ "flows"
2024
+ ],
2025
+ "properties": {
2026
+ "type": {
2027
+ "type": "string",
2028
+ "enum": [
2029
+ "oauth2"
2030
+ ]
2031
+ },
2032
+ "flows": {
2033
+ "$ref": "#/definitions/OAuthFlows"
2034
+ },
2035
+ "description": {
2036
+ "type": "string"
2037
+ }
2038
+ },
2039
+ "patternProperties": {
2040
+ "^x-": {}
2041
+ },
2042
+ "additionalProperties": false
2043
+ },
2044
+ "OpenIdConnectSecurityScheme": {
2045
+ "type": "object",
2046
+ "required": [
2047
+ "type",
2048
+ "openIdConnectUrl"
2049
+ ],
2050
+ "properties": {
2051
+ "type": {
2052
+ "type": "string",
2053
+ "enum": [
2054
+ "openIdConnect"
2055
+ ]
2056
+ },
2057
+ "openIdConnectUrl": {
2058
+ "type": "string",
2059
+ "format": "url"
2060
+ },
2061
+ "description": {
2062
+ "type": "string"
2063
+ }
2064
+ },
2065
+ "patternProperties": {
2066
+ "^x-": {}
2067
+ },
2068
+ "additionalProperties": false
2069
+ },
2070
+ "OAuthFlows": {
2071
+ "type": "object",
2072
+ "properties": {
2073
+ "implicit": {
2074
+ "$ref": "#/definitions/ImplicitOAuthFlow"
2075
+ },
2076
+ "password": {
2077
+ "$ref": "#/definitions/PasswordOAuthFlow"
2078
+ },
2079
+ "clientCredentials": {
2080
+ "$ref": "#/definitions/ClientCredentialsFlow"
2081
+ },
2082
+ "authorizationCode": {
2083
+ "$ref": "#/definitions/AuthorizationCodeOAuthFlow"
2084
+ }
2085
+ },
2086
+ "patternProperties": {
2087
+ "^x-": {}
2088
+ },
2089
+ "additionalProperties": false
2090
+ },
2091
+ "ImplicitOAuthFlow": {
2092
+ "type": "object",
2093
+ "required": [
2094
+ "authorizationUrl",
2095
+ "scopes"
2096
+ ],
2097
+ "properties": {
2098
+ "authorizationUrl": {
2099
+ "type": "string",
2100
+ "format": "uriref"
2101
+ },
2102
+ "refreshUrl": {
2103
+ "type": "string",
2104
+ "format": "uriref"
2105
+ },
2106
+ "scopes": {
2107
+ "type": "object",
2108
+ "additionalProperties": {
2109
+ "type": "string"
2110
+ }
2111
+ }
2112
+ },
2113
+ "patternProperties": {
2114
+ "^x-": {}
2115
+ },
2116
+ "additionalProperties": false
2117
+ },
2118
+ "PasswordOAuthFlow": {
2119
+ "type": "object",
2120
+ "required": [
2121
+ "tokenUrl"
2122
+ ],
2123
+ "properties": {
2124
+ "tokenUrl": {
2125
+ "type": "string",
2126
+ "format": "uriref"
2127
+ },
2128
+ "refreshUrl": {
2129
+ "type": "string",
2130
+ "format": "uriref"
2131
+ },
2132
+ "scopes": {
2133
+ "type": "object",
2134
+ "additionalProperties": {
2135
+ "type": "string"
2136
+ }
2137
+ }
2138
+ },
2139
+ "patternProperties": {
2140
+ "^x-": {}
2141
+ },
2142
+ "additionalProperties": false
2143
+ },
2144
+ "ClientCredentialsFlow": {
2145
+ "type": "object",
2146
+ "required": [
2147
+ "tokenUrl"
2148
+ ],
2149
+ "properties": {
2150
+ "tokenUrl": {
2151
+ "type": "string",
2152
+ "format": "uriref"
2153
+ },
2154
+ "refreshUrl": {
2155
+ "type": "string",
2156
+ "format": "uriref"
2157
+ },
2158
+ "scopes": {
2159
+ "type": "object",
2160
+ "additionalProperties": {
2161
+ "type": "string"
2162
+ }
2163
+ }
2164
+ },
2165
+ "patternProperties": {
2166
+ "^x-": {}
2167
+ },
2168
+ "additionalProperties": false
2169
+ },
2170
+ "AuthorizationCodeOAuthFlow": {
2171
+ "type": "object",
2172
+ "required": [
2173
+ "authorizationUrl",
2174
+ "tokenUrl"
2175
+ ],
2176
+ "properties": {
2177
+ "authorizationUrl": {
2178
+ "type": "string",
2179
+ "format": "uriref"
2180
+ },
2181
+ "tokenUrl": {
2182
+ "type": "string",
2183
+ "format": "uriref"
2184
+ },
2185
+ "refreshUrl": {
2186
+ "type": "string",
2187
+ "format": "uriref"
2188
+ },
2189
+ "scopes": {
2190
+ "type": "object",
2191
+ "additionalProperties": {
2192
+ "type": "string"
2193
+ }
2194
+ }
2195
+ },
2196
+ "patternProperties": {
2197
+ "^x-": {}
2198
+ },
2199
+ "additionalProperties": false
2200
+ },
2201
+ "Link": {
2202
+ "oneOf": [
2203
+ {
2204
+ "$ref": "#/definitions/LinkWithOperationRef"
2205
+ },
2206
+ {
2207
+ "$ref": "#/definitions/LinkWithOperationId"
2208
+ }
2209
+ ]
2210
+ },
2211
+ "LinkWithOperationRef": {
2212
+ "type": "object",
2213
+ "properties": {
2214
+ "operationRef": {
2215
+ "type": "string",
2216
+ "format": "uriref"
2217
+ },
2218
+ "parameters": {
2219
+ "type": "object",
2220
+ "additionalProperties": {}
2221
+ },
2222
+ "requestBody": {},
2223
+ "description": {
2224
+ "type": "string"
2225
+ },
2226
+ "server": {
2227
+ "$ref": "#/definitions/Server"
2228
+ }
2229
+ },
2230
+ "patternProperties": {
2231
+ "^x-": {}
2232
+ },
2233
+ "additionalProperties": false
2234
+ },
2235
+ "LinkWithOperationId": {
2236
+ "type": "object",
2237
+ "properties": {
2238
+ "operationId": {
2239
+ "type": "string"
2240
+ },
2241
+ "parameters": {
2242
+ "type": "object",
2243
+ "additionalProperties": {}
2244
+ },
2245
+ "requestBody": {},
2246
+ "description": {
2247
+ "type": "string"
2248
+ },
2249
+ "server": {
2250
+ "$ref": "#/definitions/Server"
2251
+ }
2252
+ },
2253
+ "patternProperties": {
2254
+ "^x-": {}
2255
+ },
2256
+ "additionalProperties": false
2257
+ },
2258
+ "Callback": {
2259
+ "type": "object",
2260
+ "additionalProperties": {
2261
+ "$ref": "#/definitions/PathItem"
2262
+ },
2263
+ "patternProperties": {
2264
+ "^x-": {}
2265
+ }
2266
+ },
2267
+ "Encoding": {
2268
+ "type": "object",
2269
+ "properties": {
2270
+ "contentType": {
2271
+ "type": "string"
2272
+ },
2273
+ "headers": {
2274
+ "type": "object",
2275
+ "additionalProperties": {
2276
+ "$ref": "#/definitions/Header"
2277
+ }
2278
+ },
2279
+ "style": {
2280
+ "type": "string",
2281
+ "enum": [
2282
+ "form",
2283
+ "spaceDelimited",
2284
+ "pipeDelimited",
2285
+ "deepObject"
2286
+ ]
2287
+ },
2288
+ "explode": {
2289
+ "type": "boolean"
2290
+ },
2291
+ "allowReserved": {
2292
+ "type": "boolean",
2293
+ "default": false
2294
+ }
2295
+ },
2296
+ "additionalProperties": false
2297
+ }
2298
+ }
2299
+ }