summaryrefslogtreecommitdiff
path: root/test/web/api_spec/schema_examples_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-06-08 19:21:07 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-06-08 19:21:07 +0300
commit604a83ae3efe21b231fb524203a883a062102546 (patch)
tree610d04900503ec700fe7307fb73fd90bb5865009 /test/web/api_spec/schema_examples_test.exs
parent1be6b3056e97654612f377eaf3c8d80de6d8d77f (diff)
parentd1924926585a477682b8fcc3176521dacb0766dd (diff)
downloadpleroma-604a83ae3efe21b231fb524203a883a062102546.tar.gz
pleroma-604a83ae3efe21b231fb524203a883a062102546.zip
merge develop
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)