fix field type, fix formatting
This commit is contained in:
parent
ba280b2d0f
commit
cb389e788d
2 changed files with 5 additions and 3 deletions
|
|
@ -123,7 +123,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.OAuthAppOperation do
|
|||
name: %Schema{type: :string, description: "Application Name"},
|
||||
scopes: %Schema{type: :array, items: %Schema{type: :string}, description: "oAuth scopes"},
|
||||
redirect_uris: %Schema{
|
||||
type: :array, items: %Schema{type: :string},
|
||||
type: :array,
|
||||
items: %Schema{type: :string},
|
||||
description:
|
||||
"Where the user should be redirected after authorization. To display the authorization code to the user instead of redirecting to a web page, use `urn:ietf:wg:oauth:2.0:oob` in this parameter."
|
||||
},
|
||||
|
|
@ -157,7 +158,8 @@ defmodule Pleroma.Web.ApiSpec.Admin.OAuthAppOperation do
|
|||
name: %Schema{type: :string, description: "Application Name"},
|
||||
scopes: %Schema{type: :array, items: %Schema{type: :string}, description: "oAuth scopes"},
|
||||
redirect_uris: %Schema{
|
||||
type: :array, items: %Schema{type: :string},
|
||||
type: :array,
|
||||
items: %Schema{type: :string},
|
||||
description:
|
||||
"Where the user should be redirected after authorization. To display the authorization code to the user instead of redirecting to a web page, use `urn:ietf:wg:oauth:2.0:oob` in this parameter."
|
||||
},
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ defmodule Pleroma.Web.OAuth.App do
|
|||
|
||||
schema "apps" do
|
||||
field(:client_name, :string)
|
||||
field(:redirect_uris, :string)
|
||||
field(:redirect_uris, {:array, :string})
|
||||
field(:scopes, {:array, :string}, default: [])
|
||||
field(:website, :string)
|
||||
field(:client_id, :string)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue