You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Discriminator is not used on serialization since its purpose is only to select a dataclass on deserialization. However, you are faced with using a parent class serialization issue from #225. I will close this issue as a duplicate, so feel free to subscribe to the related one.
Description
I was trying to use the msgpack serialization feature with discriminators
What I Did
crashes with:
because to_msgpack excludes the subtype data:
using:
works though
The text was updated successfully, but these errors were encountered: