Closed DenisKnezBeforeNine closed 5 months ago
Hi @DenisKnezBeforeNine, could you investigate if the fetched json schema and the kafka message are correct? Might just be requiring you to cast into a string as well.
Closing this issue due to inactivity.
I'm using JSON for data transfer over kafka. It works great but then I wanted to add schema registry to validate the JSON. This is where I'm hoping someone could help me resolve my issue.
I see there is an AVRO example and Protobuf example and so I've looked at the AVRO example and tried that with JSON but just replace codec with JsonSchema. And I'm not able to get it to work I get the error: jsonschema: invalid jsonType: []uint8
This is the registered schema (I've checked with schema.SchemaType() and schema.Schema())
This is what I send and what I get on the consumer side
And I've checked that with
This is the code that is checking the json schema (I'm using the "github.com/segmentio/kafka-go" library for kafka)
Please note this is not a copy paste of my code so if there is a syntax error it's just here not in the actual code. If you have any idea what could be wrong or if I'm using the library wrong some info/example would be great