Add width to screen validation

This commit is contained in:
Andrew Kingston 2022-05-11 08:47:05 +01:00
parent 91c4f85f81
commit e5f48fedd1
1 changed files with 1 additions and 0 deletions

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(""),