mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-01 14:09:57 -05:00
Add .unknown(true) to validation schema to ignore extra fields
This commit is contained in:
@@ -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