Merge pull request #1754 from YinDongFang/feature/json-validation

Implement json validation UI
This commit is contained in:
Alexander Holliday authored and GitHub committed 2025-02-15 08:48:33 -08:00
commit 42085d706d
5 files changed
+150 -4

No files matched your search

+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(),
});