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
When you have a struct nested with json:",inline" that has a string field, attempting to unmarshal an unquoted number into that string field will fail with cannot unmarshal number into Go struct field [...] of type string. This is a breakage with the YAML spec.
When you have a struct nested with
json:",inline"
that has a string field, attempting to unmarshal an unquoted number into that string field will fail withcannot unmarshal number into Go struct field [...] of type string
. This is a breakage with the YAML spec.The following minimal example illustrates the problem: https://go.dev/play/p/enZcSLWe9jo
As you can see, unmarshaling Foo succeeds, but Bar fails with:
Changing the spec to quote the fooStr field makes unmarshaling succeed for both: https://go.dev/play/p/_B5QaRpxiPz
The text was updated successfully, but these errors were encountered: