Skip to content

Commit

Permalink
fix : TaskCreate의 TaskStatus 필드가 직렬화 되지 않던 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
sunandrabbit committed Nov 12, 2024
1 parent b2ddd97 commit 42880b9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/team1/be/seamless/dto/TaskDTO.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package team1.be.seamless.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotBlank;
Expand Down Expand Up @@ -32,6 +33,7 @@ public static class TaskCreate {
private Long ownerId;

@NotNull(message = "진행 상태(status)는 필수 입력 사항입니다.")
@JsonProperty("taskStatus")
private TaskStatus taskStatus;

@NotNull(message = "중요도(priority)는 필수 입력 사항입니다.")
Expand Down

0 comments on commit 42880b9

Please sign in to comment.