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
commit 642e8c5a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}