|
30 | 30 | import org.fontory.fontorybe.font.controller.port.FontService; |
31 | 31 | import org.fontory.fontorybe.font.domain.Font; |
32 | 32 | import org.springframework.data.domain.Page; |
33 | | -import org.springframework.http.HttpHeaders; |
34 | 33 | import org.springframework.http.HttpStatus; |
35 | 34 | import org.springframework.http.MediaType; |
36 | 35 | import org.springframework.http.ResponseEntity; |
@@ -124,7 +123,7 @@ public ResponseEntity<?> getFontProgress(@Login UserPrincipal userPrincipal) { |
124 | 123 | @Parameter(name = "fontId", description = "수정할 폰트 ID") |
125 | 124 | @PutMapping("/{fontId}") |
126 | 125 | public ResponseEntity<?> updateFont( |
127 | | - @RequestBody FontUpdateDTO fontUpdateDTO, |
| 126 | + @RequestBody @Valid FontUpdateDTO fontUpdateDTO, |
128 | 127 | @PathVariable Long fontId, |
129 | 128 | @Login UserPrincipal userPrincipal |
130 | 129 | ) { |
@@ -260,7 +259,7 @@ public ResponseEntity<?> getPopularFonts(@Login(required = false) UserPrincipal |
260 | 259 | @Parameter(name = "fontId", description = "수정할 폰트 ID") |
261 | 260 | @PatchMapping("/progress/{fontId}") |
262 | 261 | public ResponseEntity<?> updateFontProgress( |
263 | | - @RequestBody FontProgressUpdateDTO fontProgressUpdateDTO, |
| 262 | + @RequestBody @Valid FontProgressUpdateDTO fontProgressUpdateDTO, |
264 | 263 | @PathVariable Long fontId |
265 | 264 | ) { |
266 | 265 | log.info("Request received: Update font progress ID: {}, request: {}", |
|
0 commit comments