forked from apache/avro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AVRO-3257: IDL support for nullable types (apache#1411)
* AVRO-3256: IDL type reference with annotation throws error Previous versions would alter the referenced type when encountering an annotation on (for example) a field type. This change makes references read-only. * AVRO-3256: Document new behavior of annotations Documented that references to named types cannot be annotated. Also described where annotations for named types should go. Lastly, the example has been fixed to match this change, and now also contains various types of documentation. * AVRO-3257: Add syntax for unions of null with a type Added Kotlin-style syntax for optional types. `MyType?` compiles to the same result as `union { null, MyType }`. This commit includes the documentation update. * AVRO-3257: Remove unused variable from JavaCC grammar * AVRO-3257: Fluid unions for optional types The syntax for optional types now put the null type in the unions based on the default value (if any). This commit includes the documentation update. * AVRO-3257: Add comments explaining features * Fix typo in HTML Co-authored-by: Ryan Skraba <[email protected]> Co-authored-by: Ryan Skraba <[email protected]>
- Loading branch information
1 parent
1aa963c
commit 7c5d8df
Showing
4 changed files
with
101 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters