Updated the channelValidation.ts
This commit is contained in:
parent
0bba59383b
commit
5e4c7e0168
@ -2,12 +2,13 @@ import Joi from 'joi';
|
|||||||
|
|
||||||
export const patchChannel = Joi.object({
|
export const patchChannel = Joi.object({
|
||||||
langCode: Joi.string()
|
langCode: Joi.string()
|
||||||
|
.allow("en", "de")
|
||||||
.min(2)
|
.min(2)
|
||||||
.max(2),
|
.max(2),
|
||||||
designId: Joi.number()
|
designId: Joi.number()
|
||||||
.min(0)
|
.min(0)
|
||||||
.max(100),
|
.max(6),
|
||||||
topicId: Joi.number()
|
topicId: Joi.number()
|
||||||
.min(0)
|
.min(0)
|
||||||
.max(100)
|
.max(5)
|
||||||
});
|
});
|
Loading…
x
Reference in New Issue
Block a user