I'm wondering if someone could advise me on how to get yup to validate strings of any length (including length 0).
Just using
yup.string().required().validateSync("")
will throw an error on an empty string...
In the past this was the recommended way to do it:
string().required().min(0)
but that way no longer works.. (https://github.com/jquense/yup/issues/136#issuecomment-339235070)
Can someone advise me on how to get yup to require that a string is sent, but to not error on length 0 strings?
Thanks!