Skip to content

Commit

Permalink
fix: Integer id 검증 추가 및 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
김원경 committed Dec 4, 2024
1 parent 08206ff commit e2a593e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
import com.fasterxml.jackson.databind.PropertyNamingStrategies.SnakeCaseStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;

import in.koreatech.koin.domain.timetableV2.dto.validation.InnerTimetableLectureRequestValid;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

Expand All @@ -21,13 +21,14 @@ public record TimetableLectureUpdateRequest(
Integer timetableFrameId,

@Valid
@NotEmpty(message = "시간표 정보를 입력해주세요.")
@Schema(description = "시간표 정보", requiredMode = NOT_REQUIRED)
@InnerTimetableLectureRequestValid
List<InnerTimetableLectureRequest> timetableLecture
) {
@JsonNaming(value = SnakeCaseStrategy.class)
public record InnerTimetableLectureRequest(
@Schema(description = "시간표 강의 id", example = "1", requiredMode = REQUIRED)
@NotNull(message = "강의 id를 입력해주세요.")
Integer id,

@Schema(description = "강의 id", example = "1", requiredMode = NOT_REQUIRED)
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit e2a593e

Please sign in to comment.