add missing yup validations.

This commit is contained in:
Brian Cao 2024-03-02 21:09:20 -08:00
parent fa2cc5dbbd
commit 410f531441
2 changed files with 6 additions and 0 deletions

View file

@ -27,6 +27,9 @@ const schema = {
password: yup.string(),
role: yup.string().matches(/admin|user|view-only/i),
}),
DELETE: yup.object().shape({
userId: yup.string().uuid().required(),
}),
};
export default async (