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

@ -326,7 +326,7 @@ func (ctx Context) LoadModuleByID(id string, rawMsg json.RawMessage) (any, error
// fill in its config only if there is a config to fill in
if len(rawMsg) > 0 {
err := strictUnmarshalJSON(rawMsg, &val)
err := StrictUnmarshalJSON(rawMsg, &val)
if err != nil {
return nil, fmt.Errorf("decoding module config: %s: %v", modInfo, err)
}