diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-28 21:27:54 +0400 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2020-04-28 21:27:54 +0400 |
commit | 5238ae3dd3bfba9ff84d5f47e2419227fc7c5d9a (patch) | |
tree | 39f7d92c9c6ff5e900c7c93dbf8cada07c03cee2 /lib/pleroma/web/api_spec/helpers.ex | |
parent | 12bb7fc0dc94068d8337f10fc337ab23c8c7e77e (diff) | |
download | pleroma-5238ae3dd3bfba9ff84d5f47e2419227fc7c5d9a.tar.gz |
Add OpenAPI spec for NotificationController
Diffstat (limited to 'lib/pleroma/web/api_spec/helpers.ex')
-rw-r--r-- | lib/pleroma/web/api_spec/helpers.ex | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/pleroma/web/api_spec/helpers.ex b/lib/pleroma/web/api_spec/helpers.ex index ce40fb9e8..df0804486 100644 --- a/lib/pleroma/web/api_spec/helpers.ex +++ b/lib/pleroma/web/api_spec/helpers.ex @@ -46,4 +46,12 @@ defmodule Pleroma.Web.ApiSpec.Helpers do ) ] end + + def empty_object_response do + Operation.response("Empty object", "application/json", %Schema{type: :object, example: %{}}) + end + + def empty_array_response do + Operation.response("Empty array", "application/json", %Schema{type: :array, example: []}) + end end |