schema: standardize JSON formatting

This commit is contained in:
Eric Chiang 2016-05-26 10:41:33 -07:00
parent f39191a92d
commit 2003df83cf
7 changed files with 288 additions and 293 deletions

View file

@ -34,7 +34,7 @@ __Version:__ v1
redirectURIs: [ redirectURIs: [
string string
], ],
secret: string secret: string // The client secret. Ignored in client create requests.
} }
``` ```

View file

@ -134,6 +134,7 @@ type Client struct {
// 2005. ) (Simple String Comparison). // 2005. ) (Simple String Comparison).
RedirectURIs []string `json:"redirectURIs,omitempty"` RedirectURIs []string `json:"redirectURIs,omitempty"`
// Secret: The client secret. Ignored in client create requests.
Secret string `json:"secret,omitempty"` Secret string `json:"secret,omitempty"`
} }

View file

@ -1,5 +1,4 @@
package adminschema package adminschema
// //
// This file is automatically generated by schema/generator // This file is automatically generated by schema/generator
// //
@ -64,10 +63,6 @@ const DiscoveryJSON = `{
"type": "string", "type": "string",
"description": "The client secret. Ignored in client create requests." "description": "The client secret. Ignored in client create requests."
}, },
"secret": {
"type": "string",
"format": "byte"
},
"isAdmin": { "isAdmin": {
"type": "boolean" "type": "boolean"
}, },
@ -107,7 +102,7 @@ const DiscoveryJSON = `{
"type": "object", "type": "object",
"description": "Upon successful registration, an ID and secret is assigned to the client.", "description": "Upon successful registration, an ID and secret is assigned to the client.",
"properties": { "properties": {
"client":{ "client": {
"$ref": "Client" "$ref": "Client"
} }
} }
@ -134,7 +129,6 @@ const DiscoveryJSON = `{
"response": { "response": {
"$ref": "Admin" "$ref": "Admin"
} }
}, },
"Create": { "Create": {
"id": "dex.admin.Admin.Create", "id": "dex.admin.Admin.Create",

View file

@ -96,7 +96,7 @@
"type": "object", "type": "object",
"description": "Upon successful registration, an ID and secret is assigned to the client.", "description": "Upon successful registration, an ID and secret is assigned to the client.",
"properties": { "properties": {
"client":{ "client": {
"$ref": "Client" "$ref": "Client"
} }
} }
@ -123,7 +123,6 @@
"response": { "response": {
"$ref": "Admin" "$ref": "Admin"
} }
}, },
"Create": { "Create": {
"id": "dex.admin.Admin.Create", "id": "dex.admin.Admin.Create",

View file

@ -232,8 +232,8 @@ A client with associated public metadata.
> |Name|Located in|Description|Required|Type| > |Name|Located in|Description|Required|Type|
|:-----|:-----|:-----|:-----|:-----| |:-----|:-----|:-----|:-----|:-----|
| clientid | path | | Yes | string |
| userid | path | | Yes | string | | userid | path | | Yes | string |
| clientid | path | | Yes | string |
> __Responses__ > __Responses__
@ -310,8 +310,8 @@ A client with associated public metadata.
> |Name|Located in|Description|Required|Type| > |Name|Located in|Description|Required|Type|
|:-----|:-----|:-----|:-----|:-----| |:-----|:-----|:-----|:-----|:-----|
| nextPageToken | query | | No | string |
| maxResults | query | | No | integer | | maxResults | query | | No | integer |
| nextPageToken | query | | No | string |
> __Responses__ > __Responses__

View file

@ -1,5 +1,4 @@
package workerschema package workerschema
// //
// This file is automatically generated by schema/generator // This file is automatically generated by schema/generator
// //
@ -280,7 +279,8 @@ const DiscoveryJSON = `{
"httpMethod": "DELETE", "httpMethod": "DELETE",
"path": "account/{userid}/refresh/{clientid}", "path": "account/{userid}/refresh/{clientid}",
"parameterOrder": [ "parameterOrder": [
"userid","clientid" "userid",
"clientid"
], ],
"parameters": { "parameters": {
"clientid": { "clientid": {

View file

@ -273,7 +273,8 @@
"httpMethod": "DELETE", "httpMethod": "DELETE",
"path": "account/{userid}/refresh/{clientid}", "path": "account/{userid}/refresh/{clientid}",
"parameterOrder": [ "parameterOrder": [
"userid","clientid" "userid",
"clientid"
], ],
"parameters": { "parameters": {
"clientid": { "clientid": {