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
Added a testcase and the code fix for the same here: #142
Description
When using copier for a struct with a nil byte slice as a field to a target struct which contains a similar nil byte slice field, the target slice field is being set with an empty slice instead of nil.
This cause issues, when the resulting target slice is converted to json using json.Marsha() method. Added a testcase for the same.
The text was updated successfully, but these errors were encountered:
Reproducible Example
Added a testcase and the code fix for the same here: #142
Description
When using copier for a struct with a nil byte slice as a field to a target struct which contains a similar nil byte slice field, the target slice field is being set with an empty slice instead of nil.
This cause issues, when the resulting target slice is converted to json using json.Marsha() method. Added a testcase for the same.
The text was updated successfully, but these errors were encountered: