Remove required.

This commit is contained in:
Brian Cao 2023-08-26 16:27:29 -07:00
parent bb77c2ead6
commit 88d67c7b0b

View File

@ -25,10 +25,7 @@ const schema = {
username: yup.string().max(255).required(),
password: yup.string().required(),
id: yup.string().uuid(),
role: yup
.string()
.matches(/admin|user|view-only/i)
.required(),
role: yup.string().matches(/admin|user|view-only/i),
}),
};