RicoSuter / NSwag

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

NSwag or Visual Studio makes up wrong client code #4844

Open Brainforce1 opened 3 months ago

Brainforce1 commented 3 months ago

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