Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't apply settings when generating client via openapi2csclient #4895

Open
dvaca-sml opened this issue May 14, 2024 · 0 comments
Open

Can't apply settings when generating client via openapi2csclient #4895

dvaca-sml opened this issue May 14, 2024 · 0 comments

Comments

@dvaca-sml
Copy link

I have the following powershell script where I use nswag openapi2csclient to generate a client. And I'm trying disable settings useBaseUrl and generateBaseUrlProperty

$namespace = "MyNamespace"
$className = "ProductServiceClient"
nswag openapi2csclient /input:swagger.json /classname:$className /namespace:$namespace /output:$className.cs /useBaseUrl:false /generateBaseUrlProperty:false

But when I look at the client that gets generated, it looks like the settings did not get applied.

Also, I did them same thing in Nswag Studio and it works correctly there. Here's a comparison between the two:
image

Why are the settings not getting applied. Is there something I'm doing wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant