Hello, I'm seeing this error: ```io.ktor.serializa...
# serialization
c
Hello, I'm seeing this error:
Copy code
io.ktor.serialization.JsonConvertException: Illegal input
Caused by: io.ktor.serialization.JsonConvertException: Illegal input
Caused by: kotlinx.serialization.json.internal.JsonDecodingException: Polymorphic serializer was not found for missing class discriminator ('null')
JSON input: {"failures":[{"type":"INCOMPATIBLE_FIELD","field":"","message":"impossible d'importer class opensavvy.formulaide.core.Field$Label à partir de class opensavvy.formulaide.core.Field$Group"}]}
Pretty-printing the JSON on the last line:
Copy code
{
  "failures": [
    {
      "type": "INCOMPATIBLE_FIELD",
      "field": "",
      "message": "impossible d'importer class opensavvy.formulaide.core.Field$Label à partir de class opensavvy.formulaide.core.Field$Group"
    }
  ]
}
It looks normal to me, and there definitely is a type discriminator? What's going on?
i
it is trying to match the values from JSON.
718 Views