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
If an error is returned in a copier.TypeConverter, the copier.CopyWithOption returns nil for the error and the value is not applied to the destination.
In the Go Playground example above, the custom converter returns an error as well as the value "invalid".
I would expect copier.CopyWithOption to return the error and for dest.Val to be "invalid".
We are happy to work on the fix if this is indeed an issue.
The text was updated successfully, but these errors were encountered:
Reproducible Example
https://go.dev/play/p/lrlMEMSFKZ_N
Description
If an error is returned in a
copier.TypeConverter
, thecopier.CopyWithOption
returns nil for the error and the value is not applied to the destination.In the Go Playground example above, the custom converter returns an error as well as the value "invalid".
I would expect copier.CopyWithOption to return the error and for dest.Val to be "invalid".
We are happy to work on the fix if this is indeed an issue.
The text was updated successfully, but these errors were encountered: