Skip to content

Commit

Permalink
[Fix] Valid 관련 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
NARUBROWN committed May 17, 2024
1 parent 78e2fa8 commit 7f7beb2
Showing 1 changed file with 1 addition and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;
import javax.validation.constraints.Pattern;

@Getter
@NoArgsConstructor(access = AccessLevel.PRIVATE)
Expand All @@ -32,39 +28,30 @@ public class MemberRequestDto {
example = "https://...",
description = "프로필 이미지 URL"
)
@Null
@Pattern(regexp = "^https?://.*$", message = "profileImage의 URL 형식이 올바르지 않습니다.")
private String profileImage;

@Schema(
example = "https://...",
description = "블로그 URL"
)
@Null
@Pattern(regexp = "^https?://.*$", message = "blogLink의 URL 형식이 올바르지 않습니다.")
private String blogLink;

@Schema(
example = "test@inu.ac.kr",
description = "이메일"
)
@Email
private String email;

@Schema(
example = "https://...",
description = "Github 저장소 URL"
)
@Null
@Pattern(regexp = "^https?://.*$", message = "gitRepositoryLink의 URL 형식이 올바르지 않습니다.")
private String gitRepositoryLink;

@Schema(
example = "https://...",
description = "Behance URL"
)
@Null
@Pattern(regexp = "^https?://.*$", message = "Behance의 URL 형식이 올바르지 않습니다.")
private String behanceLink;

@Schema(
Expand All @@ -77,6 +64,7 @@ public class MemberRequestDto {
example = "000000000",
description = "학번"
)
@NotBlank(message = "학번이 비어있을 수 없습니다.")
private String studentNumber;

@Schema(
Expand Down

0 comments on commit 7f7beb2

Please sign in to comment.