Skip to content

Commit

Permalink
Fix: ai 기능 요청에서 페이지 번호 0 가능하도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hynseoj committed Nov 5, 2024
1 parent bf3c18c commit a0a6c69
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package notai.llm.presentation.request;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import notai.llm.application.command.LlmTaskSubmitCommand;

import java.util.List;
Expand All @@ -10,7 +10,7 @@ public record LlmTaskSubmitRequest(

@NotNull(message = "문서 ID는 필수 입력 값입니다.") Long documentId,

List<@Positive(message = "페이지 번호는 양수여야 합니다.") Integer> pages
List<@PositiveOrZero(message = "페이지 번호는 음수일 수 없습니다.") Integer> pages
) {
public LlmTaskSubmitCommand toCommand() {
return new LlmTaskSubmitCommand(documentId, pages);
Expand Down

0 comments on commit a0a6c69

Please sign in to comment.