diff --git a/schemas/v3.1/schema.json b/schemas/v3.1/schema.json index 44fdbb92b8..866ae05f31 100644 --- a/schemas/v3.1/schema.json +++ b/schemas/v3.1/schema.json @@ -502,6 +502,9 @@ }, "then": { "properties": { + "name": { + "pattern": "[^/#?]+$" + }, "style": { "default": "simple", "enum": [ diff --git a/schemas/v3.1/schema.yaml b/schemas/v3.1/schema.yaml index 39b90f34de..a789a93bdc 100644 --- a/schemas/v3.1/schema.yaml +++ b/schemas/v3.1/schema.yaml @@ -341,6 +341,8 @@ $defs: - in then: properties: + name: + pattern: '[^/#?]+$' style: default: simple enum: