The auto.register.schemas option does not work with JSON schema registry and kafka

Bill Kalantzis 0 Reputation points
2023-08-18T20:38:46.9366667+00:00

In the code sample provided for the event hub schema registry for JSON and kafka producer, the auto.register.schemas property is not working.

I have created a new JSON schema group with no schemas, set the property auto.register.schemas=false, then run the sample application https://github.com/Azure/azure-schema-registry-for-kafka/blob/master/java/json/samples/producer/src/main/java/com/azure/schemaregistry/samples/producer/KafkaJsonSpecificRecord.java#L34.

I expect some type of error since my schema group contains no schemas when the sample program runs. Instead the schema gets created. This happens regardless if auto.register.schemas is false. I have verified this works for the avro implementation and am wondering if this is a bug in the JSON implementation

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
706 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.