From cd79b6fcc83f92bddb2a4fe9a027809188ef60f7 Mon Sep 17 00:00:00 2001 From: Vladimir Gorej Date: Tue, 10 Aug 2021 19:13:09 +0200 Subject: [PATCH] Add scopes as required field of OAuth Flow Object This makes metaschema consistent with the 3.0.x spec. Refs #2666 --- schemas/v3.0/schema.json | 9 ++++++--- schemas/v3.0/schema.yaml | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/schemas/v3.0/schema.json b/schemas/v3.0/schema.json index 71808402f6..7e3551dcbb 100644 --- a/schemas/v3.0/schema.json +++ b/schemas/v3.0/schema.json @@ -1489,7 +1489,8 @@ "PasswordOAuthFlow": { "type": "object", "required": [ - "tokenUrl" + "tokenUrl", + "scopes" ], "properties": { "tokenUrl": { @@ -1516,7 +1517,8 @@ "ClientCredentialsFlow": { "type": "object", "required": [ - "tokenUrl" + "tokenUrl", + "scopes" ], "properties": { "tokenUrl": { @@ -1544,7 +1546,8 @@ "type": "object", "required": [ "authorizationUrl", - "tokenUrl" + "tokenUrl", + "scopes" ], "properties": { "authorizationUrl": { diff --git a/schemas/v3.0/schema.yaml b/schemas/v3.0/schema.yaml index b19f0a9669..e38f41f0d9 100644 --- a/schemas/v3.0/schema.yaml +++ b/schemas/v3.0/schema.yaml @@ -892,6 +892,7 @@ definitions: type: object required: - tokenUrl + - scopes properties: tokenUrl: type: string @@ -911,6 +912,7 @@ definitions: type: object required: - tokenUrl + - scopes properties: tokenUrl: type: string @@ -931,6 +933,7 @@ definitions: required: - authorizationUrl - tokenUrl + - scopes properties: authorizationUrl: type: string