forked from mystiq/dex
schema: standardize JSON formatting
This commit is contained in:
parent
f39191a92d
commit
2003df83cf
7 changed files with 288 additions and 293 deletions
|
@ -34,7 +34,7 @@ __Version:__ v1
|
|||
redirectURIs: [
|
||||
string
|
||||
],
|
||||
secret: string
|
||||
secret: string // The client secret. Ignored in client create requests.
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
@ -134,6 +134,7 @@ type Client struct {
|
|||
// 2005. ) (Simple String Comparison).
|
||||
RedirectURIs []string `json:"redirectURIs,omitempty"`
|
||||
|
||||
// Secret: The client secret. Ignored in client create requests.
|
||||
Secret string `json:"secret,omitempty"`
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
package adminschema
|
||||
|
||||
//
|
||||
// This file is automatically generated by schema/generator
|
||||
//
|
||||
|
@ -64,10 +63,6 @@ const DiscoveryJSON = `{
|
|||
"type": "string",
|
||||
"description": "The client secret. Ignored in client create requests."
|
||||
},
|
||||
"secret": {
|
||||
"type": "string",
|
||||
"format": "byte"
|
||||
},
|
||||
"isAdmin": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
@ -107,7 +102,7 @@ const DiscoveryJSON = `{
|
|||
"type": "object",
|
||||
"description": "Upon successful registration, an ID and secret is assigned to the client.",
|
||||
"properties": {
|
||||
"client":{
|
||||
"client": {
|
||||
"$ref": "Client"
|
||||
}
|
||||
}
|
||||
|
@ -134,7 +129,6 @@ const DiscoveryJSON = `{
|
|||
"response": {
|
||||
"$ref": "Admin"
|
||||
}
|
||||
|
||||
},
|
||||
"Create": {
|
||||
"id": "dex.admin.Admin.Create",
|
||||
|
|
|
@ -96,7 +96,7 @@
|
|||
"type": "object",
|
||||
"description": "Upon successful registration, an ID and secret is assigned to the client.",
|
||||
"properties": {
|
||||
"client":{
|
||||
"client": {
|
||||
"$ref": "Client"
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,6 @@
|
|||
"response": {
|
||||
"$ref": "Admin"
|
||||
}
|
||||
|
||||
},
|
||||
"Create": {
|
||||
"id": "dex.admin.Admin.Create",
|
||||
|
|
|
@ -232,8 +232,8 @@ A client with associated public metadata.
|
|||
|
||||
> |Name|Located in|Description|Required|Type|
|
||||
|:-----|:-----|:-----|:-----|:-----|
|
||||
| clientid | path | | Yes | string |
|
||||
| userid | path | | Yes | string |
|
||||
| clientid | path | | Yes | string |
|
||||
|
||||
|
||||
> __Responses__
|
||||
|
@ -310,8 +310,8 @@ A client with associated public metadata.
|
|||
|
||||
> |Name|Located in|Description|Required|Type|
|
||||
|:-----|:-----|:-----|:-----|:-----|
|
||||
| nextPageToken | query | | No | string |
|
||||
| maxResults | query | | No | integer |
|
||||
| nextPageToken | query | | No | string |
|
||||
|
||||
|
||||
> __Responses__
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
package workerschema
|
||||
|
||||
//
|
||||
// This file is automatically generated by schema/generator
|
||||
//
|
||||
|
@ -280,7 +279,8 @@ const DiscoveryJSON = `{
|
|||
"httpMethod": "DELETE",
|
||||
"path": "account/{userid}/refresh/{clientid}",
|
||||
"parameterOrder": [
|
||||
"userid","clientid"
|
||||
"userid",
|
||||
"clientid"
|
||||
],
|
||||
"parameters": {
|
||||
"clientid": {
|
||||
|
|
|
@ -273,7 +273,8 @@
|
|||
"httpMethod": "DELETE",
|
||||
"path": "account/{userid}/refresh/{clientid}",
|
||||
"parameterOrder": [
|
||||
"userid","clientid"
|
||||
"userid",
|
||||
"clientid"
|
||||
],
|
||||
"parameters": {
|
||||
"clientid": {
|
||||
|
|
Loading…
Reference in a new issue