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