Skip to content

Commit

Permalink
fix: Valid 가 적용되도록 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
nayonsoso committed Sep 23, 2024
1 parent eeacf74 commit 265e7af
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package reviewme.review.service.dto.request;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import java.util.List;
Expand All @@ -9,6 +10,7 @@ public record ReviewRegisterRequest(
@NotBlank(message = "리뷰 요청 코드를 입력해주세요.")
String reviewRequestCode,

@Valid
@NotEmpty(message = "답변 내용을 입력해주세요.")
List<ReviewAnswerRequest> answers
) {
Expand Down

0 comments on commit 265e7af

Please sign in to comment.