Skip to content

Commit a5de55d

Browse files
committed
Improve error message on invalid input
1 parent ded4345 commit a5de55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

typed/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func validateScalar(t *schema.Scalar, v value.Value, prefix string) (errs Valida
9292
case schema.Numeric:
9393
if !v.IsFloat() && !v.IsInt() {
9494
// TODO: should the schema separate int and float?
95-
return errorf("%vexpected numeric (int or float), got %T", prefix, v)
95+
return errorf("%vexpected numeric (int or float), got %T", prefix, v.Unstructured())
9696
}
9797
case schema.String:
9898
if !v.IsString() {

0 commit comments

Comments
 (0)