aboutsummaryrefslogtreecommitdiff
path: root/test/web/api_spec/schema_examples_test.exs
diff options
context:
space:
mode:
authorRoman Chvanikov <chvanikoff@pm.me>2020-05-28 12:07:30 +0300
committerRoman Chvanikov <chvanikoff@pm.me>2020-05-28 12:23:19 +0300
commitfddba6739de7e5f07f14338ccf5310a143a498cd (patch)
tree7c6b297ef53d5176059597ff4589bbbcce4afff2 /test/web/api_spec/schema_examples_test.exs
parent6cab0f820ec2ee112eb4dec84fa7d1c9cd9fca73 (diff)
parenta23df89b5d457ef56154069c132c75a590de810f (diff)
downloadpleroma-fddba6739de7e5f07f14338ccf5310a143a498cd.tar.gz
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)