mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-11 21:08:36 +03:00
19 lines
498 B
JavaScript
19 lines
498 B
JavaScript
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(''),
|
|
description: Joi.string().allow(''),
|
|
parent: Joi.string().allow(''),
|
|
author: Joi.string().allow(''),
|
|
date: Joi.string().allow(''),
|
|
notes: Joi.string().allow('')
|
|
})
|
|
|
|
export default sourceSchema
|