Plugins: Update schema of scopes from string to string array (#39337)

* Plugins: Update schema of scopes from string to string array

* Update metadata.md
This commit is contained in:
Zoltán Bedi 2021-09-17 14:04:56 +02:00 committed by GitHub
parent 81756cd702
commit 4eff846285
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 27 deletions

View File

@ -209,11 +209,11 @@ For data source plugins. Token authentication section used with an JWT OAuth API
#### Properties
| Property | Type | Required | Description |
| -------- | ----------------- | -------- | ---------------------------------------------------- |
| `params` | [object](#params) | No | Parameters for the JWT token authentication request. |
| `scopes` | string | No | |
| `url` | string | No | URL to fetch the JWT token. |
| Property | Type | Required | Description |
| -------- | ----------------- | -------- | --------------------------------------------------------------------- |
| `params` | [object](#params) | No | Parameters for the JWT token authentication request. |
| `scopes` | string[] | No | The list of scopes that your application should be granted access to. |
| `url` | string | No | URL to fetch the JWT token. |
#### params
@ -221,12 +221,11 @@ Parameters for the JWT token authentication request.
##### Properties
| Property | Type | Required | Description |
| -------------- | -------- | -------- | ----------- |
| `client_email` | string | No | |
| `private_key` | string | No | |
| `scopes` | string[] | No | |
| `token_uri` | string | No | |
| Property | Type | Required | Description |
| -------------- | ------ | -------- | ----------- |
| `client_email` | string | No | |
| `private_key` | string | No | |
| `token_uri` | string | No | |
### tokenAuth
@ -234,11 +233,11 @@ For data source plugins. Token authentication section used with an OAuth API.
#### Properties
| Property | Type | Required | Description |
| -------- | ----------------- | -------- | ------------------------------------------------ |
| `params` | [object](#params) | No | Parameters for the token authentication request. |
| `scopes` | string | No | |
| `url` | string | No | URL to fetch the authentication token. |
| Property | Type | Required | Description |
| -------- | ----------------- | -------- | --------------------------------------------------------------------- |
| `params` | [object](#params) | No | Parameters for the token authentication request. |
| `scopes` | string[] | No | The list of scopes that your application should be granted access to. |
| `url` | string | No | URL to fetch the authentication token. |
#### params

View File

@ -370,8 +370,11 @@
"description": "URL to fetch the authentication token."
},
"scopes": {
"type": "string",
"description": ""
"type": "array",
"description": "The list of scopes that your application should be granted access to.",
"items": {
"type": "string"
}
},
"params": {
"type": "object",
@ -409,21 +412,17 @@
"format": "uri"
},
"scopes": {
"type": "string",
"description": ""
"type": "array",
"description": "The list of scopes that your application should be granted access to.",
"items": {
"type": "string"
}
},
"params": {
"type": "object",
"description": "Parameters for the JWT token authentication request.",
"additionalProperties": false,
"properties": {
"scopes": {
"type": "array",
"description": "",
"items": {
"type": "string"
}
},
"token_uri": {
"type": "string",
"description": ""