Skip to content

Commit

Permalink
CLAP-443 카테고리, 작업 생성, 수정시 부가설명 길이 제한
Browse files Browse the repository at this point in the history
CLAP-443 카테고리, 작업 생성, 수정시 부가설명 길이 제한
  • Loading branch information
hyoseong-Choi authored Feb 17, 2025
2 parents 8dcbb47 + 963c7c5 commit 61297ea
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ public record AddSubCategoryRequest(
String name,
@NotBlank @Pattern(regexp = "^[A-Z]{1,2}$", message = "올바른 카테고리 코드 형식이 아닙니다.")
String code,
@Length(max = 255)
String descriptionExample) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public record UpdateCategoryRequest(
String name,
@NotBlank @Pattern(regexp = "^[A-Z]{1,2}$", message = "올바른 카테고리 코드 형식이 아닙니다.")
String code,
@Length(max = 255)
String descriptionExample
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;


@Schema(description = "작업 생성 요청")
Expand All @@ -16,6 +17,7 @@ public record CreateTaskRequest(
String title,

@Schema(description = "작업 설명")
@Length(max = 200)
String description
) {
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;

import java.util.List;

Expand All @@ -18,10 +19,12 @@ public record UpdateTaskRequest(
String title,

@Schema(description = "작업 설명", example = "업데이트된 설명.")
@Length(max = 200)
String description,

@Schema(description = "삭제할 파일 ID 목록, 없을 경우 emptylist 전송")
@NotNull
List<Long> attachmentsToDelete
) {}
) {
}

0 comments on commit 61297ea

Please sign in to comment.