Here the discriminator doesn’t do anything because the interface isn’t serializable (I think). I don’t want to globally specify the discriminator because it’s only applicable to this hierarchy
kevin.cianfarini
03/25/2022, 8:12 PM
Right now, deserializing this fails with the following error.
Copy code
Polymorphic serializer was not found for missing class discriminator ('null')
JSON input: {"country":"UK"}
kevin.cianfarini
03/25/2022, 8:12 PM
If I specify the discriminator globally in my json configuration, it works fine