diff --git a/src/main/java/qp/official/qp/web/dto/AnswerRequestDTO.java b/src/main/java/qp/official/qp/web/dto/AnswerRequestDTO.java index 04a51bbf..e58d6a0f 100644 --- a/src/main/java/qp/official/qp/web/dto/AnswerRequestDTO.java +++ b/src/main/java/qp/official/qp/web/dto/AnswerRequestDTO.java @@ -18,7 +18,7 @@ public static class AnswerCreateDTO { String title; @NotBlank String content; - @NotBlank + @NotNull(message = "카테고리는 'PARENT', 'CHILD' 중 하나여야 합니다.") Category category; Long answerGroup; }