diff --git a/src/lib/schema/role-schema.ts b/src/lib/schema/role-schema.ts index 8959c0302b..67fc1d5ee7 100644 --- a/src/lib/schema/role-schema.ts +++ b/src/lib/schema/role-schema.ts @@ -4,7 +4,7 @@ export const permissionRoleSchema = joi .object() .keys({ id: joi.number().required(), - enivronment: joi.string().allow(null).optional(), + environment: joi.string().optional().allow('').allow(null).default(''), }) .options({ stripUnknown: true, allowUnknown: false, abortEarly: false });