Skip to content

Commit

Permalink
#101 fix : 상품 등록 중 enum 타입의 ItemStatus의 값이 바인딩 되지 않아서 컨버터 추가 (#102)
Browse files Browse the repository at this point in the history
  • Loading branch information
pie2457 authored Sep 22, 2023
1 parent 7a7cdb1 commit 4497d32
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down

0 comments on commit 4497d32

Please sign in to comment.