To define optional values, Avro has the "union with the null type" construction.
In IDL, this is a rather verbose construct:
Wish: add Kotlin style optional types like this:
The resulting schema should be identical; it's only a syntax change.
Note: it would be nice (but not required) if the syntax would also work if the default value is not null: