diff --git a/backend/src/main/java/codesquard/app/api/item/request/ItemRegisterRequest.java b/backend/src/main/java/codesquard/app/api/item/request/ItemRegisterRequest.java index 5123890ba..847a85067 100644 --- a/backend/src/main/java/codesquard/app/api/item/request/ItemRegisterRequest.java +++ b/backend/src/main/java/codesquard/app/api/item/request/ItemRegisterRequest.java @@ -4,6 +4,9 @@ import javax.validation.constraints.NotBlank; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; + +import codesquard.app.api.converter.ItemRequestConverter; import codesquard.app.domain.category.Category; import codesquard.app.domain.item.Item; import codesquard.app.domain.item.ItemStatus; @@ -22,6 +25,7 @@ public class ItemRegisterRequest { private Long price; private String content; private String region; + @JsonDeserialize(converter = ItemRequestConverter.class) private ItemStatus status; private Long categoryId; private String categoryName;