Skip to content

[BUG] Servers section is broken, prevents usage of "Try it Out" #30

@iamthebot

Description

@iamthebot

In my generated swagger.json, I see the correctly generated servers section:

"servers": [
        {
            "url": "http://localhost:80/",
            "description": "Local environment"
        },
        {
            "url": "http://foo.com",
            "description": "Main Endpoint"
        }
    ],

But in the swagger UI I see only one autogenerated server with a malformed URL with a comma:

https://somedomain.com/,somedomain.com

I'm guessing it's trying to do some kind of logic to support reverse proxies... but that logic seems broken. Do you know where the code lives for this?

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