-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v3: yaml.Unmarshaler.UnmarshalYAML does not get called on inlined maps #742
Comments
I wonder whether this is a more generic problem about structs without custom (un)marshaller not calling custome (un)marshaller on the struct members:
Expected: "inner: foo" Got: "inner: {}" |
After a bit of debugging: In my case the problem can be fixed by making
The problem is caused by Line 125 in 7649d45
I wonder whether a special case can be added, that makes pointer to the structure and tries to convert that to |
Tentative PR: #743 |
Having the receiver of UnmarshalYAML be a pointer receiver does not seem to change the fact that "this does not get called" does not get printed.
The text was updated successfully, but these errors were encountered: