Add .unknown(true) to validation schema to ignore extra fields
This commit is contained in:
1 parent
47f8494193
commit
336ffcc9e9
1 file changed
+2
-1
@@ -256,7 +256,8 @@ const settingsValidation = joi.object({
|
||||
"string.empty": "TTL is required",
|
||||
}),
|
||||
pagespeedApiKey: joi.string().allow("").optional(),
|
||||
});
|
||||
})
|
||||
.unknown(true);
|
||||
|
||||
const dayjsValidator = (value, helpers) => {
|
||||
if (!dayjs(value).isValid()) {
|
||||
|
||||
Reference in new issue
Block a user