You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
org.opentest4j.AssertionFailedError: Unexpected exception thrown: tech.allegro.schema.json2avro.converter.AvroConversionException: Failed to convert JSON to Avro: Could not evaluate union, field slotid is expected to be one of these: NULL, STRING. If this is a complex type, check if offending field: slot.slotid adheres to schema.
I have a problem to validate JSON from Kafka:
We receive data as an example as follows:
The validation shows this error:
org.opentest4j.AssertionFailedError: Unexpected exception thrown: tech.allegro.schema.json2avro.converter.AvroConversionException: Failed to convert JSON to Avro: Could not evaluate union, field slotid is expected to be one of these: NULL, STRING. If this is a complex type, check if offending field: slot.slotid adheres to schema.
But it works for an input as follows :
In the schema, we have:
The same thing for other types like INT, MAP, etc.:
The text was updated successfully, but these errors were encountered: