yup validation custom message code example
Example: yup number validation custom message
numberFiled: Yup.number()
.typeError('you must specify a number')
.min(0, 'Min value 0.')
.max(30, 'Max value 30.')