Open sabbyanandan opened 5 years ago
I believe this already happens. I'am using Confluent's Schema Registry and normally when registering an incompatible schema the server returns a response code 409 (CONFLICT).
Extract from a stack trace exemplifying that:
Caused by: org.springframework.web.client.HttpClientErrorException$Conflict: 409 Conflict: \"{\"error_code\":409,\"message\":\"Schema being registered is incompatible with an earlier schema for subject \\\"test-subject\\\"\"}
@PedroAlvarado commented on Fri Mar 03 2017
As a user of the SCS schema registry and as part of the schema registration and validation process, I need to be able to know if a schema being registered is compatible or not with pre-existing ones to make sure we are properly evolving schemas.
https://github.com/spring-cloud/spring-cloud-stream/blob/master/spring-cloud-stream-schema-server/src/main/java/org/springframework/cloud/stream/schema/server/support/AvroSchemaValidator.java
@bakabo commented on Fri Mar 03 2017
+1