return loc/lat/long to required

This commit is contained in:
Lachie Kermode
2018-12-03 13:01:36 +00:00
parent 4f4c80b3a3
commit 1b9f5e6349

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(''),
latitude: Joi.string().allow(''),
longitude: Joi.string().allow(''),
location: Joi.string().allow('').required(),
latitude: Joi.string().allow('').required(),
longitude: Joi.string().allow('').required(),
type: Joi.string().allow(''),
category: Joi.string().required(),
narrative: Joi.string().allow(''),