@@ -47,7 +47,7 @@ public ResponseEntity<UpdateTaskResponse> updateTaskState(
4747 public ResponseEntity <UpdateTaskResponse > updateTaskProcessor (
4848 @ PathVariable Long taskId ,
4949 @ AuthenticationPrincipal SecurityUserDetails userInfo ,
50- @ RequestBody UpdateTaskProcessorRequest updateTaskProcessorRequest ) {
50+ @ Valid @ RequestBody UpdateTaskProcessorRequest updateTaskProcessorRequest ) {
5151 return ResponseEntity .ok (updateTaskProcessorUsecase .updateTaskProcessor (taskId , userInfo .getUserId (), updateTaskProcessorRequest ));
5252 }
5353
@@ -57,7 +57,7 @@ public ResponseEntity<UpdateTaskResponse> updateTaskProcessor(
5757 public ResponseEntity <UpdateTaskResponse > updateTaskLabel (
5858 @ PathVariable Long taskId ,
5959 @ AuthenticationPrincipal SecurityUserDetails userInfo ,
60- @ RequestBody UpdateTaskLabelRequest updateTaskLabelRequest ) {
60+ @ Valid @ RequestBody UpdateTaskLabelRequest updateTaskLabelRequest ) {
6161 return ResponseEntity .ok (updateTaskLabelUsecase .updateTaskLabel (taskId , userInfo .getUserId (), updateTaskLabelRequest ));
6262 }
6363
@@ -67,7 +67,7 @@ public ResponseEntity<UpdateTaskResponse> updateTaskLabel(
6767 public ResponseEntity <ApprovalTaskResponse > approvalTask (
6868 @ RequestBody @ Valid ApprovalTaskRequest approvalTaskRequest ,
6969 @ PathVariable Long taskId ,
70- @ AuthenticationPrincipal SecurityUserDetails userInfo ){
70+ @ Valid @ AuthenticationPrincipal SecurityUserDetails userInfo ){
7171 return ResponseEntity .ok (approvalTaskUsecase .approvalTaskByReviewer (userInfo .getUserId (), taskId , approvalTaskRequest ));
7272 }
7373}
0 commit comments