summaryrefslogtreecommitdiff
path: root/test/web/api_spec/schema_examples_test.exs
diff options
context:
space:
mode:
authorEgor Kislitsyn <egor@kislitsyn.com>2020-05-14 19:21:51 +0400
committerEgor Kislitsyn <egor@kislitsyn.com>2020-05-18 19:28:46 +0400
commit6e4de715b3ae2523fc90c2f5660a47fdda03bd6b (patch)
treeaa57422f075f86e9c8960732594dd7a9100e3314 /test/web/api_spec/schema_examples_test.exs
parent20a22362b8b72adc03ce529d50a8d87029358155 (diff)
downloadpleroma-6e4de715b3ae2523fc90c2f5660a47fdda03bd6b.tar.gz
pleroma-6e4de715b3ae2523fc90c2f5660a47fdda03bd6b.zip
Add OpenAPI spec for PleromaAPI.EmojiAPIController
Diffstat (limited to 'test/web/api_spec/schema_examples_test.exs')
-rw-r--r--test/web/api_spec/schema_examples_test.exs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/web/api_spec/schema_examples_test.exs b/test/web/api_spec/schema_examples_test.exs
index 88b6f07cb..f00e834fc 100644
--- a/test/web/api_spec/schema_examples_test.exs
+++ b/test/web/api_spec/schema_examples_test.exs
@@ -28,7 +28,7 @@ defmodule Pleroma.Web.ApiSpec.SchemaExamplesTest do
end
end
- for {status, response} <- operation.responses do
+ for {status, response} <- operation.responses, is_map(response.content[@content_type]) do
describe "#{operation.operationId} - #{status} Response" do
@schema resolve_schema(response.content[@content_type].schema)