This sample project displays different ways to enhance the Swagger docs for an ASP.NET Core API project. Browse the code or run the project to see the Swagger enhancements.
See my post Documenting ASP.NET Core APIs with Swagger for additional information and helpful hints.