format notifications to return object and added to validation list
This commit is contained in:
1 parent
a320967949
commit
9e773f6917
3 files changed
+32
-23
No files matched your search
@@ -349,6 +349,12 @@ const infrastructureMonitorValidation = joi.object({
|
||||
"number.base": "Frequency must be a number.",
|
||||
"any.required": "Frequency is required.",
|
||||
}),
|
||||
notifications: joi.array().items(
|
||||
joi.object({
|
||||
type: joi.string().valid("email").required(),
|
||||
address: joi.string().email({ tlds: { allow: false } }).required(),
|
||||
})
|
||||
)
|
||||
});
|
||||
|
||||
export {
|
||||
|
||||
Reference in new issue
Block a user