Join Slack
Powered by
Do default polymorphic type handlers work also for...
# serialization
a
aidanvii
10/13/2021, 12:29 PM
Do default polymorphic type handlers work also for cases where the class discriminator is just not present in the json?
d
Dominaezzz
10/13/2021, 12:54 PM
I don't think so. The default handler isn't nullable.
Dominaezzz
10/13/2021, 12:54 PM
It would also mean that you would accept any json object whatsoever.
a
aidanvii
10/13/2021, 1:43 PM
hmm okay thanks
e
ephemient
10/13/2021, 3:45 PM
you can extend
JsonContentPolymorphicSerializer
to do this
9
Views
Open in Slack
Previous
Next