Skip to content

Commit b7cda07

Browse files
authored
Merge pull request OAI#2998 from karenetheridge/ether/5xx-response-codes-again
per the spec, the only allowed ranges are [12345]XX
2 parents b0d78e4 + 8169648 commit b7cda07

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

schemas/v3.1/schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@
774774
}
775775
},
776776
"patternProperties": {
777-
"^[1-5][0-9X]{2}$": {
777+
"^[1-5](?:[0-9][0-9]|XX)$": {
778778
"$ref": "#/$defs/response-or-reference"
779779
}
780780
},

schemas/v3.1/schema.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ $defs:
520520
default:
521521
$ref: '#/$defs/response-or-reference'
522522
patternProperties:
523-
'^[1-5][0-9X]{2}$':
523+
'^[1-5](?:[0-9][0-9]|XX)$':
524524
$ref: '#/$defs/response-or-reference'
525525
$ref: '#/$defs/specification-extensions'
526526
unevaluatedProperties: false

0 commit comments

Comments
 (0)