junrao commented on code in PR #20614:
URL: https://github.com/apache/kafka/pull/20614#discussion_r2512368296


##########
generator/src/main/java/org/apache/kafka/message/SchemaGenerator.java:
##########
@@ -86,16 +86,16 @@ void generateSchemas(MessageSpec message) {
         // available when we generate the inline structures
         for (Iterator<StructSpec> iter = structRegistry.commonStructs(); 
iter.hasNext(); ) {
             StructSpec struct = iter.next();
-            generateSchemas(struct.name(), struct, 
message.struct().versions());
+            generateSchemas(struct.name(), struct, 
message.struct().versions(), Versions.NONE);

Review Comment:
   @chia7712 : If a common struct X is referenced by two fields Y and Z, Y 
could be nullable and Z could be non-nullable, right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to