Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for enums avro schema doc #290

Merged

Conversation

runerys
Copy link
Contributor

@runerys runerys commented Dec 12, 2023

What

The Avro schema spec supports doc on enums: https://avro.apache.org/docs/1.11.1/specification/#enums

This PR uses the System.ComponentModel.DescriptionAttribute for populating the enum doc node in Avro schemas.

Why

As discussed here #131 .
The PR #219 implements this for record schemas.

This implements the same strategy for enums.

Note
We had a list of local customizations (documentation, null handling, enum default values, DateOnly, TimeOnly, NodaTime), and most of these have been fixed in the later releases. Brilliant! This PR is a contribution to get rid of one more :)

Use the Description attribute for populating enums doc node i avro schema
Copy link
Member

@dstelljes dstelljes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution! This will go out with the next patch release

@dstelljes dstelljes merged commit 83e8f51 into ch-robinson:main Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants