fix field type, fix formatting

This commit is contained in:
MediaFormat 2026-01-11 05:34:17 +00:00 committed by Henry Jameson
commit cb389e788d
2 changed files with 5 additions and 3 deletions

View file

@ -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."
},

View file

@ -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)