Skip to content

Add support of @ResponseStatus for jaxrs-spec generator #21360

Open
@ginadebeukelaer

Description

@ginadebeukelaer

According to the documentation the spring generator adds the @ResponseStatus annotation when useResponseEntity is disabled.

It would be useful to have a similar config option for the jaxrs-spec generator (according to the documentation this is not available currently).

2 proposals:

  1. Add the @ResponseStatus annotation when returnResponse is disabled. This would alter the default behavior.
  2. Create a new config option, e.g. responseStatus, that is disabled by default and can be set to true to enable it. To avoid conflicts the config option returnResponse would also have to be disabled before adding the annotation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions