Closed grizio closed 3 years ago
Currently, only .nullable() and .optional() validator can default to a value. However, as a user of the lib, I suppose v.string.default(value) will default to a value too.
.nullable()
.optional()
v.string.default(value)
This commit changes the behavior of .default() by callings .nullable() first.
.default()
Currently, only
.nullable()
and.optional()
validator can default to a value. However, as a user of the lib, I supposev.string.default(value)
will default to a value too.This commit changes the behavior of
.default()
by callings.nullable()
first.