modify event schema to allow empty location

This commit is contained in:
Lachie Kermode
2018-11-30 12:17:13 +00:00
parent 1d123c11c3
commit e9bd136082

View File

@@ -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(''),