Closed huthe98 closed 2 months ago
Kotlinx serialization ignores unknown enums, val services: kotlin.collections.List<@Contextual ServiceGeneratedDto>?
Failure(io.ktor.serialization.JsonConvertException: .ServiceGeneratedDto does not contain element with name 'Cars' at path $[1].services[0])
Take a look here: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json.md#coercing-input-values
"unknown values for enums" -- what does it mean? literally enum field called "unknown" or something else?
@valeriyo Values that are not declared in the enum class in Kotlin. See example in the mentioned section.
Kotlinx serialization ignores unknown enums, val services: kotlin.collections.List<@Contextual ServiceGeneratedDto>?