Skip to content

Commit

Permalink
docs: Make space optional in scope regex (ory#661)
Browse files Browse the repository at this point in the history
Signed-off-by: Philip Nicolcev <phil.nicolcev@tulip.io>
  • Loading branch information
pnicolcev-tulipretail committed Nov 28, 2017
1 parent 766fb99 commit 21a3db8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type Client struct {
// described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client
// can use when requesting access tokens.
//
// Pattern: ([a-zA-Z0-9\.\*]+\s)+
// Pattern: ([a-zA-Z0-9\.\*]+\s?)+
Scope string `json:"scope" gorethink:"scope"`

// Owner is a string identifying the owner of the OAuth 2.0 Client.
Expand Down
6 changes: 3 additions & 3 deletions docs/api.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -2254,12 +2254,12 @@
"x-go-name": "Public"
},
"redirect_uris": {
"description": "RedirectURIs is an array of allowed redirect urls for the client, for example: http://mydomain/oauth/callback .",
"type": "array",
"items": {
"type": "string"
},
"x-go-name": "RedirectURIs"
"x-go-name": "RedirectURIs",
"example": "http://mydomain/oauth/callback ."
},
"response_types": {
"description": "ResponseTypes is an array of the OAuth 2.0 response type strings that the client can\nuse at the authorization endpoint.",
Expand All @@ -2273,7 +2273,7 @@
"scope": {
"description": "Scope is a string containing a space-separated list of scope values (as\ndescribed in Section 3.3 of OAuth 2.0 [RFC6749]) that the client\ncan use when requesting access tokens.",
"type": "string",
"pattern": "([a-zA-Z0-9\\.\\*]+\\s)+",
"pattern": "([a-zA-Z0-9\\.\\*]+\\s?)+",
"x-go-name": "Scope"
},
"tos_uri": {
Expand Down

0 comments on commit 21a3db8

Please sign in to comment.