Closed MariuszKogut closed 5 years ago
Took a brief look into your source code. I guess the problem is located here:
What do you think?
Hi MariuszKogut, you're absolutely correct, I wasn't fully aware that Functions in non-static classes was supported. You've proven me wrong. So, I suppose we can get rid of the static requirement on both the class and the method. Doesn't look like a big deal, I can probably make the changes and run the necessary tests tomorrow and release a new version to Nuget.
@MariuszKogut A new version (v1.1.1) has been released to NuGet that adds support to non-static Functions. I'm closing this issue, please open another issue if you run into any problems.
Hi there, First of all, thanks for your great project. I'm a big fan of NSwag and want to use it for my Azure Functions Host. In my project, I'm using DI as described here => https://docs.microsoft.com/de-de/azure/azure-functions/functions-dotnet-dependency-injection. So my functions are not static. The generated document is empty, when I use your example swagger endpoint.
Do you have some plans to support also non static functions?
Thanks, Mariusz