Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

3.2 schema: new fixed fields in Security Scheme Object #4394

Open
wants to merge 2 commits into
base: v3.2-dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/schemas/validation/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,9 @@ $defs:
- openIdConnect
description:
type: string
deprecated:
default: false
type: boolean
required:
- type
allOf:
Expand Down Expand Up @@ -822,6 +825,9 @@ $defs:
properties:
flows:
$ref: '#/$defs/oauth-flows'
oauth2MetadataUrl:
type: string
format: uri-reference
required:
- flows

Expand Down Expand Up @@ -861,6 +867,8 @@ $defs:
$ref: '#/$defs/oauth-flows/$defs/client-credentials'
authorizationCode:
$ref: '#/$defs/oauth-flows/$defs/authorization-code'
deviceAuthorization:
$ref: '#/$defs/oauth-flows/$defs/device-authorization'
$ref: '#/$defs/specification-extensions'
unevaluatedProperties: false

Expand Down Expand Up @@ -937,6 +945,27 @@ $defs:
$ref: '#/$defs/specification-extensions'
unevaluatedProperties: false

device-authorization:
type: object
properties:
deviceAuthorizationUrl:
type: string
format: uri-reference
tokenUrl:
type: string
format: uri-reference
refreshUrl:
type: string
format: uri-reference
scopes:
$ref: '#/$defs/map-of-strings'
required:
- authorizationUrl
- tokenUrl
- scopes
$ref: '#/$defs/specification-extensions'
unevaluatedProperties: false

security-requirement:
$comment: https://spec.openapis.org/oas/v3.1#security-requirement-object
type: object
Expand Down