Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/schemas/validation/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -960,7 +960,7 @@ $defs:
scopes:
$ref: '#/$defs/map-of-strings'
required:
- authorizationUrl
- deviceAuthorizationUrl
- tokenUrl
- scopes
$ref: '#/$defs/specification-extensions'
Expand Down
22 changes: 16 additions & 6 deletions tests/schema/pass/security-scheme-object-examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,8 @@ components:
description: Cert must be signed by example.com CA
OAuth2:
type: oauth2
oauth2MetadataUrl: https://example.com/api/oauth/metadata
flows:
implicit:
authorizationUrl: https://example.com/api/oauth/dialog
scopes:
write:pets: modify pets in your account
read:pets: read your pets
refreshUrl: https://example.com/api/oauth/refresh
authorizationCode:
authorizationUrl: https://example.com/api/oauth/dialog
refreshUrl: https://example.com/api/oauth/refresh
Expand All @@ -52,6 +47,21 @@ components:
scopes:
read:pets: read your pets
refreshUrl: https://example.com/api/oauth/refresh
deviceAuthorization:
deviceAuthorizationUrl: https://example.com/api/oauth/device
tokenUrl: https://example.com/api/oauth/token
scopes:
read:pets: read your pets
refreshUrl: https://example.com/api/oauth/refresh
OAuth2Old:
deprecated: true
type: oauth2
flows:
implicit:
authorizationUrl: https://example.com/api/oauth/dialog
scopes:
read:pets: read your pets
refreshUrl: https://example.com/api/oauth/refresh
OpenIdConnect:
type: openIdConnect
openIdConnectUrl: https://example.com/api/oauth/openid
Expand Down