Skip to content

Commit

Permalink
[feat] 가게 메뉴 등록 요청 Bean Validation 예외 메시지 구체화
Browse files Browse the repository at this point in the history
  • Loading branch information
june-777 committed Aug 14, 2024
1 parent d88f38c commit f2de80c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ public record StoreMenuRegistrationRequest(
) {

public record MenuLineItem(
@NotBlank
@NotBlank(message = "메뉴 이름은 필수값입니다.")
String name,

@NotBlank
@NotBlank(message = "사진은 필수값입니다.")
String imageUrl,

@NotBlank
@NotBlank(message = "메뉴 카테고리 이름은 필수값입니다.")
String categoryName,

@NotNull
@NotNull(message = "메뉴 가격은 필수값입니다.")
Integer price
) {
}
Expand Down

0 comments on commit f2de80c

Please sign in to comment.