Open nicodv opened 3 years ago
Hi @nicodv :) I'll take a closer look at this issue.
Hi there.
Are there any updates? It seems like we have a branch of onCall issues caused by this one. For example https://github.com/airbytehq/oncall/issues/1047, https://github.com/airbytehq/oncall/issues/1089, and so on. Thanks!
Example schema:
Example payload:
"{\"id\":\"myKey\",\"multiScore\":{\"map\":{\"a\":10.0}}}"
Exception:
tech.allegro.schema.json2avro.converter.AvroConversionException: Failed to convert JSON to Avro: Could not evaluate union, field multiScore is expected to be one of these: NULL, MAP. If this is a complex type, check if offending field: multiScore adheres to schema.
AFAICT, this is syntactically valid JSON for a
union{null, map}
. I've tried withavro4s
too and it decodes things without issues.Version: 0.2.10