Skip to content

Commit

Permalink
Add scopes as required field of OAuth Flow Object
Browse files Browse the repository at this point in the history
This makes metaschema consistent with the 3.0.x spec.

Refs OAI#2666
  • Loading branch information
char0n committed Aug 11, 2021
1 parent d9ac75b commit cd79b6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 6 additions & 3 deletions schemas/v3.0/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,8 @@
"PasswordOAuthFlow": {
"type": "object",
"required": [
"tokenUrl"
"tokenUrl",
"scopes"
],
"properties": {
"tokenUrl": {
Expand All @@ -1516,7 +1517,8 @@
"ClientCredentialsFlow": {
"type": "object",
"required": [
"tokenUrl"
"tokenUrl",
"scopes"
],
"properties": {
"tokenUrl": {
Expand Down Expand Up @@ -1544,7 +1546,8 @@
"type": "object",
"required": [
"authorizationUrl",
"tokenUrl"
"tokenUrl",
"scopes"
],
"properties": {
"authorizationUrl": {
Expand Down
3 changes: 3 additions & 0 deletions schemas/v3.0/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -892,6 +892,7 @@ definitions:
type: object
required:
- tokenUrl
- scopes
properties:
tokenUrl:
type: string
Expand All @@ -911,6 +912,7 @@ definitions:
type: object
required:
- tokenUrl
- scopes
properties:
tokenUrl:
type: string
Expand All @@ -931,6 +933,7 @@ definitions:
required:
- authorizationUrl
- tokenUrl
- scopes
properties:
authorizationUrl:
type: string
Expand Down

0 comments on commit cd79b6f

Please sign in to comment.