Does this mean that I only have to define the following 2 classes
•
open class SimpleEntity(val foo: String, ...)
•
class Entity(foo: String, val bar: Int) : SimpleEntity(foo)
and the dedicated implementation of
JsonContentPolymorphicSerializer
?
d
diesieben07
05/27/2021, 7:17 PM
Yes
t
tseisel
05/27/2021, 7:19 PM
Alright, I should give it a try. Many thanks for your answers!
tseisel
05/28/2021, 12:18 PM
I noticed that the custom serializer is not necessary for deserialization as long as I specify the expected subclass explicitly.
However it's currently not possible to have a