diff --git a/src/schemas/validation/schema.yaml b/src/schemas/validation/schema.yaml index 135e14ff52..e8896b505d 100644 --- a/src/schemas/validation/schema.yaml +++ b/src/schemas/validation/schema.yaml @@ -7,7 +7,7 @@ type: object properties: openapi: type: string - pattern: '^3\.2\.\d+(-.+)?$' + pattern: '^3\.2\.[0-9]+(-.+)?$' $self: type: string format: uri-reference diff --git a/tests/schema/fail/openapi-version.yaml b/tests/schema/fail/openapi-version.yaml new file mode 100644 index 0000000000..afed313cd7 --- /dev/null +++ b/tests/schema/fail/openapi-version.yaml @@ -0,0 +1,5 @@ +openapi: 3.2.৪ +info: + title: BENGALI DIGIT FOUR is a valid digit, but not an ascii digit + version: 1.0.0 +paths: {}