RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.72k stars 1.29k forks source link

UseGetBaseUrlMethod not working for openapi2tsclient #4864

Open DylanBarber opened 5 months ago

DylanBarber commented 5 months ago

Running the following:

openapi2tsclient /Input:https://example.com/swagger/swagger.json /Output:./client.ts /UseGetBaseUrlMethod:true

generates a client with a broken reference to this.getBaseUrl

this.baseUrl = this.getBaseUrl("https://example.com", baseUrl);

Error: Property 'getBaseUrl' does not exist on type 'ExampleClient'. Did you mean 'baseUrl'?