aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations/app_operation.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2020-04-28 11:57:16 +0000
committerrinpatch <rinpatch@sdf.org>2020-04-28 11:57:16 +0000
commit12bb7fc0dc94068d8337f10fc337ab23c8c7e77e (patch)
treedb22ab2a17bad9edc35734596b098a8bd3f0195b /lib/pleroma/web/api_spec/operations/app_operation.ex
parent9994768312ede572c4ddd6beda7027b0a2baddce (diff)
parentdda65f7799e9dfa2e7b87389848eeee10993a858 (diff)
downloadpleroma-12bb7fc0dc94068d8337f10fc337ab23c8c7e77e.tar.gz
Merge branch 'openapi/account' into 'develop'
Add OpenAPI specs for AccountController See merge request pleroma/pleroma!2374
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/app_operation.ex')
-rw-r--r--lib/pleroma/web/api_spec/operations/app_operation.ex6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/pleroma/web/api_spec/operations/app_operation.ex b/lib/pleroma/web/api_spec/operations/app_operation.ex
index 035ef2470..f6ccd073f 100644
--- a/lib/pleroma/web/api_spec/operations/app_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/app_operation.ex
@@ -49,11 +49,7 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
summary: "Verify your app works",
description: "Confirm that the app's OAuth2 credentials work.",
operationId: "AppController.verify_credentials",
- security: [
- %{
- "oAuth" => ["read"]
- }
- ],
+ security: [%{"oAuth" => ["read"]}],
responses: %{
200 =>
Operation.response("App", "application/json", %Schema{