Skip to content

Open API v2 Server URL #233

@ellyxc

Description

@ellyxc

Context

Swagger v2 host and schemas are not mandatory (at least from documents i could find). But the following transformer is requesting them

if (typeof host !== 'string' || host.length === 0) {
return;
}
if (!isString(scheme) || !isValidScheme(scheme)) return;

Current Behavior

It is not returning server address

Expected Behavior

It is using current browser host as server url, or basePath only similar to OAS v3

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