Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
public record ProblemCreateRequest(

@NotNull(message = "카테고리를 설정해야 합니다.")
@Schema(description = "카테고리", example = "FOR_BEGINNER")
@Schema(description = "카테고리 목록", example = "[\"FOR_BEGINNER\", \"ALGORITHM\"]")
List<Category> categories,

@NotBlank(message = "문제 제목을 입력하세요.")
Expand All @@ -27,7 +27,7 @@ public record ProblemCreateRequest(
String description,

@NotNull(message = "난이도를 설정해야 합니다.")
@Schema(description = "난이도", example = "BRONZE")
@Schema(description = "난이도", example = "LV1")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

저희 난이도 그냥 1이 아니라 LV1인가여

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

enum 선언시 1로하면 오류납니다

Difficulty difficulty,

@NotNull(message = "메모리 제한을 설정해야 합니다.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@

public record ProblemUpdateRequest(

@Schema(description = "카테고리", example = "FOR_BEGINNER")
@Schema(description = "카테고리 목록", example = "[\"FOR_BEGINNER\", \"ALGORITHM\"]")
List<Category> categories,

@Schema(description = "제목", example = "A+B")
String title,

@Schema(description = "카테고리", example = "입력한 두수의 값을 더하고, 결과값을 출력하세요")
@Schema(description = "설명", example = "입력한 두수의 값을 더하고, 결과값을 출력하세요")
String description,

@Schema(description = "난이도", example = "BRONZE")
@Schema(description = "난이도", example = "LV1")
Difficulty difficulty,

@Schema(description = "메모리 제한(KB)", example = "30000")
Expand Down