format notifications to return object and added to validation list

This commit is contained in:
Vishnu Sreekumaran Nair committed 2025-03-15 00:21:37 -04:00
1 parent a320967949
commit 9e773f6917
3 files changed
+32 -23

No files matched your search

+6
View File
@@ -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 {