Skip to content

Commit

Permalink
Allow unknown fields in config
Browse files Browse the repository at this point in the history
  • Loading branch information
i-hate-nicknames committed Mar 18, 2021
1 parent 235825e commit e2e173a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/visor/visorconfig/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ func parseV1(cc *Common, raw []byte) (*V1, error) {
conf := MakeBaseConfig(cc)

dec := json.NewDecoder(bytes.NewReader(raw))
dec.DisallowUnknownFields()
if err := dec.Decode(&conf); err != nil {
return nil, err
}
Expand Down

0 comments on commit e2e173a

Please sign in to comment.