Skip to content

Commit

Permalink
Changing Unmarshal to UnmarshalStrict to error on unknown YAML fields…
Browse files Browse the repository at this point in the history
… in spec
  • Loading branch information
hatemosphere committed Nov 26, 2018
1 parent f0e8e4e commit 42ede1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func fromYAML(file string, s *state) (bool, string) {
return false, err.Error()
}
yamlFile := []byte(substituteEnv(string(rawYamlFile)))
if err = yaml.Unmarshal(yamlFile, s); err != nil {
if err = yaml.UnmarshalStrict(yamlFile, s); err != nil {
return false, err.Error()
}

Expand Down

0 comments on commit 42ede1c

Please sign in to comment.