diff --git a/generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java b/generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java index 717eeda3796..d433b0b01be 100644 --- a/generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java +++ b/generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java @@ -348,5 +348,9 @@ final class SchemaGenerator { buffer.decrementIndent(); buffer.printf("};%n"); buffer.printf("%n"); + + buffer.printf("public static final short LOWEST_SUPPORTED_VERSION = %d;%n", versions.lowest()); + buffer.printf("public static final short HIGHEST_SUPPORTED_VERSION = %d;%n", versions.highest()); + buffer.printf("%n"); } }