mirror of
https://github.com/iptv-org/database.git
synced 2024-12-27 17:54:35 -05:00
15 lines
287 B
TypeScript
15 lines
287 B
TypeScript
import Joi from 'joi'
|
|
|
|
export default {
|
|
name: Joi.string()
|
|
.regex(/^[\sA-Z\u00C0-\u00FF().,-]+$/i)
|
|
.required(),
|
|
code: Joi.string()
|
|
.regex(/^[A-Z]{2,7}$/)
|
|
.required(),
|
|
countries: Joi.array().items(
|
|
Joi.string()
|
|
.regex(/^[A-Z]{2}$/)
|
|
.required()
|
|
)
|
|
}
|