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


##########
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:
   @junrao If Y is nullable, then declare that field as `new 
NullableSchema(X)`; 
   if Z is non-nullable, then reference X directly. 
   X, by default, should be declared as `new Schema()`. WDYT?



-- 
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