Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open API v2 Server URL #233

Open
ellyxc opened this issue May 12, 2023 · 0 comments
Open

Open API v2 Server URL #233

ellyxc opened this issue May 12, 2023 · 0 comments

Comments

@ellyxc
Copy link

ellyxc commented May 12, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant