-
Notifications
You must be signed in to change notification settings - Fork 507
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: exposeDefaultValues does not work #1609
Comments
Hey @js-d-coder , |
I'm seeing the same issue where |
It seems that, when used together with |
The same error is making test cases fail on #1505 (comment). These should pass with the fix. cc: @ahochsteger |
Do we have any updates on this issue ? |
Description
Please consider this code:
As you can notice IMDB class has a property
rating
with default value. Sometimes I want the instance object to not have default value if the property is missing and sometimes I do.To achieve this using
exposeDefaultValues: false
option if I don't want default value for the missing property.exposeDefaultValues: false
seems to not be working in above code snippet.Expected behavior
Default value should not be set to
rating
property i.e.rating
property should not have value of0
and should not be present inmovie1
object.Actual behavior
'rating
property has default value set in
movie1` object.The text was updated successfully, but these errors were encountered: