Created the channelValidation.ts

This commit is contained in:
Mathias Wagner 2023-11-11 18:56:08 +01:00
parent 848ee68462
commit 3d4dcdd7c8
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -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)
});