Treat security scheme as case insensitive
MODIFY
schemas/v3.0/schema.yaml
schemas/v3.0/schema.yaml
@@ -806,7 +806,8 @@ definitions:
- description: Bearer
properties:
scheme:
- enum: [bearer]
+ type: string
+ pattern: ^[Bb][Ee][Aa][Rr][Ee][Rr]$
- description: Non Bearer
not:
@@ -814,7 +815,8 @@ definitions:
properties:
scheme:
not:
- enum: [bearer]
+ type: string
+ pattern: ^[Bb][Ee][Aa][Rr][Ee][Rr]$
OAuth2SecurityScheme:
type: object

MODIFY
schemas/v3.1/schema.yaml
schemas/v3.1/schema.yaml
@@ -767,7 +767,8 @@ $defs:
type:
const: http
scheme:
- const: bearer
+ type: string
+ pattern: ^[Bb][Ee][Aa][Rr][Ee][Rr]$
required:
- type
- scheme
@@ -775,8 +776,6 @@ $defs:
properties:
bearerFormat:
type: string
- required:
- - scheme
type-oauth2:
if:

Treat security scheme as case insensitive (#2706)