Skip to content

Commit 70dbe5e

Browse files
authored
Merge pull request #4394 from ralfhandl/3.2-new-security-scheme-object-fields
3.2 schema: new fixed fields in Security Scheme Object
2 parents 35422e1 + 2e745dc commit 70dbe5e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

src/schemas/validation/schema.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -749,6 +749,9 @@ $defs:
749749
- openIdConnect
750750
description:
751751
type: string
752+
deprecated:
753+
default: false
754+
type: boolean
752755
required:
753756
- type
754757
allOf:
@@ -822,6 +825,9 @@ $defs:
822825
properties:
823826
flows:
824827
$ref: '#/$defs/oauth-flows'
828+
oauth2MetadataUrl:
829+
type: string
830+
format: uri-reference
825831
required:
826832
- flows
827833

@@ -861,6 +867,8 @@ $defs:
861867
$ref: '#/$defs/oauth-flows/$defs/client-credentials'
862868
authorizationCode:
863869
$ref: '#/$defs/oauth-flows/$defs/authorization-code'
870+
deviceAuthorization:
871+
$ref: '#/$defs/oauth-flows/$defs/device-authorization'
864872
$ref: '#/$defs/specification-extensions'
865873
unevaluatedProperties: false
866874

@@ -937,6 +945,27 @@ $defs:
937945
$ref: '#/$defs/specification-extensions'
938946
unevaluatedProperties: false
939947

948+
device-authorization:
949+
type: object
950+
properties:
951+
deviceAuthorizationUrl:
952+
type: string
953+
format: uri-reference
954+
tokenUrl:
955+
type: string
956+
format: uri-reference
957+
refreshUrl:
958+
type: string
959+
format: uri-reference
960+
scopes:
961+
$ref: '#/$defs/map-of-strings'
962+
required:
963+
- authorizationUrl
964+
- tokenUrl
965+
- scopes
966+
$ref: '#/$defs/specification-extensions'
967+
unevaluatedProperties: false
968+
940969
security-requirement:
941970
$comment: https://spec.openapis.org/oas/v3.1#security-requirement-object
942971
type: object

0 commit comments

Comments
 (0)