Skip to content

Commit

Permalink
Fix: pipeline build an excessive amount of mixedtype classes (#25)
Browse files Browse the repository at this point in the history
* Fix: Only generate mixed types classes for linked/embedded type with more than one allowed type
  • Loading branch information
ehennestad authored Oct 28, 2024
1 parent 987c6e4 commit 19bbf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pipeline/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _generate_additional_files(self):
# Create mixedtype class
for prop in self._template_variables["props"]:
if prop["is_linked"] or prop["is_embedded"]:
if len(prop["type_list"]) > 1:
if len(prop["mixed_type_list"]) > 1:
self._build_mixed_type_class(self._template_variables, prop)

def _build_mixed_type_class(self, schema, prop):
Expand Down

0 comments on commit 19bbf1a

Please sign in to comment.