allow empty string for json validation in server side
This commit is contained in:
1 parent
1d13a498b6
commit
105b471cc6
1 file changed
+4
-4
@@ -194,8 +194,8 @@ const createMonitorBodyValidation = joi.object({
|
|||||||
}),
|
}),
|
||||||
notifications: joi.array().items(joi.object()),
|
notifications: joi.array().items(joi.object()),
|
||||||
secret: joi.string(),
|
secret: joi.string(),
|
||||||
jsonPath: joi.string(),
|
jsonPath: joi.string().allow(""),
|
||||||
expectedValue: joi.string(),
|
expectedValue: joi.string().allow(""),
|
||||||
matchMethod: joi.string(),
|
matchMethod: joi.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -205,8 +205,8 @@ const editMonitorBodyValidation = joi.object({
|
|||||||
interval: joi.number(),
|
interval: joi.number(),
|
||||||
notifications: joi.array().items(joi.object()),
|
notifications: joi.array().items(joi.object()),
|
||||||
secret: joi.string(),
|
secret: joi.string(),
|
||||||
jsonPath: joi.string(),
|
jsonPath: joi.string().allow(""),
|
||||||
expectedValue: joi.string(),
|
expectedValue: joi.string().allow(""),
|
||||||
matchMethod: joi.string(),
|
matchMethod: joi.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user