aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/api_spec/helpers.ex
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-09-20 19:27:27 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-09-20 19:27:27 +0300
commit4987ee6256c4227793240c74043845a661e3d37b (patch)
tree40abf0e0c85df9788b59f24ed4026ae00a89e5e5 /lib/pleroma/web/api_spec/helpers.ex
parent44e8b6037ae71881327451dcf7d9351f1ba82674 (diff)
parent882c1fc6bdff4e27955730a412d73ead0e67a741 (diff)
downloadpleroma-4987ee6256c4227793240c74043845a661e3d37b.tar.gz
Merge branch 'develop' into feature/expire-mutes
Diffstat (limited to 'lib/pleroma/web/api_spec/helpers.ex')
-rw-r--r--lib/pleroma/web/api_spec/helpers.ex6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/pleroma/web/api_spec/helpers.ex b/lib/pleroma/web/api_spec/helpers.ex
index 2a7f1a706..34de2ed57 100644
--- a/lib/pleroma/web/api_spec/helpers.ex
+++ b/lib/pleroma/web/api_spec/helpers.ex
@@ -72,7 +72,11 @@ defmodule Pleroma.Web.ApiSpec.Helpers do
end
def empty_array_response do
- Operation.response("Empty array", "application/json", %Schema{type: :array, example: []})
+ Operation.response("Empty array", "application/json", %Schema{
+ type: :array,
+ items: %Schema{type: :object, example: %{}},
+ example: []
+ })
end
def no_content_response do