fkrauthan
01/21/2021, 8:38 PMpolymorphism
it currently uses the type
attribute. Is there any way to change the name? In my case I need it to look at the name
attribute (which is the same as type
just different name)Dariusz Kuc
01/21/2021, 8:44 PMclassDiscriminator
(defaults to type
)
val format = Json {
classDiscriminator = "__typename"
}
fkrauthan
01/21/2021, 8:50 PMDariusz Kuc
01/21/2021, 8:52 PMDariusz Kuc
01/21/2021, 8:53 PMDariusz Kuc
01/21/2021, 8:54 PMclassDiscriminator
either)Dariusz Kuc
01/21/2021, 8:55 PMDominaezzz
01/21/2021, 9:21 PMfkrauthan
01/22/2021, 2:20 AM