From 8d345656ce646490b13c1b1545926d31a8f83e35 Mon Sep 17 00:00:00 2001 From: Train0303 Date: Wed, 15 Nov 2023 14:54:57 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EC=9B=8C=ED=81=AC=EC=8A=A4=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=8A=A4=20=EC=88=98=EC=A0=95=20=EA=B2=80=EC=A6=9D=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../linknamu/workspace/dto/WorkspaceUpdateRequestDto.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/linknamu/src/main/java/com/kakao/linknamu/workspace/dto/WorkspaceUpdateRequestDto.java b/linknamu/src/main/java/com/kakao/linknamu/workspace/dto/WorkspaceUpdateRequestDto.java index d069df3d..dc7f4340 100644 --- a/linknamu/src/main/java/com/kakao/linknamu/workspace/dto/WorkspaceUpdateRequestDto.java +++ b/linknamu/src/main/java/com/kakao/linknamu/workspace/dto/WorkspaceUpdateRequestDto.java @@ -1,8 +1,11 @@ package com.kakao.linknamu.workspace.dto; import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.Size; public record WorkspaceUpdateRequestDto( - @NotBlank String workspaceName + @NotBlank(message = "워크스페이스의 제목은 공백이 될 수 없습니다.") + @Size(max = 50, message = "워크스페이스의 제목은 50자를 초과할 수 없습니다.") + String workspaceName ) { }