trait TestEvent extends AvroRecord
case class EventProduct(id: Long) extends TestEvent
case class EventProduct2(id2: String) extends TestEvent
I understand this is a rather contrived example. However, I think the problem is larger that just this (is actual non compatible schemas should be let in if that is so the wish of the schema registry). Yet before I attempt at providing a potential fix, I wanted to makde sure I understood the current logic right.
on https://github.com/amient/affinity/blob/master/avro/src/main/scala/io/amient/affinity/avro/ZookeeperSchemaRegistry.scala#L97
Instead, should the
validate
method not be conditional somehow to the actual current compatibility settings of the registry itself (ie. check with https://docs.confluent.io/current/schema-registry/develop/api.html#post--compatibility-subjects-(string-%20subject)-versions-(versionId-%20version) ?Or am I missing the intention on that line
L97
?I did try to forcefully register a known incompatible schema into a schema registy in
NONE
compatibility level mode, to no avail:Relevant case classes are (for test purposes):
I understand this is a rather contrived example. However, I think the problem is larger that just this (is actual non compatible schemas should be let in if that is so the wish of the schema registry). Yet before I attempt at providing a potential fix, I wanted to makde sure I understood the current logic right.