Skip to content

[Avro] write enums as string #496

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

Merged
merged 7 commits into from
Jun 7, 2024
Merged

[Avro] write enums as string #496

merged 7 commits into from
Jun 7, 2024

Conversation

MichalFoksa
Copy link
Contributor

@MichalFoksa MichalFoksa commented May 19, 2024

New switch added enableWriteEnumAsString() to enable Java enum to Avro string mapping at schema generation.

Fixes #494

@MichalFoksa MichalFoksa changed the title write enums as string [Avro] #494 write enums as string May 19, 2024
@MichalFoksa MichalFoksa changed the title [Avro] #494 write enums as string [Avro] write enums as string May 19, 2024
@cowtowncoder
Copy link
Member

Thank you @MichalFoksa ! PR very welcome.

I hope to check this out soon -- possibly not today but in next couple of days.

@cowtowncoder cowtowncoder marked this pull request as ready for review June 7, 2024 02:06
@cowtowncoder
Copy link
Member

@MichalFoksa I think this is ready so will merge; made some minor cosmetic changes but nothing major.

Thank you once again for contributing this!

@cowtowncoder cowtowncoder merged commit 28fa3cf into FasterXML:2.18 Jun 7, 2024
4 checks passed
@MichalFoksa
Copy link
Contributor Author

@cowtowncoder You are welcome!

@MichalFoksa MichalFoksa deleted the feature/2.18/494-write_enums_as_string branch June 9, 2024 10:42
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.

Avro Schema generation: allow mapping Java Enum properties to Avro String values
2 participants