-
Notifications
You must be signed in to change notification settings - Fork 6
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
Serialization does not work with serde_with::skip_serializing_none
#41
Comments
It would be great if |
Thanks for the report! I was able to reproduce this locally. The However, I am also considering removing validation of the |
Thanks for taking a look!
In my case, since the JSON is already validated, the struson validation is not required. But maybe you are aware of use-cases where it might be required. Either way, it is fine if you remove the validation for my use-case. |
This should be fixed in version 0.4.1, please let me know if you encounter any other issues. And thanks for considering to use Struson! |
Works perfectly now, thanks! |
This was the reason #40 happened for me. Removing
#[skip_serializing_none]
from my struct gets everything working again.Ref: https://docs.rs/serde_with/3.1.0/serde_with/attr.skip_serializing_none.html
The text was updated successfully, but these errors were encountered: