mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 09:05:36 +01:00
Updated validations for send payload.
This commit is contained in:
parent
41eed2c056
commit
23a45a3109
1 changed files with 3 additions and 3 deletions
|
|
@ -56,10 +56,10 @@ const schema = {
|
||||||
hostname: yup.string().matches(HOSTNAME_REGEX).max(100),
|
hostname: yup.string().matches(HOSTNAME_REGEX).max(100),
|
||||||
ip: yup.string().matches(IP_REGEX),
|
ip: yup.string().matches(IP_REGEX),
|
||||||
language: yup.string().max(35),
|
language: yup.string().max(35),
|
||||||
referrer: yup.string().max(500),
|
referrer: yup.string(),
|
||||||
screen: yup.string().max(11),
|
screen: yup.string().max(11),
|
||||||
title: yup.string().max(500),
|
title: yup.string(),
|
||||||
url: yup.string().max(500),
|
url: yup.string(),
|
||||||
website: yup.string().uuid().required(),
|
website: yup.string().uuid().required(),
|
||||||
name: yup.string().max(50),
|
name: yup.string().max(50),
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue