You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to set nulls for missing attributes for a boolean and number attribute where the values are false and 0 respectively. The serializer converted them to nulls because of the falsy value comparison. I believe it is caused by the two lines below...anyone else experience the same thing?
jsonapi-serializer/lib/serializer-utils.js
line 201 !dest[attr]
line 295 !record[attribute]
I think the fix is likely relatively simple since we're already using Lodash if we can agree missing means undefined?
jsonapi-serializer/lib/serializer-utils.js
line 201 isUndefined(dest[attr])
line 295 isUndefined(record[attribute])
The text was updated successfully, but these errors were encountered:
I was trying to set nulls for missing attributes for a
boolean
andnumber
attribute where the values arefalse
and0
respectively. The serializer converted them to nulls because of thefalsy
value comparison. I believe it is caused by the two lines below...anyone else experience the same thing?I think the fix is likely relatively simple since we're already using Lodash if we can agree missing means undefined?
The text was updated successfully, but these errors were encountered: