Closed hypnoglow closed 5 years ago
Thanks for reporting, i'm working on a fix.
Try this updated code, please: https://github.com/mennanov/fieldmask-utils/commit/f2a0c0d9beac5c71904a954e3d8cc5777d50d5cb And let me know if it fixes the bug you mentioned.
Thanks
The master branch is now updated and has that fix.
Hi, thanks for the lib.
Currently, when copying structs, the behavior of preserving fields in dst not consistent. Top-level struct fields are always preserved, but nested struct fields are always zeroed (if mask targets other fields).
Example test case:
In the result of this example, field "Date" is preserved in dst, but field "Author.LastName" is not.