Skip to content

Commit f6f9ab3

Browse files
"The Responses Object MUST contain at least one response code" (#2799)
https://spec.openapis.org/oas/v3.1.0#responses-object
1 parent dfc8292 commit f6f9ab3

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

schemas/v3.1/schema.json

+1
Original file line numberDiff line numberDiff line change
@@ -820,6 +820,7 @@
820820
"$ref": "#/$defs/response-or-reference"
821821
}
822822
},
823+
"minProperties": 1,
823824
"$ref": "#/$defs/specification-extensions",
824825
"unevaluatedProperties": false
825826
},

schemas/v3.1/schema.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ $defs:
557557
patternProperties:
558558
'^[1-5](?:[0-9]{2}|XX)$':
559559
$ref: '#/$defs/response-or-reference'
560+
minProperties: 1
560561
$ref: '#/$defs/specification-extensions'
561562
unevaluatedProperties: false
562563

0 commit comments

Comments
 (0)