itzik kasovitch
06/20/2022, 2:19 PMFailed to coerce
exception. So the input type would be:
sealed class Base {
data class Leaf(val prop: Int): Base()
data class Composite(val prop: List<Base>): Base()
}
I tried different kind of kotlinx.serialization annotations to make it work but it seems like behind the scenes it failed since Jackson is used. Also when I try to use the base as an inputType
I get an error that it doesn't have any fields. I also tried to use the derived classes as inputType
. Without success.
Last, in the examples I can only see something which returns a unionType (not something the accepts a unionType).jeggy
06/21/2022, 8:22 AMitzik kasovitch
06/21/2022, 8:37 AM