From e9bd136082f93de1d53d67e421c610a1b482ca3b Mon Sep 17 00:00:00 2001 From: Lachie Kermode Date: Fri, 30 Nov 2018 12:17:13 +0000 Subject: [PATCH] modify event schema to allow empty location --- src/reducers/schema/eventSchema.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/reducers/schema/eventSchema.js b/src/reducers/schema/eventSchema.js index 3ecc635..5528510 100644 --- a/src/reducers/schema/eventSchema.js +++ b/src/reducers/schema/eventSchema.js @@ -6,9 +6,9 @@ const eventSchema = Joi.object().keys({ date: Joi.string().required(), time: Joi.string().required(), time_precision: Joi.string().allow(''), - location: Joi.string().allow('').required(), - latitude: Joi.string().required(), - longitude: Joi.string().required(), + location: Joi.string().allow(''), + latitude: Joi.string().allow(''), + longitude: Joi.string().allow(''), type: Joi.string().allow(''), category: Joi.string().required(), narrative: Joi.string().allow(''),