rocketraman
01/19/2022, 3:57 PMPetter Måhlén
01/20/2022, 7:44 AMT
to be nullable, you can constrain it to Any
, and then register a polymorphic serializer for Any, as the comments indicate. Or so I think, I do something similar in my use case, and that works just fine.rocketraman
01/20/2022, 2:06 PMrocketraman
01/28/2022, 12:23 AMT
with an Optional<T>
type. Too bad there are still so many rough edges with serialization.