Update joi validation to reject empty Notification array on createMonitor
This commit is contained in:
1 parent
bbcdc2f2a2
commit
f58bac9ccf
1 file changed
+1
-1
@@ -222,7 +222,7 @@ const createMonitorBodyValidation = joi.object({
|
||||
url: joi.string().required(),
|
||||
isActive: joi.boolean(),
|
||||
interval: joi.number(),
|
||||
notifications: joi.array().items(joi.object()),
|
||||
notifications: joi.array().items(joi.object()).min(1),
|
||||
});
|
||||
|
||||
const editMonitorBodyValidation = joi.object({
|
||||
|
||||
Reference in new issue
Block a user