Skip to content

Add an ability to create null-field-friendly schema #3862

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

Closed
sunmeplz opened this issue Oct 20, 2023 · 1 comment
Closed

Add an ability to create null-field-friendly schema #3862

sunmeplz opened this issue Oct 20, 2023 · 1 comment
Labels
type/enhancement New feature or request

Comments

@sunmeplz
Copy link
Contributor

By default, when ReflectDatumProvider is specified, avro uses ReflectData.get to generate object schema, this means that all object fields are not null, to avoid this behavour need to implement custom DatumProvider which will use ReflectData.AllowNull reflectData object, so we can serialize all fields even they are null

@sunmeplz sunmeplz added the type/enhancement New feature or request label Oct 20, 2023
@apicurio-bot
Copy link

apicurio-bot bot commented Oct 20, 2023

Thank you for reporting an issue!

Pinging @EricWittmann to respond or triage.

sunmeplz added a commit to sunmeplz/apicurio-registry that referenced this issue Oct 20, 2023
sunmeplz added a commit to sunmeplz/apicurio-registry that referenced this issue Oct 20, 2023
carlesarnal added a commit that referenced this issue Oct 26, 2023
* #3862 adds ReflectAllowNullAvroDatumProvider

* #3862 revert reformat

---------

Co-authored-by: Carles Arnal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants