@@ -32,18 +32,14 @@ patternProperties:
32
32
' ^x- ' : {}
33
33
additionalProperties : false
34
34
definitions :
35
- RefProperty :
36
- type : string
37
- format : uri-reference
38
-
39
35
Reference :
40
36
type : object
41
37
required :
42
38
- $ref
43
39
patternProperties :
44
40
' ^\$ref$ ' :
45
- $ref : ' #/definitions/RefProperty '
46
-
41
+ type : string
42
+ format : uri-reference
47
43
Info :
48
44
type : object
49
45
required :
@@ -143,27 +139,37 @@ definitions:
143
139
type : object
144
140
patternProperties :
145
141
' ^[a-zA-Z0-9\.\-_]+$ ' :
146
- $ref : ' #/definitions/Response'
142
+ oneOf :
143
+ - $ref : ' #/definitions/Reference'
144
+ - $ref : ' #/definitions/Response'
147
145
parameters :
148
146
type : object
149
147
patternProperties :
150
148
' ^[a-zA-Z0-9\.\-_]+$ ' :
151
- $ref : ' #/definitions/Parameter'
149
+ oneOf :
150
+ - $ref : ' #/definitions/Reference'
151
+ - $ref : ' #/definitions/Parameter'
152
152
examples :
153
153
type : object
154
154
patternProperties :
155
155
' ^[a-zA-Z0-9\.\-_]+$ ' :
156
- $ref : ' #/definitions/Example'
156
+ oneOf :
157
+ - $ref : ' #/definitions/Reference'
158
+ - $ref : ' #/definitions/Example'
157
159
requestBodies :
158
160
type : object
159
161
patternProperties :
160
162
' ^[a-zA-Z0-9\.\-_]+$ ' :
161
- $ref : ' #/definitions/RequestBody'
163
+ oneOf :
164
+ - $ref : ' #/definitions/Reference'
165
+ - $ref : ' #/definitions/RequestBody'
162
166
headers :
163
167
type : object
164
168
patternProperties :
165
169
' ^[a-zA-Z0-9\.\-_]+$ ' :
166
- $ref : ' #/definitions/Header'
170
+ oneOf :
171
+ - $ref : ' #/definitions/Reference'
172
+ - $ref : ' #/definitions/Header'
167
173
securitySchemes :
168
174
type : object
169
175
patternProperties :
@@ -175,12 +181,16 @@ definitions:
175
181
type : object
176
182
patternProperties :
177
183
' ^[a-zA-Z0-9\.\-_]+$ ' :
178
- $ref : ' #/definitions/Link'
184
+ oneOf :
185
+ - $ref : ' #/definitions/Reference'
186
+ - $ref : ' #/definitions/Link'
179
187
callbacks :
180
188
type : object
181
189
patternProperties :
182
190
' ^[a-zA-Z0-9\.\-_]+$ ' :
183
- $ref : ' #/definitions/Callback'
191
+ oneOf :
192
+ - $ref : ' #/definitions/Reference'
193
+ - $ref : ' #/definitions/Callback'
184
194
patternProperties :
185
195
' ^x- ' : {}
186
196
additionalProperties : false
@@ -349,18 +359,20 @@ definitions:
349
359
headers :
350
360
type : object
351
361
additionalProperties :
352
- $ref : ' #/definitions/Header'
362
+ oneOf :
363
+ - $ref : ' #/definitions/Header'
364
+ - $ref : ' #/definitions/Reference'
353
365
content :
354
366
type : object
355
367
additionalProperties :
356
368
$ref : ' #/definitions/MediaType'
357
369
links :
358
370
type : object
359
371
additionalProperties :
360
- $ref : ' #/definitions/Link'
372
+ oneOf :
373
+ - $ref : ' #/definitions/Link'
374
+ - $ref : ' #/definitions/Reference'
361
375
patternProperties :
362
- ' ^\$ref$ ' :
363
- $ref : ' #/definitions/RefProperty'
364
376
' ^x- ' : {}
365
377
additionalProperties : false
366
378
@@ -373,7 +385,9 @@ definitions:
373
385
examples :
374
386
type : object
375
387
additionalProperties :
376
- $ref : ' #/definitions/Example'
388
+ oneOf :
389
+ - $ref : ' #/definitions/Example'
390
+ - $ref : ' #/definitions/Reference'
377
391
encoding :
378
392
type : object
379
393
additionalProperties :
@@ -396,8 +410,6 @@ definitions:
396
410
type : string
397
411
format : uri-reference
398
412
patternProperties :
399
- ' ^\$ref$ ' :
400
- $ref : ' #/definitions/RefProperty'
401
413
' ^x- ' : {}
402
414
additionalProperties : false
403
415
@@ -437,10 +449,10 @@ definitions:
437
449
examples :
438
450
type : object
439
451
additionalProperties :
440
- $ref : ' #/definitions/Example'
452
+ oneOf :
453
+ - $ref : ' #/definitions/Example'
454
+ - $ref : ' #/definitions/Reference'
441
455
patternProperties :
442
- ' ^\$ref$ ' :
443
- $ref : ' #/definitions/RefProperty'
444
456
' ^x- ' : {}
445
457
additionalProperties : false
446
458
allOf :
@@ -471,7 +483,9 @@ definitions:
471
483
parameters :
472
484
type : array
473
485
items :
474
- $ref : ' #/definitions/Parameter'
486
+ oneOf :
487
+ - $ref : ' #/definitions/Parameter'
488
+ - $ref : ' #/definitions/Reference'
475
489
uniqueItems : true
476
490
patternProperties :
477
491
' ^(get|put|post|delete|options|head|patch|trace)$ ' :
@@ -499,16 +513,22 @@ definitions:
499
513
parameters :
500
514
type : array
501
515
items :
502
- $ref : ' #/definitions/Parameter'
516
+ oneOf :
517
+ - $ref : ' #/definitions/Parameter'
518
+ - $ref : ' #/definitions/Reference'
503
519
uniqueItems : true
504
520
requestBody :
505
- $ref : ' #/definitions/RequestBody'
521
+ oneOf :
522
+ - $ref : ' #/definitions/RequestBody'
523
+ - $ref : ' #/definitions/Reference'
506
524
responses :
507
525
$ref : ' #/definitions/Responses'
508
526
callbacks :
509
527
type : object
510
528
additionalProperties :
511
- $ref : ' #/definitions/Callback'
529
+ oneOf :
530
+ - $ref : ' #/definitions/Callback'
531
+ - $ref : ' #/definitions/Reference'
512
532
deprecated :
513
533
type : boolean
514
534
default : false
@@ -528,10 +548,14 @@ definitions:
528
548
type : object
529
549
properties :
530
550
default :
531
- $ref : ' #/definitions/Response'
551
+ oneOf :
552
+ - $ref : ' #/definitions/Response'
553
+ - $ref : ' #/definitions/Reference'
532
554
patternProperties :
533
555
' ^[1-5](?:\d{2}|XX)$ ' :
534
- $ref : ' #/definitions/Response'
556
+ oneOf :
557
+ - $ref : ' #/definitions/Response'
558
+ - $ref : ' #/definitions/Reference'
535
559
' ^x- ' : {}
536
560
minProperties : 1
537
561
additionalProperties : false
@@ -635,15 +659,15 @@ definitions:
635
659
examples :
636
660
type : object
637
661
additionalProperties :
638
- $ref : ' #/definitions/Example'
662
+ oneOf :
663
+ - $ref : ' #/definitions/Example'
664
+ - $ref : ' #/definitions/Reference'
639
665
patternProperties :
640
- ' ^\$ref$ ' :
641
- $ref : ' #/definitions/RefProperty'
642
666
' ^x- ' : {}
643
667
additionalProperties : false
644
- oneOf :
645
- - required : [$ref]
646
- - required : [name, in]
668
+ required :
669
+ - name
670
+ - in
647
671
allOf :
648
672
- $ref : ' #/definitions/ExampleXORExamples'
649
673
- $ref : ' #/definitions/SchemaXORContent'
@@ -690,6 +714,8 @@ definitions:
690
714
691
715
RequestBody :
692
716
type : object
717
+ required :
718
+ - content
693
719
properties :
694
720
description :
695
721
type : string
@@ -701,13 +727,8 @@ definitions:
701
727
type : boolean
702
728
default : false
703
729
patternProperties :
704
- ' ^\$ref$ ' :
705
- $ref : ' #/definitions/RefProperty'
706
730
' ^x- ' : {}
707
731
additionalProperties : false
708
- oneOf :
709
- - required : ["content"]
710
- - required : ["$ref"]
711
732
712
733
SecurityScheme :
713
734
oneOf :
@@ -924,8 +945,6 @@ definitions:
924
945
server :
925
946
$ref : ' #/definitions/Server'
926
947
patternProperties :
927
- ' ^\$ref$ ' :
928
- $ref : ' #/definitions/RefProperty'
929
948
' ^x- ' : {}
930
949
additionalProperties : false
931
950
not :
@@ -937,8 +956,6 @@ definitions:
937
956
additionalProperties :
938
957
$ref : ' #/definitions/PathItem'
939
958
patternProperties :
940
- ' ^\$ref$ ' :
941
- $ref : ' #/definitions/RefProperty'
942
959
' ^x- ' : {}
943
960
944
961
Encoding :
0 commit comments