add missing yup validations.
This commit is contained in:
1 parent
fa2cc5dbbd
commit
410f531441
2 files changed
+6
No files matched your search
@@ -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 (
|
||||
|
||||
@@ -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 (
|
||||
|
||||
Reference in new issue
Block a user