Skip to content

Only extend defined ApiResponses with generic responses from controller advice #429

Closed
@m-kay

Description

@m-kay

The responses generated from a controller advice are currently added to every operation. However in some cases it is impossible to get this error/response on a certain operation. Therefore I would suggest to only add all generic responses if no @ApiResponse annotation is present on an operation. If there are @ApiResponse annotations on an operation I would only extend this config with the generated generic response so one could configure which of the generic responses are shown for which operation.

Metadata

Metadata

Assignees

No one assigned

    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