yup error message value code example
Example: yup change error message
let schema = yup.object().shape({
foo: yup.number().typeError("Custom not a number message!")
});
let schema = yup.object().shape({
foo: yup.number().typeError("Custom not a number message!")
});