Skip to content

Commit 085be94

Browse files
per the spec, the only allowed ranges are [12345]XX (#2690)
https://spec.openapis.org/oas/v3.1.0#patterned-fields-0
1 parent 9acd3db commit 085be94

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
@@ -770,7 +770,7 @@
770770
}
771771
},
772772
"patternProperties": {
773-
"^[1-5][0-9X]{2}$": {
773+
"^[1-5](?:[0-9]{2}|XX)$":
774774
"$ref": "#/$defs/response-or-reference"
775775
}
776776
},

schemas/v3.1/schema.yaml

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

0 commit comments

Comments
 (0)