Skip to content

openApi.getServers() is null in OpenApiCustomiser when using different locales #2155

Closed
@harsel

Description

@harsel

Describe the bug

In an OpenApiCustomiser, calling OpenApi.getServers() may return null.

To Reproduce

  • Using latest master
  • Add a bean of type OpenApiCustomiser which invokes getServers()
  • Request the open api document using header Accept-Language: en-US
  • Request the open api document using header Accept-Language: de-DE
  • The second request fails with a NullpointerException in the OpenApiCustomiser as openApi.getServers() returns null

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