From d29801b67194e25e6647ad4dae5d8a5e4b9ee29f Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Wed, 1 Sep 2021 14:44:31 -0700 Subject: [PATCH] per the spec, the only allowed ranges are [12345]XX https://spec.openapis.org/oas/v3.1.0#patterned-fields-0 --- schemas/v3.1/schema.json | 2 +- schemas/v3.1/schema.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/schemas/v3.1/schema.json b/schemas/v3.1/schema.json index 44fdbb92b8..44d0a3f3f2 100644 --- a/schemas/v3.1/schema.json +++ b/schemas/v3.1/schema.json @@ -774,7 +774,7 @@ } }, "patternProperties": { - "^[1-5][0-9X]{2}$": { + "^[1-5](?:[0-9]{2}|XX)$": "$ref": "#/$defs/response-or-reference" } }, diff --git a/schemas/v3.1/schema.yaml b/schemas/v3.1/schema.yaml index 39b90f34de..9d4c36bd79 100644 --- a/schemas/v3.1/schema.yaml +++ b/schemas/v3.1/schema.yaml @@ -520,7 +520,7 @@ $defs: default: $ref: '#/$defs/response-or-reference' patternProperties: - '^[1-5][0-9X]{2}$': + '^[1-5](?:[0-9]{2}|XX)$': $ref: '#/$defs/response-or-reference' $ref: '#/$defs/specification-extensions' unevaluatedProperties: false