diff --git a/src/main/java/com/moneymong/domain/user/api/UserUniversityController.java b/src/main/java/com/moneymong/domain/user/api/UserUniversityController.java index 1e284a5..029b2c9 100644 --- a/src/main/java/com/moneymong/domain/user/api/UserUniversityController.java +++ b/src/main/java/com/moneymong/domain/user/api/UserUniversityController.java @@ -7,7 +7,6 @@ import com.moneymong.global.security.token.dto.jwt.JwtAuthentication; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.validation.Valid; import lombok.RequiredArgsConstructor; import org.springframework.security.core.annotation.AuthenticationPrincipal; import org.springframework.web.bind.annotation.*; @@ -31,7 +30,7 @@ public UserUniversityResponse getUserUniversity( @PostMapping public void createUserUniversity( @AuthenticationPrincipal JwtAuthentication user, - @RequestBody @Valid CreateUserUniversityRequest request + @RequestBody CreateUserUniversityRequest request ) { userUniversityService.create(user.getId(), request); } @@ -40,7 +39,7 @@ public void createUserUniversity( @PatchMapping public void updateUserUniversity( @AuthenticationPrincipal JwtAuthentication user, - @RequestBody @Valid UpdateUserUniversityRequest request + @RequestBody UpdateUserUniversityRequest request ) { userUniversityService.update(user.getId(), request); } diff --git a/src/main/java/com/moneymong/domain/user/api/request/UpdateUserUniversityRequest.java b/src/main/java/com/moneymong/domain/user/api/request/UpdateUserUniversityRequest.java index 33ccff7..8e364f5 100644 --- a/src/main/java/com/moneymong/domain/user/api/request/UpdateUserUniversityRequest.java +++ b/src/main/java/com/moneymong/domain/user/api/request/UpdateUserUniversityRequest.java @@ -1,8 +1,5 @@ package com.moneymong.domain.user.api.request; -import jakarta.validation.constraints.Max; -import jakarta.validation.constraints.Min; -import jakarta.validation.constraints.NotBlank; import lombok.AllArgsConstructor; import lombok.Getter; import lombok.NoArgsConstructor; @@ -11,10 +8,6 @@ @NoArgsConstructor @AllArgsConstructor public class UpdateUserUniversityRequest { - @NotBlank private String universityName; - - @Min(value = 1) - @Max(value = 5) private int grade; }