Skip to content

Add ability to disable default responses #1123

@pohorilyi

Description

@pohorilyi

I want to migrate from SpringFox library to SpringDoc. In my SpringFox configuration, I have disabled default response messages:

@Bean
public Docket publicApi(ServletContext servletContext) {
    Docket docket = new Docket(DocumentationType.SWAGGER_2)
        ...
        .useDefaultResponseMessages(false);

But I can't find a way to do it in SpringDoc. Migration guide says "remove Docket and use application.properties instead". But there is no such property.

Solution I'd like

  • Posibility to disable default responses as a property in application.properties
  • Expected result using OpenAPI Description - json

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