File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 840
840
},
841
841
"minProperties" : 1 ,
842
842
"$ref" : " #/$defs/specification-extensions" ,
843
- "unevaluatedProperties" : false
843
+ "unevaluatedProperties" : false ,
844
+ "$comment" : " either default, or at least one response code property must exist" ,
845
+ "if" : {
846
+ "patternProperties" : {
847
+ "^[1-5](?:[0-9]{2}|XX)$" : false
848
+ }
849
+ },
850
+ "then" : {
851
+ "required" : [ " default" ]
852
+ }
844
853
},
845
854
"response" : {
846
855
"$comment" : " https://spec.openapis.org/oas/v3.1.0#response-object" ,
Original file line number Diff line number Diff line change @@ -574,6 +574,12 @@ $defs:
574
574
minProperties : 1
575
575
$ref : ' #/$defs/specification-extensions'
576
576
unevaluatedProperties : false
577
+ $comment : either default, or at least one response code property must exist
578
+ if :
579
+ patternProperties :
580
+ ' ^[1-5](?:[0-9]{2}|XX)$ ' : false
581
+ then :
582
+ required : [default]
577
583
578
584
response :
579
585
$comment : https://spec.openapis.org/oas/v3.1.0#response-object
You can’t perform that action at this time.
0 commit comments