diff --git a/app/src/main/java/fc/be/app/domain/vote/controller/VoteControllerImpl.java b/app/src/main/java/fc/be/app/domain/vote/controller/VoteControllerImpl.java index 86b52e2..915b7cb 100644 --- a/app/src/main/java/fc/be/app/domain/vote/controller/VoteControllerImpl.java +++ b/app/src/main/java/fc/be/app/domain/vote/controller/VoteControllerImpl.java @@ -56,7 +56,7 @@ public ApiResponse createNewVote( @PostMapping("/{voteId}/candidates") public ApiResponse addCandidate( @PathVariable Long voteId, - CandidateAddApiRequest request, + @Valid @RequestBody CandidateAddApiRequest request, @AuthenticationPrincipal UserPrincipal userPrincipal ) { return ApiResponse.ok(voteManageService.addCandidate(