mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
18 lines
542 B
JavaScript
18 lines
542 B
JavaScript
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;
|