Update editMonitorBodyValidation to disallow empty notifications
This commit is contained in:
1 parent
8eef831794
commit
6ce55a5ea6
1 file changed
+1
-1
@@ -229,7 +229,7 @@ const editMonitorBodyValidation = joi.object({
|
|||||||
name: joi.string(),
|
name: joi.string(),
|
||||||
description: joi.string(),
|
description: joi.string(),
|
||||||
interval: joi.number(),
|
interval: joi.number(),
|
||||||
notifications: joi.array().items(joi.object()),
|
notifications: joi.array().items(joi.object()).min(1),
|
||||||
});
|
});
|
||||||
|
|
||||||
const pauseMonitorParamValidation = joi.object({
|
const pauseMonitorParamValidation = joi.object({
|
||||||
|
|||||||
Reference in new issue
Block a user