diff --git a/app/Validators/CreateEmployeeValidator.ts b/app/Validators/CreateEmployeeValidator.ts index 1065980..46a0919 100644 --- a/app/Validators/CreateEmployeeValidator.ts +++ b/app/Validators/CreateEmployeeValidator.ts @@ -70,7 +70,7 @@ export default class CreateEmployeeValidator { ] ), - role: schema.string( + role: schema.string.optional( { trim: true }