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

Fix Option<Nullable<T>> deserialization. #80

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

timothee-haudebourg
Copy link
Owner

Serde is unable to deserialize Option<Nullable<T>> correctly without a custom deserializer. It can causes issues like { "@vocab": null } being deserialized as { }.

In this PR I'm adding a Nullable::optional deserializer for Option<Nullable<T>> and use it everywhere it is necessary.

@timothee-haudebourg timothee-haudebourg merged commit 8a0d9e5 into main Jul 9, 2024
2 checks passed
@timothee-haudebourg timothee-haudebourg deleted the fix-option-nullable-deserialization branch July 9, 2024 16:02
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.

None yet

1 participant