-
Notifications
You must be signed in to change notification settings - Fork 543
[generic extras] Default value of Option is ignored #878
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
Comments
For the record, I think I would probably consider this a bug, but it's a somewhat complex one, because the default is used when decoding a member fails, but decoding an optional member that's not there doesn't fail. I'd like to see a fix for this, but I'm not sure it'll happen before 0.10.0. |
This can be avoided by defining a custom decoder. |
This is an issue for me as well. Is it possible to add an option to |
Hi, The following code returns
Right(Foo(a, None))
but, I expect
Right(Foo(a, Some(0)))
Is this a bug, or am I doing something wrong?
My dependencies.
Thanks.
The text was updated successfully, but these errors were encountered: