Open Dominaezzz opened 4 years ago
@sandwwraith any news about it?
External serialization is now considered an experimental feature and it's not a top priority, so I can't tell any particular timeframe for the fix
Rip, that's unfortunate. I was using this as a workaround for https://github.com/Kotlin/kotlinx.serialization/issues/546, by using a JsonTransformingSerializer
to rewrite the class discriminator.
I guess I'll use a PolymorphicSerializer
for now.
Describe the bug Serializer returns
{}
when deserializingTo Reproduce Attach a code snippet or test data if possible.
Expected behavior
{"type":"io.github.matrixkt.EventTypeTests.Animal.Dog","breed":"German Shephard"}
instead of{}
Environment