1
0
Fork 0
mirror of synced 2024-06-29 11:31:06 +12:00

Add width to screen validation

This commit is contained in:
Andrew Kingston 2022-05-11 08:47:05 +01:00
parent 91c4f85f81
commit e5f48fedd1

View file

@ -161,6 +161,7 @@ exports.screenValidator = () => {
return joiValidator.body(Joi.object({ return joiValidator.body(Joi.object({
name: Joi.string().required(), name: Joi.string().required(),
showNavigation: OPTIONAL_BOOLEAN, showNavigation: OPTIONAL_BOOLEAN,
width: OPTIONAL_STRING,
routing: Joi.object({ routing: Joi.object({
route: Joi.string().required(), route: Joi.string().required(),
roleId: Joi.string().required().allow(""), roleId: Joi.string().required().allow(""),