FasterXML / jackson-dataformats-binary

Uber-project for standard Jackson binary format backends: avro, cbor, ion, protobuf, smile
Apache License 2.0
310 stars 133 forks source link

[Avro] write enums as string #496

Closed MichalFoksa closed 3 months ago

MichalFoksa commented 4 months ago

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

Fixes #494

cowtowncoder commented 4 months ago

Thank you @MichalFoksa ! PR very welcome.

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

cowtowncoder commented 3 months ago

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

Thank you once again for contributing this!

MichalFoksa commented 3 months ago

@cowtowncoder You are welcome!