From ca5108f8e524844e951c09aecf23e97b8e7b7ca3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 29 Dec 2025 06:12:35 +0000 Subject: [PATCH 1/2] build(deps): bump confluent.version from 8.1.0 to 8.1.1 Bumps `confluent.version` from 8.1.0 to 8.1.1. Updates `io.confluent:kafka-json-serializer` from 8.1.0 to 8.1.1 - [Commits](https://github.com/confluentinc/schema-registry/compare/v8.1.0...v8.1.1) Updates `io.confluent:kafka-json-schema-serializer` from 8.1.0 to 8.1.1 - [Commits](https://github.com/confluentinc/schema-registry/compare/v8.1.0...v8.1.1) Updates `io.confluent:kafka-protobuf-serializer` from 8.1.0 to 8.1.1 - [Commits](https://github.com/confluentinc/schema-registry/compare/v8.1.0...v8.1.1) --- updated-dependencies: - dependency-name: io.confluent:kafka-json-serializer dependency-version: 8.1.1 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.confluent:kafka-json-schema-serializer dependency-version: 8.1.1 dependency-type: direct:production update-type: version-update:semver-patch - dependency-name: io.confluent:kafka-protobuf-serializer dependency-version: 8.1.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- main/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/pom.xml b/main/pom.xml index 1a6df42c..eb6dfd5b 100644 --- a/main/pom.xml +++ b/main/pom.xml @@ -51,7 +51,7 @@ 4.2.7.Final 1.16.0 0.2.0 - 8.1.0 + 8.1.1 4.38.0 2.14.0 1.5.21 From 865e64e24190a866ccb2725eb758286be358f3da Mon Sep 17 00:00:00 2001 From: jwijgerd Date: Wed, 31 Dec 2025 14:39:39 +0100 Subject: [PATCH 2/2] fix: update schema compatibility checks to use STRICT comparison --- .../elasticsoftware/akcestest/schemas/JsonSchemaTests.java | 4 ++-- .../elasticsoftware/akces/schemas/KafkaSchemaRegistry.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main/runtime/src/test/java/org/elasticsoftware/akcestest/schemas/JsonSchemaTests.java b/main/runtime/src/test/java/org/elasticsoftware/akcestest/schemas/JsonSchemaTests.java index 15a45b3a..a9c9d923 100644 --- a/main/runtime/src/test/java/org/elasticsoftware/akcestest/schemas/JsonSchemaTests.java +++ b/main/runtime/src/test/java/org/elasticsoftware/akcestest/schemas/JsonSchemaTests.java @@ -88,14 +88,14 @@ public void testSchemaCompatibility() throws IOException { List differencesV2 = SchemaDiff.compare(schema1.rawSchema(), schema2.rawSchema()) .stream().filter(diff -> - !SchemaDiff.COMPATIBLE_CHANGES.contains(diff.getType()) && + !SchemaDiff.COMPATIBLE_CHANGES_STRICT.contains(diff.getType()) && !Difference.Type.REQUIRED_PROPERTY_ADDED_TO_UNOPEN_CONTENT_MODEL.equals(diff.getType())).toList(); assertEquals(0, differencesV2.size()); List differencesV3 = SchemaDiff.compare(schema2.rawSchema(), schema3.rawSchema()) .stream().filter(diff -> - !SchemaDiff.COMPATIBLE_CHANGES.contains(diff.getType()) && + !SchemaDiff.COMPATIBLE_CHANGES_STRICT.contains(diff.getType()) && !Difference.Type.REQUIRED_PROPERTY_ADDED_TO_UNOPEN_CONTENT_MODEL.equals(diff.getType())).toList(); assertEquals(0, differencesV3.size()); diff --git a/main/shared/src/main/java/org/elasticsoftware/akces/schemas/KafkaSchemaRegistry.java b/main/shared/src/main/java/org/elasticsoftware/akces/schemas/KafkaSchemaRegistry.java index 3da27658..b1c92f5d 100644 --- a/main/shared/src/main/java/org/elasticsoftware/akces/schemas/KafkaSchemaRegistry.java +++ b/main/shared/src/main/java/org/elasticsoftware/akces/schemas/KafkaSchemaRegistry.java @@ -229,7 +229,7 @@ private void validateBackwardCompatibility(String schemaName, SchemaType sche JsonSchema localSchema, JsonSchema previousSchema) { List differences = SchemaDiff.compare(previousSchema.rawSchema(), localSchema.rawSchema()) .stream().filter(diff -> - !SchemaDiff.COMPATIBLE_CHANGES.contains(diff.getType()) && + !SchemaDiff.COMPATIBLE_CHANGES_STRICT.contains(diff.getType()) && !Difference.Type.REQUIRED_PROPERTY_ADDED_TO_UNOPEN_CONTENT_MODEL.equals(diff.getType())) .toList();