I am working on a rest api using java spring boot framework, and I tried using springdoc-openapi to generate endpoints documentation, I followed this tutorial and made a documentation, the only problem is when I try to set multiple descriptions for the same Http Error code (like the 404 bellow) only the first one is shown in the generated doc.
@ApiResponses(value = {
@ApiResponse(responseCode = "200", description = "Task updated successfully",
content = {@Content(mediaType = "application/json",
schema = @Schema(implementation = Task.class))}),
@ApiResponse(responseCode = "400", description = "Friend email equal to user email",
content = @Content),
@ApiResponse(responseCode = "401", description = "Invalid Id Token",
content = @Content),
@ApiResponse(responseCode = "404", description = "Friend not found",
content = @Content),
@ApiResponse(responseCode = "404", description = "Friend email is null",
content = @Content),
@ApiResponse(responseCode = "404", description = "Task not found",
content = @Content)})
Is it possible to define multiple descriptions
(not @Schema
) for the same response code? (I already searched but I only found how to set multiple schemas so far)