Hi guys, would it be possible to bring the `classDiscriminator` from context level to base class lev...
p
Hi guys, would it be possible to bring the
classDiscriminator
from context level to base class level? For example
@Polymorphic(discriminator="command")
or as part of the SerialModule:
polymorphic("command", Message::class) { ... }
or similar? It would add a great flexibility and it doesn't seem very difficult to add to the current design.
t
Issue required for start 🙂 https://github.com/Kotlin/kotlinx.serialization/issues