Skip to content

Impossible to configure swaggerurl programmatically #744

@natrem

Description

@natrem

Describe the bug
org.springdoc.core.SwaggerUiConfigProperties#setUrls is public but class SwaggerUrl is not.
Therefore client code cannot create SwaggerUrl instance.

I checked method org.springdoc.core.SwaggerUiConfigProperties#addUrl but it seems designed for AbstractSwaggerWelcome (even in this case it seems fishy but I didn't check existing tests)

To Reproduce
springdoc-openapi-common 1.4.1

Expected behavior
public exposure to add urls programmatically

If you agree I'm fully ok to create the PR (although it's a very small one).

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