I would like to validate that a field is either a string or an array of strings
Here is a minimal failing example which happens to use formik but actually I am doing server side validation using yup.
{
email: yup
.mixed()
.oneOf([yup.array().of(yup.string()), yup.string()])
.nullable()
}