mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
basic source schema reading data in
This commit is contained in:
17
src/reducers/schema/sourceSchema.js
Normal file
17
src/reducers/schema/sourceSchema.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Joi from 'joi';
|
||||
|
||||
const sourceSchema = Joi.object().keys({
|
||||
id: Joi.string().required(),
|
||||
path: Joi.string().required(),
|
||||
type: Joi.string().allow(''),
|
||||
affil_1: Joi.string().allow(''),
|
||||
affil_2: Joi.string().allow(''),
|
||||
url: Joi.string().allow(''),
|
||||
title: Joi.string().allow(''),
|
||||
parent: Joi.string(),
|
||||
author: Joi.string().allow(''),
|
||||
date: Joi.string(),
|
||||
notes: Joi.string().allow('')
|
||||
});
|
||||
|
||||
export default sourceSchema;
|
||||
Reference in New Issue
Block a user