Skip to content

Commit

Permalink
[feat] SignUpCustomerRequest annotation param 수정
Browse files Browse the repository at this point in the history
- Validation 실패 시 메시지 명시
  • Loading branch information
kimhyun5u committed Aug 13, 2024
1 parent 98d77d1 commit 7a44fac
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
import jakarta.validation.constraints.NotBlank;

public record SignUpCustomerRequest(
@Length(min = 1, max = 50)
@Length(min = 1, max = 50, message = "이름은 1자 이상 50자 이하여야 합니다.")
String name,
@NotBlank
@Email
@Email(message = "이메일 형식이 올바르지 않습니다.")
String email,
@Length(min = 8, max = 20)
@Length(min = 8, max = 20, message = "비밀번호는 8자 이상 20자 이하여야 합니다.")
String password,
@Phone
@Phone(message = "전화번호 형식이 올바르지 않습니다.")
String phone
) {
}

0 comments on commit 7a44fac

Please sign in to comment.