Skip to content

Commit

Permalink
Merge pull request #26 from artsmolin/inline_schemas
Browse files Browse the repository at this point in the history
Fix anyOf renderer
  • Loading branch information
artsmolin authored Jul 18, 2022
2 parents 615b603 + cbbc892 commit 85f1322
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pythogen/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def j2_typerepr(schema: models.SchemaObject) -> str:

elif schema.type == models.Type.array and schema.items:
if schema.items.type is models.Type.any_of: # type: ignore
items = [classname(item.schema.id) for item in schema.items.items] # type: ignore
items = [classname(item.id) for item in schema.items.items] # type: ignore
representation = f'List[Union{items}]'
else:
item = j2_typerepr(schema.items) # type: ignore
Expand Down

0 comments on commit 85f1322

Please sign in to comment.