Updated validations for websites.

This commit is contained in:
Mike Cao 2023-10-04 19:22:26 -07:00
parent 5c933d1c4a
commit 1325abe31d
3 changed files with 7 additions and 13 deletions

View file

@ -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(),
}),
};