mirror of
https://github.com/iptv-org/database.git
synced 2024-12-27 17:54:35 -05:00
11 lines
217 B
TypeScript
11 lines
217 B
TypeScript
import Joi from 'joi'
|
|
|
|
export default {
|
|
country: Joi.string()
|
|
.regex(/^[A-Z]{2}$/)
|
|
.required(),
|
|
name: Joi.string().required(),
|
|
code: Joi.string()
|
|
.regex(/^[A-Z]{2}-[A-Z0-9]{1,3}$/)
|
|
.required()
|
|
}
|