Bug Report Checklist
Description
When requesting the API on https after generating it on http it failed.
The issue is that the scheme is hardcoded when it should be taken from the base address.
uriBuilder.Scheme = ClientUtils.SCHEME;
openapi-generator version
6.3.0-20230125.125049-89
OpenAPI declaration file content or url
OpenAPI declaration file content or url
https://gist.github.com/kYann/23eab426be79fd2cb93c2ddb902a8ecd
Generation Details
java -jar ../openapi-generator-cli-6.4.0-20230206.024543-10.jar generate -i http://localhost:5127/swagger/public-v1/swagger.json -c config.yaml
Steps to reproduce
- Generate client on http endpoint
- Change url of client to use https
- Call a query
Suggest a fix
Replace with
uriBuilder.Scheme = HttpClient.BaseAddress!.Scheme;
Thanks,
Bug Report Checklist
Description
When requesting the API on https after generating it on http it failed.
The issue is that the scheme is hardcoded when it should be taken from the base address.
openapi-generator version
6.3.0-20230125.125049-89
OpenAPI declaration file content or url
OpenAPI declaration file content or url
https://gist.github.com/kYann/23eab426be79fd2cb93c2ddb902a8ecd
Generation Details
java -jar ../openapi-generator-cli-6.4.0-20230206.024543-10.jar generate -i http://localhost:5127/swagger/public-v1/swagger.json -c config.yamlSteps to reproduce
Suggest a fix
Replace with
Thanks,