Skip to content

Commit

Permalink
disallow unknown field
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuro9715 committed Feb 23, 2021
1 parent 30155cd commit 470d665
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yaml/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

var (
decodeOptions = []goyaml.DecodeOption{yaml.DisallowDuplicateKey()}
decodeOptions = []goyaml.DecodeOption{yaml.DisallowDuplicateKey(), yaml.DisallowUnknownField()}
)

type StringList []string
Expand Down

0 comments on commit 470d665

Please sign in to comment.