refactor MapNarratives in prep

This commit is contained in:
Lachlan Kermode
2019-01-04 15:50:47 +00:00
parent f32f96cae3
commit bca43fab2b
3 changed files with 55 additions and 35 deletions

View File

@@ -12,11 +12,13 @@ const eventSchema = Joi.object().keys({
type: Joi.string().allow(''),
category: Joi.string().required(),
narratives: Joi.array(),
narrative___movements: Joi.array(),
sources: Joi.array(),
tags: Joi.string().allow(''),
comments: Joi.string().allow(''),
timestamp: Joi.string().required(),
// nested
narrative___stepStyles: Joi.array(),
});
export default eventSchema;