diff options
author | rinpatch <rinpatch@sdf.org> | 2020-09-19 00:50:00 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-09-19 16:26:15 +0300 |
commit | 51116b539201eb99fa89cabc88a08f92c67bfeca (patch) | |
tree | afa2343a0a649e8efa11b33858365ea32d1fc53c /lib/pleroma/web/api_spec/helpers.ex | |
parent | 6c052bd5b6cc29d321b500654bd6b098d0e6c56a (diff) | |
download | pleroma-51116b539201eb99fa89cabc88a08f92c67bfeca.tar.gz |
OpenAPI: fix various errors pointed out by editor.swagger.io
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 |