I'm using yup to create validations for my data , how can i handle enums?
this is a sample of my validations - I'm using object.shape method of the yup:
export const deleteCityValidation = yup.object().shape({
id: yup.string()
});
looking for a way to validate an input field that should only have a value from a set of enums any help is appreciated .
is it possible to use yup.arrays to validate enums ?