Created the channelValidation.ts

This commit is contained in:
2023-11-11 18:56:08 +01:00
parent 848ee68462
commit 3d4dcdd7c8

@ -0,0 +1,13 @@
import Joi from 'joi';
export const patchChannel = Joi.object({
langCode: Joi.string()
.min(2)
.max(2),
designId: Joi.number()
.min(0)
.max(100),
topicId: Joi.number()
.min(0)
.max(100)
});