-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Context
Swagger v2 host and schemas are not mandatory (at least from documents i could find). But the following transformer is requesting them
http-spec/src/oas2/transformers/servers.ts
Lines 32 to 36 in f5594fb
| 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
Labels
No labels