mirror of
https://github.com/usebruno/bruno.git
synced 2026-07-08 22:45:25 +00:00
feat: yup schema should not allow unknown keys
This commit is contained in:
@@ -8,7 +8,7 @@ const workspaceSchema = Yup.object({
|
||||
.max(50, 'name must be 50 characters or less')
|
||||
.required('name is required'),
|
||||
collectionUids: Yup.array().of(uidSchema)
|
||||
});
|
||||
}).noUnknown(true).strict();
|
||||
|
||||
module.exports = {
|
||||
workspaceSchema
|
||||
|
||||
Reference in New Issue
Block a user