aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/operations/account_operation.ex
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-05-07 14:04:48 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-05-07 14:04:48 +0400
commitdc4a448f4863e7d69c55d39273575fb3463c6c3c (patch)
treedaff2ddb89a9eee70fe18b752eb97895786fc0c7 /lib/pleroma/web/api_spec/operations/account_operation.ex
parentcdca62e8d4772240c513acc08a627d2f0ee0eed4 (diff)
downloadpleroma-dc4a448f4863e7d69c55d39273575fb3463c6c3c.tar.gz
Add OpenAPI spec for SearchController
Diffstat (limited to 'lib/pleroma/web/api_spec/operations/account_operation.ex')
-rw-r--r--lib/pleroma/web/api_spec/operations/account_operation.ex5
1 files changed, 3 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 470fc0215..70069d6f9 100644
--- a/lib/pleroma/web/api_spec/operations/account_operation.ex
+++ b/lib/pleroma/web/api_spec/operations/account_operation.ex
@@ -556,11 +556,12 @@ defmodule Pleroma.Web.ApiSpec.AccountOperation do
}
end
- defp array_of_accounts do
+ def array_of_accounts do
%Schema{
title: "ArrayOfAccounts",
type: :array,
- items: Account
+ items: Account,
+ example: [Account.schema().example]
}
end