Skip to content

Commit cd79b6f

Browse files
committed
Add scopes as required field of OAuth Flow Object
This makes metaschema consistent with the 3.0.x spec. Refs #2666
1 parent d9ac75b commit cd79b6f

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

schemas/v3.0/schema.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,7 +1489,8 @@
14891489
"PasswordOAuthFlow": {
14901490
"type": "object",
14911491
"required": [
1492-
"tokenUrl"
1492+
"tokenUrl",
1493+
"scopes"
14931494
],
14941495
"properties": {
14951496
"tokenUrl": {
@@ -1516,7 +1517,8 @@
15161517
"ClientCredentialsFlow": {
15171518
"type": "object",
15181519
"required": [
1519-
"tokenUrl"
1520+
"tokenUrl",
1521+
"scopes"
15201522
],
15211523
"properties": {
15221524
"tokenUrl": {
@@ -1544,7 +1546,8 @@
15441546
"type": "object",
15451547
"required": [
15461548
"authorizationUrl",
1547-
"tokenUrl"
1549+
"tokenUrl",
1550+
"scopes"
15481551
],
15491552
"properties": {
15501553
"authorizationUrl": {

schemas/v3.0/schema.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,7 @@ definitions:
892892
type: object
893893
required:
894894
- tokenUrl
895+
- scopes
895896
properties:
896897
tokenUrl:
897898
type: string
@@ -911,6 +912,7 @@ definitions:
911912
type: object
912913
required:
913914
- tokenUrl
915+
- scopes
914916
properties:
915917
tokenUrl:
916918
type: string
@@ -931,6 +933,7 @@ definitions:
931933
required:
932934
- authorizationUrl
933935
- tokenUrl
936+
- scopes
934937
properties:
935938
authorizationUrl:
936939
type: string

0 commit comments

Comments
 (0)