Fix validation schema for the page speed check.
This commit is contained in:
1 parent
42b6ec661a
commit
bed92c4915
1 file changed
+1
-5
@@ -221,11 +221,7 @@ const createPageSpeedCheckParamValidation = joi.object({
|
|||||||
|
|
||||||
//Validation schema for the monitorId body
|
//Validation schema for the monitorId body
|
||||||
const createPageSpeedCheckBodyValidation = joi.object({
|
const createPageSpeedCheckBodyValidation = joi.object({
|
||||||
monitorId: joi.string().required(),
|
url: joi.string().required(),
|
||||||
accessibility: joi.number().required().min(0).max(100),
|
|
||||||
bestPractices: joi.number().required().min(0).max(100),
|
|
||||||
seo: joi.number().required().min(0).max(100),
|
|
||||||
performance: joi.number().required().min(0).max(100),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const deletePageSpeedCheckParamValidation = joi.object({
|
const deletePageSpeedCheckParamValidation = joi.object({
|
||||||
|
|||||||
Reference in new issue
Block a user