From 19bbf1a687c1175c8e5f25417dcfbec21ad5ae62 Mon Sep 17 00:00:00 2001 From: ehennestad Date: Mon, 28 Oct 2024 11:54:03 +0100 Subject: [PATCH] Fix: pipeline build an excessive amount of mixedtype classes (#25) * Fix: Only generate mixed types classes for linked/embedded type with more than one allowed type --- pipeline/translator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipeline/translator.py b/pipeline/translator.py index 4ba64169..d64bed3b 100644 --- a/pipeline/translator.py +++ b/pipeline/translator.py @@ -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):