allow empty string for json validation in server side

This commit is contained in:
dongfang committed 2025-02-13 00:56:16 +00:00
1 parent 1d13a498b6
commit 105b471cc6
1 file changed
+4 -4
+4 -4
View File
@@ -194,8 +194,8 @@ const createMonitorBodyValidation = joi.object({
}),
notifications: joi.array().items(joi.object()),
secret: joi.string(),
jsonPath: joi.string(),
expectedValue: joi.string(),
jsonPath: joi.string().allow(""),
expectedValue: joi.string().allow(""),
matchMethod: joi.string(),
});
@@ -205,8 +205,8 @@ const editMonitorBodyValidation = joi.object({
interval: joi.number(),
notifications: joi.array().items(joi.object()),
secret: joi.string(),
jsonPath: joi.string(),
expectedValue: joi.string(),
jsonPath: joi.string().allow(""),
expectedValue: joi.string().allow(""),
matchMethod: joi.string(),
});