diff --git a/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java b/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java index 4194886..0c27369 100644 --- a/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/ChallengeCreateRequest.java @@ -2,8 +2,6 @@ import lombok.*; -import jakarta.validation.constraints.Size; - import java.time.LocalDate; @Getter @@ -14,9 +12,7 @@ public class ChallengeCreateRequest { private Long userId; - @Size(min=5, max=15) private String title; - @Size(max=300) private String content; private Integer targetAmount; private Integer categoryId; diff --git a/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java b/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java index 5b10246..5be1905 100644 --- a/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/NicknameChangeRequest.java @@ -2,7 +2,6 @@ import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Pattern; import lombok.*; @Getter @@ -15,6 +14,5 @@ public class NicknameChangeRequest { @NotNull private Long userId; @NotBlank(message = "닉네임은 공백일 수 없습니다.") - @Pattern(regexp = "^[^\n\t\r\f]{3,8}$", message = "닉네임은 \\t, \\r, \\n, \\f 제외 최소3자 최대 8자여야 합니다.") private String nickname; } diff --git a/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java b/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java index 7000550..b694872 100644 --- a/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java @@ -1,7 +1,6 @@ package igoMoney.BE.dto.request; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; import lombok.*; import org.springframework.web.multipart.MultipartFile; @@ -18,9 +17,7 @@ public class RecordSaveRequest { private Long challengeId; @NotNull private Long userId; - @NotNull @Size(min=5, max=15) private String title; - @Size(max=300) private String content; private Integer cost; private List image; diff --git a/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java b/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java index 8aa15a1..e0d576f 100644 --- a/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java +++ b/src/main/java/igoMoney/BE/dto/request/RecordUpdateRequest.java @@ -1,7 +1,6 @@ package igoMoney.BE.dto.request; import jakarta.validation.constraints.NotNull; -import jakarta.validation.constraints.Size; import lombok.*; import org.springframework.web.multipart.MultipartFile; @@ -16,9 +15,8 @@ public class RecordUpdateRequest { @NotNull private Long recordId; - @NotNull @Size(min=5, max=15) + @NotNull private String title; - @Size(max=300) private String content; private Integer cost; private List image;