Skip to content

Commit

Permalink
[fix] SignUpCustomerRequest
Browse files Browse the repository at this point in the history
- email 필드에 @notblank 추가
- 이메일이 "" 이어도 통과되는 문제 수정
  • Loading branch information
kimhyun5u committed Aug 11, 2024
1 parent 8dcc908 commit f0aa992
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

import camp.woowak.lab.web.validation.annotation.Phone;
import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;

public record SignUpCustomerRequest(
@Length(min = 1, max = 50)
String name,
@NotBlank
@Email
String email,
@Length(min = 8, max = 20)
Expand Down

0 comments on commit f0aa992

Please sign in to comment.