Fix crash

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
dubo-dubon-duponey
2021-01-11 11:09:08 -08:00
parent 8730a7e03e
commit 0097c73931

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
}