-
Notifications
You must be signed in to change notification settings - Fork 236
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
xml serde read translates optional attributes with value "" to None #671
Comments
If you want I can have a look at a PR this evening, however I see you self-assigned this? |
I'd looked at this. The current behavior was selected to match |
Json The tricky part is that for json both |
Great, thanks @Mingun |
If you want to be able to make a difference between attribute missing and attribute empty
""
should serialize toSome("")
but those attributes deserialize toNone
.(useful for roundtrips where the output should be equal to input with small change applied)
fails with
I found similar issues that are marked as fixed: #252 and #527
The text was updated successfully, but these errors were encountered: