Bug Report Checklist
Description
When the server url is set to a relative path, in the generated source files it will be prefixed with "https://localhost"
openapi-generator version
latest
OpenAPI declaration file content or url
"servers": [
{
"url": "/my-api"
}
]
Generation Details
openapi-generator-cli generate --skip-validate-spec --input-spec ./my-api.json --generator-name typescript-fetch --output gen/my-api --config my-api-config.json
my-api-config.json
{
"npmName": "my-api",
"npmVersion": "1.0.0",
"snapshot": false,
"supportsES6": false,
"modelPropertyNaming": "original"
}
Steps to reproduce
Run the above command on a yaml file with server url set to a relative path
Related issues/PRs
#2731
#2731
Bug Report Checklist
Description
When the server url is set to a relative path, in the generated source files it will be prefixed with "https://localhost"
openapi-generator version
latest
OpenAPI declaration file content or url
Generation Details
openapi-generator-cli generate --skip-validate-spec --input-spec ./my-api.json --generator-name typescript-fetch --output gen/my-api --config my-api-config.json
my-api-config.json
{ "npmName": "my-api", "npmVersion": "1.0.0", "snapshot": false, "supportsES6": false, "modelPropertyNaming": "original" }Steps to reproduce
Run the above command on a yaml file with server url set to a relative path
Related issues/PRs
#2731
#2731