Skip to content

Commit

Permalink
feat: [RoomSettings] validation message 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
yeonise committed Mar 20, 2024
1 parent 888a000 commit a8b230d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/site/youtogether/room/dto/RoomSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
@Getter
public class RoomSettings {

@NotBlank
@Size(min = 1, max = 30)
@NotBlank(message = "공백이 아닌 문자를 1개 이상 입력해 주세요")
@Size(min = 1, max = 30, message = "제목은 {min}자 이상 {max}자 이하로 입력해 주세요")
private String title;

@Range(min = 2, max = 10)
@Range(min = 2, max = 10, message = "정원은 {min}명 이상 {max}명 이하로 입력해 주세요")
private int capacity;

@Pattern(regexp = "^[0-9a-zA-Z]{5,10}$")
@Pattern(regexp = "^[0-9a-zA-Z]{5,10}$", message = "비밀번호는 5자 이상 10자 이하의 영문 또는 숫자로 입력해 주세요")
private String password;

@Builder
Expand Down

0 comments on commit a8b230d

Please sign in to comment.