My api is written in asp net core 3.1 and I use Swashbuckle.AspNetCore version 5.6.1
I can create the swagger documentation using:
dotnet swagger tofile --