mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
add missing yup validations.
This commit is contained in:
parent
fa2cc5dbbd
commit
410f531441
2 changed files with 6 additions and 0 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue