Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-10-17 16:25:59 +03:00
parent 433fbfffdb
commit 7be7791ac7

View file

@ -12,8 +12,10 @@ module.exports = {
.regex(/^[^",]+$/) .regex(/^[^",]+$/)
.invalid(Joi.ref('name')) .invalid(Joi.ref('name'))
.allow(null), .allow(null),
network: Joi.string().allow(null), network: Joi.string()
owner: Joi.string().allow(null), .regex(/^[^",]+$/)
.allow(null),
owners: Joi.array().items(Joi.string().regex(/^[^",]+$/)),
country: Joi.string() country: Joi.string()
.regex(/^[A-Z]{2}$/) .regex(/^[A-Z]{2}$/)
.required(), .required(),