Null should denormalize to null
andrewdodd opened this issue · 2 comments
andrewdodd commented
First, thanks for the library. I was getting pretty tired of denormalising!
I found that when denormalising attributes that are null
they are returned as empty objects, {}
, instead of null
.
I can get around this, I just thought I would see if it is deliberate or accidental.
gpbl commented
I've published this lib since I'm using it and I was hoping for some help and debug 😅 so many thanks for reporting this!
I've never met such case, and I guess you are right: null
attributes should stay null
.
andrewdodd commented
I checked out the code have run the tests you wrote. It appears to denormalise null
correctly. I'm guessing the bug must be on my end somewhere.
I'm going to close this for now. Thanks.