Created the channelValidation.ts
This commit is contained in:
parent
848ee68462
commit
3d4dcdd7c8
13
api/validations/channelValidation.ts
Normal file
13
api/validations/channelValidation.ts
Normal 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)
|
||||
});
|
Loading…
x
Reference in New Issue
Block a user