Open ellyxc opened 1 year ago
Swagger v2 host and schemas are not mandatory (at least from documents i could find). But the following transformer is requesting them https://github.com/stoplightio/http-spec/blob/f5594fba2537c61ea42ed886096349dca57ebbeb/src/oas2/transformers/servers.ts#L32-L36
It is not returning server address
It is using current browser host as server url, or basePath only similar to OAS v3
Context
Swagger v2 host and schemas are not mandatory (at least from documents i could find). But the following transformer is requesting them https://github.com/stoplightio/http-spec/blob/f5594fba2537c61ea42ed886096349dca57ebbeb/src/oas2/transformers/servers.ts#L32-L36
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