mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
WIP: gritty rewrite of timestamp handling
This commit is contained in:
18
src/reducers/validate/sourceSchema.js
Normal file
18
src/reducers/validate/sourceSchema.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import Joi from 'joi'
|
||||
|
||||
const sourceSchema = Joi.object().keys({
|
||||
id: Joi.string().required(),
|
||||
title: Joi.string().allow(''),
|
||||
thumbnail: Joi.string().allow(''),
|
||||
paths: Joi.array().required(),
|
||||
type: Joi.string().allow(''),
|
||||
affil_s: Joi.array().allow(''),
|
||||
url: Joi.string().allow(''),
|
||||
desc: Joi.string().allow(''),
|
||||
parent: Joi.string().allow(''),
|
||||
author: Joi.string().allow(''),
|
||||
date: Joi.string().allow(''),
|
||||
notes: Joi.string().allow('')
|
||||
})
|
||||
|
||||
export default sourceSchema
|
||||
Reference in New Issue
Block a user