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

Is there a way to make nswag behave the same as the swagger export from swaggerhub? #4848

Open
KutanaDev opened this issue Apr 9, 2024 · 0 comments

Comments

@KutanaDev
Copy link

This stackoverflow answer demonstrates the behaviour of swaggerhub - each operationId in the input yaml file gives rise to two methods in the generated cs file, one has the WithHttpInfo suffix, the other does not.

I want to use the nswag tool instead of swaggerhub to generate cs files from my yaml input file. I can successfully run nswag in my Visual Studio project, because I have an OpenApiReference element in my csproj file.

However, the generated cs files do not contain any functions with the WithHttpInfo suffix.

This page lists the nswag command line switches, and I've tried all the likely looking ones, but to no avail.

My question is - are there any nswag command line switches that will cause it to produce pairs of functions like swaggerhub does?

(I already posted this question on stackoverflow where, for reasons unknown to me, it got an immediate dv.)

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