There are two case classes that have the exact same fields and types:
final case class NotAnArray(schemaKey: SchemaKey, value: Json, expected: String) extends LoaderIgluError
final case class WrongType(schemaKey: SchemaKey, value: Json, expected: String) extends LoaderIgluError
When these classes are serialized to JSON, it is impossible to know which was the original case class:
There are two case classes that have the exact same fields and types:
When these classes are serialized to JSON, it is impossible to know which was the original case class:
This means, when a
NotAnArray
is deserialized from JSON, it is interpreted as aWrongType
.