Skip to content

When no host specified by spec, entire spec url is used as host #58

@ameade

Description

@ameade

If I do not specify a 'host' in my swagger spec, pyswagger attempts to use the entire spec URL I gave it for the host. Swagger spec states "If the host is not included, the host serving the documentation is to be used (including the port)."

Example, if I do:
URL = hostname/api/spec
app = pyswagger.SwaggerApp.create(URL)

It then attempts to use URL as the host for all requests.
request.url: hostname/api/spec/api/auth

when it should be 'hostname/api/auth'

Thanks! This should be a simple one.

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