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(/^[^",]+$/)
.invalid(Joi.ref('name'))
.allow(null),
network: Joi.string().allow(null),
owner: Joi.string().allow(null),
network: Joi.string()
.regex(/^[^",]+$/)
.allow(null),
owners: Joi.array().items(Joi.string().regex(/^[^",]+$/)),
country: Joi.string()
.regex(/^[A-Z]{2}$/)
.required(),