cmd: Strict unmarshal for validate (#5383)

This commit is contained in:
Francis Lavoie
2023-02-22 13:39:40 -05:00
committed by GitHub
parent 8bc05e598d
commit 79de6df93d
4 changed files with 6 additions and 6 deletions

View File

@ -314,7 +314,7 @@ func unsyncedDecodeAndRun(cfgJSON []byte, allowPersist bool) error {
strippedCfgJSON := RemoveMetaFields(cfgJSON)
var newCfg *Config
err := strictUnmarshalJSON(strippedCfgJSON, &newCfg)
err := StrictUnmarshalJSON(strippedCfgJSON, &newCfg)
if err != nil {
return err
}