Skip to content

Commit 78b0ade

Browse files
committed
fix: update user patch validation schema gf-562
1 parent 324e69a commit 78b0ade

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/shared/src/modules/users/libs/validation-schemas/user-patch.validation-schema.ts

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ const userPatch: z.ZodType<UserPatchRequestDto> = z
88
name: z
99
.string()
1010
.trim()
11+
.regex(UserValidationRule.NAME_PATTERN, {
12+
message: UserValidationMessage.NAME_PATTERN,
13+
})
1114
.min(UserValidationRule.NAME_MINIMUM_LENGTH, {
1215
message: UserValidationMessage.NAME_TOO_SHORT,
1316
})

0 commit comments

Comments
 (0)