diff --git a/src/schemas/validation/schema.yaml b/src/schemas/validation/schema.yaml index 6e392a1387..184757439a 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\.1\.\d+(-.+)?$' + pattern: '^3\.1\.[0-9]+(-.+)?$' info: $ref: '#/$defs/info' jsonSchemaDialect: diff --git a/tests/schema/fail/openapi-version.yaml b/tests/schema/fail/openapi-version.yaml new file mode 100644 index 0000000000..a70838cb0d --- /dev/null +++ b/tests/schema/fail/openapi-version.yaml @@ -0,0 +1,5 @@ +openapi: 3.1.৪ +info: + title: BENGALI DIGIT FOUR is a valid digit, but not an ascii digit + version: 1.0.0 +paths: {}