Merge pull request #4 from dubo-dubon-duponey/fix-crash-1

Fix crash
This commit is contained in:
Andrea Luzzardi
2021-01-11 11:28:21 -08:00
committed by GitHub

View File

@@ -29,7 +29,7 @@ func (s Spec) Validate(v *Value, defpath string) (err error) {
if err := def.Validate(); err != nil {
return err
}
merged := def.Unwrap().Fill(v)
merged := def.Unwrap().Fill(v.Value)
if err := merged.Err(); err != nil {
return err
}