diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-07 14:04:48 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-05-07 14:04:48 +0400 |
commit | dc4a448f4863e7d69c55d39273575fb3463c6c3c (patch) | |
tree | daff2ddb89a9eee70fe18b752eb97895786fc0c7 /lib/pleroma/web/api_spec/operations/account_operation.ex | |
parent | cdca62e8d4772240c513acc08a627d2f0ee0eed4 (diff) | |
download | pleroma-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.ex | 5 |
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 |