Skip to content

default response is not overload #354

Closed
@bisegni

Description

@bisegni

In my code if I have method with the following annotation:

@Operation(summary = "Example api that realize an ECHO operation",
               description = "The result of the echo is the input value of the api",
               parameters = {@Parameter(in = ParameterIn.PATH,
                                        name = "uuid",
                                        required = true,
                                        description = "Is the identification of the document",
                                        schema = @Schema(type = "string",
                                                         example = "uuid"))},
               responses = {
                       @ApiResponse(description = "Successful Operation",
                                    responseCode = "200",
                                    content = @Content(mediaType = "application/json",
                                                       schema = @Schema(implementation = EchoResponse.class))),
                       @ApiResponse(responseCode = "201",
                                    description = "other possible response")
               }
    )

But when I get the json created I notice that the response code 200 is not defined as I wan't but I have always the "default response " and not what I have set with upper annotations...

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions