Add validation for certificate request
This commit is contained in:
1 parent
cece932e45
commit
8bac81fb09
2 files changed
+9
-5
No files matched your search
@@ -178,10 +178,10 @@ const getMonitorsByTeamIdQueryValidation = joi.object({
|
||||
),
|
||||
});
|
||||
|
||||
getMonitorStatsByIdParamValidation = joi.object({
|
||||
const getMonitorStatsByIdParamValidation = joi.object({
|
||||
monitorId: joi.string().required(),
|
||||
});
|
||||
getMonitorStatsByIdQueryValidation = joi.object({
|
||||
const getMonitorStatsByIdQueryValidation = joi.object({
|
||||
status: joi.string(),
|
||||
limit: joi.number(),
|
||||
sortOrder: joi.string().valid("asc", "desc"),
|
||||
@@ -190,6 +190,10 @@ getMonitorStatsByIdQueryValidation = joi.object({
|
||||
normalize: joi.boolean(),
|
||||
});
|
||||
|
||||
const getCertificateParamValidation = joi.object({
|
||||
monitorId: joi.string().required(),
|
||||
});
|
||||
|
||||
const createMonitorBodyValidation = joi.object({
|
||||
_id: joi.string(),
|
||||
userId: joi.string().required(),
|
||||
@@ -372,6 +376,7 @@ module.exports = {
|
||||
getMonitorsByTeamIdQueryValidation,
|
||||
getMonitorStatsByIdParamValidation,
|
||||
getMonitorStatsByIdQueryValidation,
|
||||
getCertificateParamValidation,
|
||||
editMonitorBodyValidation,
|
||||
pauseMonitorParamValidation,
|
||||
editUserParamValidation,
|
||||
|
||||
Reference in new issue
Block a user