02/19/2023, 11:37 PM
I'm getting the error
Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null')
I know that the type field in my json data is missing, however I set up a default deserializer for it.
polymorphicDefaultDeserializer(ApiNext.Renderer.ItemSection::class) {
This should work, but it throws that error. ItemSection is a sealed interface Seperator is just a serializable object that inherits from it
I believe this might be a bug with 1.5.0-RC. It seems that the default deserializer isnt being used and instead it throws an error. I'm having this happen with other areas using polymorphism in my code. Can someone else confirm this?