crooked-lifeguard-46802
04/22/2024, 2:50 PMCustomDC
in my code - the reason for not using the default dataclass transformer is due to custom serialization logic I need to be able to in for this particular class.
I now want to use CustomDC
inside vanilla dataclasses, but flytekit doesn’t seem to be calling the custom type transformer on this class 🤔
@custom_serde # custom serde register CustomDC class to an ABC with serde logic
@dataclass
class CustomDC:
fieldA: int
fieldB: List[str]
@dataclass
class VanillaDC(DataClassJSONMixin):
fieldX: List[int]
fieldY: CustomDC
TLDR: how do I enable custom type transformer for certain fields of a dataclass?rich-garden-69988
04/22/2024, 8:53 PM