Skip to content

Commit

Permalink
Merge pull request #392 from swarajsaaj/fix_sonar_swagger_smell
Browse files Browse the repository at this point in the history
SonarSmell: Remove ApiResponses wrapper
  • Loading branch information
pascalgrimaud authored Dec 22, 2021
2 parents 7046f2b + 8b705d9 commit 81a71ce
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.responses.ApiResponse;
import io.swagger.v3.oas.annotations.responses.ApiResponses;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
Expand All @@ -24,7 +23,7 @@ public SonarResource(SonarApplicationService sonarApplicationService) {
}

@Operation(summary = "Add Sonar configuration to inspect code quality")
@ApiResponses({ @ApiResponse(responseCode = "500", description = "An error occurred while adding Sonar configuration") })
@ApiResponse(responseCode = "500", description = "An error occurred while adding Sonar configuration")
@PostMapping
public void addSonar(@RequestBody ProjectDTO projectDTO) {
Project project = ProjectDTO.toProject(projectDTO);
Expand Down

0 comments on commit 81a71ce

Please sign in to comment.