Skip to content

Unexpected operation-level "Servers" block rendered by default in Swagger UI #1587

Description

@leandroluk

Is your feature request related to a problem? Please describe.

Currently, endpoints in the generated Swagger UI display an operation-level "Servers" dropdown by default (showing /). This overrides global server options, clutters the UI unnecessarily, and is highly uncommon in standard Swagger interfaces.

Describe the solution you'd like

By default, operations should not generate their own servers array unless explicitly configured. They should rely on the global server definition. Please remove the default operation-level server injection or provide an option/flag to disable it globally.

Describe alternatives you've considered

Manually attempting to strip the operation-level servers from the generated OpenAPI schema before serving it to Swagger UI, which is not ideal.

Additional context

Screenshot attached showing the unnecessary block:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions