mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Clean master commit
This commit is contained in:
20
src/reducers/schema/eventSchema.js
Normal file
20
src/reducers/schema/eventSchema.js
Normal file
@@ -0,0 +1,20 @@
|
||||
import Joi from 'joi';
|
||||
|
||||
const eventSchema = Joi.object().keys({
|
||||
id: Joi.string().required(),
|
||||
description: Joi.string().allow('').required(),
|
||||
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(),
|
||||
type: Joi.string().allow(''),
|
||||
category: Joi.string().required(),
|
||||
source: Joi.string().allow(''),
|
||||
tags: Joi.string().allow(''),
|
||||
comments: Joi.string().allow(''),
|
||||
timestamp: Joi.string().required(),
|
||||
});
|
||||
|
||||
export default eventSchema;
|
||||
Reference in New Issue
Block a user