From 75ec33643dff5e26129b359bc7a0c204ff0b1659 Mon Sep 17 00:00:00 2001 From: Alexander Lee Date: Mon, 23 Aug 2021 12:29:45 +0800 Subject: [PATCH] Fix: loosen request schema --- validators/RequestSchema.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validators/RequestSchema.js b/validators/RequestSchema.js index 4e68c8a99..ea603f5aa 100644 --- a/validators/RequestSchema.js +++ b/validators/RequestSchema.js @@ -4,7 +4,7 @@ const FrontMatterSchema = Joi.object({ title: Joi.string().required(), permalink: Joi.string().required(), third_nav_title: Joi.string(), -}) +}).unknown(true) const ContentSchema = Joi.object({ frontMatter: FrontMatterSchema.required(),