Remove required.
This commit is contained in:
1 parent
bb77c2ead6
commit
88d67c7b0b
1 file changed
+1
-4
@@ -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),
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user