We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have something like this
in our code
func (t *TestJob) UnmarshalYAML(node *yaml.Node) error { type alias TestJob dataAlias := (*alias)(t) err := node.Decode(&dataAlias) if err != nil { return err } t.SetCapabilities() return nil } func Unmarshalling() { suite := TestSuite{ chartRoute: chartRoute, fromRender: fromRender, } yamlDecoder := yaml.NewDecoder(strings.NewReader(content)) yamlDecoder.KnownFields(true) if err := yamlDecoder.Decode(&suite); err != nil { return &suite, err } }
Related #602 (comment) So there is no way to throw an error in custom unmarshaller if there is an unknown field.
The text was updated successfully, but these errors were encountered:
Hi @niemeyer would you access a pull request or project is no longer maintained?
Sorry, something went wrong.
No branches or pull requests
I have something like this
in our code
Related #602 (comment)
So there is no way to throw an error in custom unmarshaller if there is an unknown field.
The text was updated successfully, but these errors were encountered: