chore: removes unknown key on date field schema

This commit is contained in:
James
2020-12-28 17:40:42 -05:00
parent 3248740f04
commit 3ce6a45121

View File

@@ -225,7 +225,10 @@ export const date = baseField.keys({
type: joi.string().valid('date').required(),
name: joi.string().required(),
defaultValue: joi.string(),
}).unknown(true); // remove when we better specify options allowed to pass to React Datepicker
admin: baseAdminFields.keys({
date: joi.object({}).unknown(true),
}),
});
const fieldSchema = joi.alternatives()
.try(