Commit 32788aa8 authored by Vitalii Fisenko's avatar Vitalii Fisenko
Browse files

Added condition to avoid of re-expanding expanded schema

parent 9abe0699
......@@ -44,7 +44,8 @@ class SchemaTransformer:
elif 'anyOf' in model:
schema_model = {'anyOf': {
self._split_model_name(ref['$ref']): self.expand_schema_model(schema, ref)
for ref in model['anyOf']
for ref in model['anyOf'] if isinstance(ref, dict) # <- this condition is needed to avoid
# of re-expanding expanded schema
}}
else:
schema_model = deepcopy(model)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment