aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma
diff options
context:
space:
mode:
authorSean King <seanking2919@protonmail.com>2021-08-26 11:11:37 -0600
committerSean King <seanking2919@protonmail.com>2021-08-26 11:11:37 -0600
commitba6914f90a3e39dd75e7775fd37cfbb6ad3d2f3b (patch)
treee20580101da1ef48a6567bc020ada3c2774d30d4 /lib/pleroma
parent6519732045596b1f0b0e83c365db516afba913d9 (diff)
downloadpleroma-ba6914f90a3e39dd75e7775fd37cfbb6ad3d2f3b.tar.gz
Fix formatting in app_operation.ex
Diffstat (limited to 'lib/pleroma')
-rw-r--r--lib/pleroma/web/api_spec/operations/app_operation.ex42
1 files changed, 23 insertions, 19 deletions
diff --git a/lib/pleroma/web/api_spec/operations/app_operation.ex b/lib/pleroma/web/api_spec/operations/app_operation.ex
index 72032a4e0..c2221ac98 100644
--- a/lib/pleroma/web/api_spec/operations/app_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/app_operation.ex
@@ -21,7 +21,7 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
description: "List the OAuth applications for the current user",
operationId: "AppController.index",
responses: %{
- 200 => Operation.response("App", "application/json", index_response()),
+ 200 => Operation.response("App", "application/json", index_response())
}
}
end
@@ -164,24 +164,28 @@ defmodule Pleroma.Web.ApiSpec.AppOperation do
title: "AppIndexResponse",
description: "Response schema for GET /api/v1/apps",
type: :object,
- properties: [%{
- id: %Schema{type: :string},
- name: %Schema{type: :string},
- client_id: %Schema{type: :string},
- client_secret: %Schema{type: :string},
- redirect_uri: %Schema{type: :string},
- vapid_key: %Schema{type: :string},
- website: %Schema{type: :string, nullable: true}
- }],
- example: [%{
- "id" => "123",
- "name" => "My App",
- "client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM",
- "client_secret" => "ZEaFUFmF0umgBX1qKJDjaU99Q31lDkOU8NutzTOoliw",
- "vapid_key" =>
- "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
- "website" => "https://myapp.com/"
- }]
+ properties: [
+ %{
+ id: %Schema{type: :string},
+ name: %Schema{type: :string},
+ client_id: %Schema{type: :string},
+ client_secret: %Schema{type: :string},
+ redirect_uri: %Schema{type: :string},
+ vapid_key: %Schema{type: :string},
+ website: %Schema{type: :string, nullable: true}
+ }
+ ],
+ example: [
+ %{
+ "id" => "123",
+ "name" => "My App",
+ "client_id" => "TWhM-tNSuncnqN7DBJmoyeLnk6K3iJJ71KKXxgL1hPM",
+ "client_secret" => "ZEaFUFmF0umgBX1qKJDjaU99Q31lDkOU8NutzTOoliw",
+ "vapid_key" =>
+ "BCk-QqERU0q-CfYZjcuB6lnyyOYfJ2AifKqfeGIm7Z-HiTU5T9eTG5GxVA0_OH5mMlI4UkkDTpaZwozy0TzdZ2M=",
+ "website" => "https://myapp.com/"
+ }
+ ]
}
end
end