Updating role validator.

This commit is contained in:
mike12345567 2024-09-27 17:05:03 +01:00
parent 61d611f685
commit d6d4da221d
1 changed files with 4 additions and 1 deletions

View File

@ -226,7 +226,10 @@ export function roleValidator() {
)
)
.optional(),
inherits: OPTIONAL_STRING,
inherits: Joi.alternatives().try(
OPTIONAL_STRING,
Joi.array().items(OPTIONAL_STRING)
),
}).unknown(true)
)
}