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 (

View File

@ -28,6 +28,9 @@ const schema = {
domain: yup.string(),
shareId: yup.string().matches(SHARE_ID_REGEX, { excludeEmptyString: true }).nullable(),
}),
DELETE: yup.object().shape({
websiteId: yup.string().uuid().required(),
}),
};
export default async (