Update channels.js

This commit is contained in:
Aleksandr Statciuk 2022-02-20 07:05:31 +03:00
parent e080fa8bfd
commit 3d1e8cadc3

View file

@ -29,6 +29,11 @@ module.exports = {
), ),
categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)), categories: Joi.array().items(Joi.string().regex(/^[a-z]+$/)),
is_nsfw: Joi.boolean().strict().required(), is_nsfw: Joi.boolean().strict().required(),
website: Joi.string()
.uri({
scheme: ['http', 'https']
})
.allow(null),
logo: Joi.string() logo: Joi.string()
.uri({ .uri({
scheme: ['https'] scheme: ['https']