Skip to content

Commit

Permalink
Type: 글 길이 제한 삭제 (#100)
Browse files Browse the repository at this point in the history
[Fix] emoji 때문에 글 길이 제한은 프론트로 넘김
  • Loading branch information
pingowl authored Dec 6, 2023
2 parents 37105f9 + 4b87774 commit 1605a51
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import lombok.*;

import jakarta.validation.constraints.Size;

import java.time.LocalDate;

@Getter
Expand All @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.*;

@Getter
Expand All @@ -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;
}
3 changes: 0 additions & 3 deletions src/main/java/igoMoney/BE/dto/request/RecordSaveRequest.java
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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<MultipartFile> image;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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<MultipartFile> image;
Expand Down

0 comments on commit 1605a51

Please sign in to comment.