Skip to content

Commit 761758a

Browse files
committed
refactor: 닉네임 길이제한 2~20자.
1 parent ce89275 commit 761758a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main/java/com/example/log4u/domain/user/dto/UserProfileMakeRequestDto.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
package com.example.log4u.domain.user.dto;
22

33
import jakarta.validation.constraints.NotEmpty;
4+
import jakarta.validation.constraints.Size;
45

56
public record UserProfileMakeRequestDto(
6-
@NotEmpty String nickname,
7+
@NotEmpty
8+
@Size(min = 2, max = 20, message = "닉네임은 2자 이상 20자 이하로 입력해주세요.")
9+
String nickname,
710
String statusMessage,
811
String profileImage
912
) {

0 commit comments

Comments
 (0)