Skip to content

Commit 4a792b9

Browse files
committed
Replacing empty doc string with null. This way doc field does not get created in Avro schema.
Doc field is not mandatory and having it empty doe snot help either.
1 parent ad37021 commit 4a792b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

avro/src/main/java/com/fasterxml/jackson/dataformat/avro/schema/AvroSchemaHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public static Schema createEnumSchema(BeanDescription bean, List<String> values)
286286
* @since 2.11
287287
*/
288288
public static Schema createUUIDSchema() {
289-
return Schema.createFixed("UUID", "", "java.util", 16);
289+
return Schema.createFixed("UUID", null, "java.util", 16);
290290
}
291291

292292
/**

0 commit comments

Comments
 (0)