Re-add required.

This commit is contained in:
Brian Cao 2023-08-26 16:33:22 -07:00
parent 88d67c7b0b
commit fcd7fac2ce

View File

@ -25,7 +25,10 @@ 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),
role: yup
.string()
.matches(/admin|user|view-only/i)
.required(),
}),
};