-
Notifications
You must be signed in to change notification settings - Fork 20
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
Null values are omitted when publishing events #192
Comments
Hi @TheBeastOfCaerbannog true, it might worth to add a way to configure null-propagation (?) If we just enable null-propagation (without configuration), it might break the current behavior some apps might be relying on now, where null-values are not propagated. Another option could be - split the library and extract encoding / decoding but that will require lots of changes. If you have any other ideas, please let me know. Thank you, |
Hi @gchudnov, Yeah, definitely, giving an option to configure that would be great and would be a backward-compatible change if we keep the current configuration by default. I think this logic was added to omit |
By default, Kanadi omits all
null
values from the event JSON when publishing events because of the default configuration.For example, when using a schema like
An event with data
{"test": null}
is going to be successfully published when calling Nakadi directly, but it's going to fail when publishing through Kanadi, because the fieldtest
is going to be dropped.The text was updated successfully, but these errors were encountered: