mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
Updated validations for websites.
This commit is contained in:
parent
5c933d1c4a
commit
1325abe31d
3 changed files with 7 additions and 13 deletions
|
|
@ -24,9 +24,9 @@ const schema = {
|
|||
}),
|
||||
POST: yup.object().shape({
|
||||
id: yup.string().uuid().required(),
|
||||
name: yup.string().required(),
|
||||
domain: yup.string().required(),
|
||||
shareId: yup.string().matches(SHARE_ID_REGEX, { excludeEmptyString: true }),
|
||||
name: yup.string(),
|
||||
domain: yup.string(),
|
||||
shareId: yup.string().matches(SHARE_ID_REGEX, { excludeEmptyString: true }).nullable(),
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ const schema = {
|
|||
POST: yup.object().shape({
|
||||
name: yup.string().max(100).required(),
|
||||
domain: yup.string().max(500).required(),
|
||||
shareId: yup.string().max(50),
|
||||
shareId: yup.string().max(50).nullable(),
|
||||
}),
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue