Skip to content

Servers OpenAPI block resets after customizing with GroupedOpenApi #695

@neonomaly

Description

@neonomaly

I'am using springdoc's GroupedOpenApi as a bean with defining openApi customizers and setting up custom Servers block. But after that OpenApi builder resets OpenAPI Block to defaults. This happens, because isServersPresent in OpenApiBuilder doesn't change after customizing.

Environment:
SpringBoot: 2.3.0.RELEASE,
SpringDoc: webFlux-ui:1.3.9; kotlin:1.3.9
Problem exists in both notations: JSON and YAML.
Sample Project: https://github.com/neonomaly/springdoc-groupedopenapi-bug

Expected Behavior:
Servers block saves servers defined by me. In example:

Actual Behavior:
Servers block resets servers to recalculated. In example:

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions