diff options
author | lain <lain@soykaf.club> | 2020-06-26 16:15:27 +0200 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-26 16:15:27 +0200 |
commit | f378e93bf4ca4bc9547f242e76e6258e25852972 (patch) | |
tree | 9ec39c49ba561b7d12ef600592f7865b8d90f38d /lib/pleroma/web/api_spec | |
parent | 6db9f7cdb3adeda547b6e3e9ca887b685344351a (diff) | |
download | pleroma-f378e93bf4ca4bc9547f242e76e6258e25852972.tar.gz |
AccountController: Return scope in proper format.
Diffstat (limited to 'lib/pleroma/web/api_spec')
-rw-r--r-- | lib/pleroma/web/api_spec/operations/account_operation.ex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/api_spec/operations/account_operation.ex b/lib/pleroma/web/api_spec/operations/account_operation.ex index 9bde8fc0d..d94dae374 100644 --- a/lib/pleroma/web/api_spec/operations/account_operation.ex +++ b/lib/pleroma/web/api_spec/operations/account_operation.ex @@ -446,13 +446,13 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do properties: %{ token_type: %Schema{type: :string}, access_token: %Schema{type: :string}, - scope: %Schema{type: :array, items: %Schema{type: :string}}, + scope: %Schema{type: :string}, created_at: %Schema{type: :integer, format: :"date-time"} }, example: %{ "access_token" => "i9hAVVzGld86Pl5JtLtizKoXVvtTlSCJvwaugCxvZzk", "created_at" => 1_585_918_714, - "scope" => ["read", "write", "follow", "push"], + "scope" => "read write follow push", "token_type" => "Bearer" } } |