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

NSwag or Visual Studio makes up wrong client code #4844

Open
Brainforce1 opened this issue Apr 3, 2024 · 0 comments
Open

NSwag or Visual Studio makes up wrong client code #4844

Brainforce1 opened this issue Apr 3, 2024 · 0 comments

Comments

@Brainforce1
Copy link

Brainforce1 commented Apr 3, 2024

When generating a client code that mentions Pets and other animals as part of my personal models, it seems that my own swagger file is totally ignored, even though clearly referenced in the config, and some random swagger is taken from an online github repo, which I never knew the existence of before, nor ever had anything to do with. https://github.com/zijianhuang/openapiclientgen
Seems that some 'smart' process thinks, ah pets in swagger so I know how to get a client for that?
And my local client is always 100% identical to the one I found online when searching for the keywords 'NSwag' and ''honeyperday', which most definitely was/is nowhere in my own model!
This is creepy stuff!
PetConnectClient.g.zip
My 'generated' client included.
NSwag MS Build 14.0.7, NET 8.0

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