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
What is your use-case and why do you need this feature?
Many APIs such as Discord use type codes, which align very closely to this library's JsonClassDiscriminator feature. However, these type codes are frequently numeric instead of strings, which makes them incompatible with this library without complex workarounds.
Describe the solution you'd like
I would prefer a solution which adds an option to specify the serialized type of a discriminator, such as an addition annotation parameter as an enum of supported types, defaulting to string
The text was updated successfully, but these errors were encountered:
What is your use-case and why do you need this feature?
Many APIs such as Discord use type codes, which align very closely to this library's JsonClassDiscriminator feature. However, these type codes are frequently numeric instead of strings, which makes them incompatible with this library without complex workarounds.
Describe the solution you'd like
I would prefer a solution which adds an option to specify the serialized type of a discriminator, such as an addition annotation parameter as an enum of supported types, defaulting to string
The text was updated successfully, but these errors were encountered: