diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-20 11:15:20 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-20 11:15:20 +0000 |
commit | 402acce5251216e74e3b646c3b5fc8a04b714f99 (patch) | |
tree | 3fc3baff7046d77b7c5b1deef7ca6766ffd97813 /lib/pleroma/web/api_spec/helpers.ex | |
parent | 6c052bd5b6cc29d321b500654bd6b098d0e6c56a (diff) | |
parent | 4b12e071ac7ea87c91f6192cc0da90c32e846ca4 (diff) | |
download | pleroma-402acce5251216e74e3b646c3b5fc8a04b714f99.tar.gz |
Merge branch 'fix/openapi-errors' into 'develop'
OpenAPI: fix various errors pointed out by editor.swagger.io
See merge request pleroma/pleroma!3011
Diffstat (limited to 'lib/pleroma/web/api_spec/helpers.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/helpers.ex | 6 |
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 |