Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Swagger tools for documenting API's built on ASP.NET Core
I am having the following exception throw after upgrading to .Net8: System.InvalidOperationException: A suitable constructor for type 'Swashbuckle.AspNetCore.SwaggerGen.XmlCommentsParameterFilter' could not be located. Ensure the type is concrete and all parameters...
Version 6.1.1 I noticed a bug where the examples in our swagger.json files that were generated did not include correctly formatted values for the data type "double". Instead of being...
I want to create a WebSocket endpoint. If I use just `[Route]` attribute, Swagger throws an error. Currently [ASP.NET does not provide `[HttpConnect]` attribute.](https://github.com/dotnet/aspnetcore/issues/52380), so I had to declare it...
This works: ```c# [HttpGet("{id}")] public Task GetAsync(long id, CancellationToken cancellationToken = default) => _connectionproductservice.GetAsync(id, cancellationToken); ``` Request URL: `https://localhost:5001/api/v1/foo/907306994157748224` This doesn't: ```c# [HttpGet("{id}")] public Task GetAsync(ObjectId id, CancellationToken cancellationToken =...
We ~~do~~ did a bit of heavy lifting in the constructor in classes which implement IDocumentFilter and IOperationFilter. To our surprise the constructor seems to be called very often on...
It fixes an issue found while analyzing #2655 I am hesitant to fix the other issue found (When there are 2 methods on a Controller with the same number of...
Swashbuckle.AspNetCore version: 6.2.3 .NET Version: 6.0.100-rc.2.21505.57 My code: ```cs var builder = WebApplication.CreateBuilder(args); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); var app = builder.Build(); app.MapSwagger(); app.UseSwaggerUI(); app.MapGet("/a", () => "Hello world"); // this one exist...
### Is your feature request related to a specific problem? Or an existing feature? I need to provide additional configuration options into the assembly when using Swashbuckle.AspNetCore.Cli, on each execution....
Introducing .NET 7 `Results` (https://learn.microsoft.com/en-us/aspnet/core/web-api/action-return-types#resultt-type) Microsoft promised that > All the [[ProducesResponseType]](https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.producesresponsetypeattribute) attribute's can be excluded, since the HttpResult implementation contributes automatically to the endpoint metadata. But if I write...
Swashbuckle.AspNetCore 6.5.0 .net 7.0 Project.csproj ``` true ``` Controller class: ```csharp [ApiController] [Route("api/[controller]")] public class MyController : MyBaseController { public MyController(MyBuzService service):base(service){} /// /// Find by single id /// ///...