kotlinx.serialization with polymorphism: Is there any way to affect what type discriminator is used?
I can see that we can choose which JSON field is being used for class discrimination, but can’t find a way to affect the actual discriminator used.
Ideally i don’t want my clients to have to care about entire package hierarchy. Jackson for instance lets you choose SimpleName instead of full type.
e.g instead of