Bug Report Checklist
Description
Let's assume we've configured the BaseAddress of the HttpClient used in the generated C# client from the OpenAPI description like so:
client.BaseAddress = new Uri("http://localhost/subpath/");
Then, using the generated client, the /subpath/ part of the BaseAddress is completely ignored when sending HTTP requests.
openapi-generator version
7.7.0
OpenAPI declaration file content or url
https://github.com/ory/kratos/blob/master/.schema/openapi.json
Generation Details
openapi-generator-cli generate --config <...>
https://github.com/leancodepl/dotnet-kratos-client/blob/master/generate.sh
Steps to reproduce
- Generate the C# OpenAPI client
- Configure
HttpClient providing BaseAddress with a subpath
- Attempt to send a request using generated client
Related issues/PRs
Somehow related issue, where generated client ignored provided HTTP scheme: #14682
Suggest a fix
Instead of building the base address ourselves, maybe we should use the one already configured in the HttpClient?
Bug Report Checklist
Description
Let's assume we've configured the
BaseAddressof theHttpClientused in the generated C# client from the OpenAPI description like so:Then, using the generated client, the
/subpath/part of theBaseAddressis completely ignored when sending HTTP requests.openapi-generator version
7.7.0
OpenAPI declaration file content or url
https://github.com/ory/kratos/blob/master/.schema/openapi.json
Generation Details
openapi-generator-cli generate --config <...>https://github.com/leancodepl/dotnet-kratos-client/blob/master/generate.sh
Steps to reproduce
HttpClientprovidingBaseAddresswith a subpathRelated issues/PRs
Somehow related issue, where generated client ignored provided HTTP scheme: #14682
Suggest a fix
Instead of building the base address ourselves, maybe we should use the one already configured in the
HttpClient?