Skip to content

Commit

Permalink
감정어 개수 제한 수정 (#589)
Browse files Browse the repository at this point in the history
3개 고정 -> 1 ~ 3개
  • Loading branch information
jjddhh authored Sep 12, 2023
1 parent 682c3e1 commit 145e02a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class KeywordDto {
private String keyword;

@Valid
@Size(min = 3, max = 3, message ="emotion 의 개수는 3개여야 합니다.")
@Size(min = 1, max = 3, message ="emotion 의 개수는 3개여야 합니다.")
private List<KeywordEmotionDto> keywordEmotions;

public KeywordDto(Keyword keyword) {
Expand All @@ -31,4 +31,4 @@ public KeywordDto(Keyword keyword) {
.map(ke -> new KeywordEmotionDto(ke.getEmotion().getEmotion()))
.collect(Collectors.toList());
}
}
}

0 comments on commit 145e02a

Please sign in to comment.