Skip to content

Commit 8169648

Browse files
per the spec, the only allowed ranges are [12345]XX
For example, 50X is NOT permitted. This was fixed in v3.1 in PR#2690 but the change did not make it to v3.2.0.
1 parent d22f93e commit 8169648

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)