Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Swagger tools for documenting API's built on ASP.NET Core
After adding OData with [example](https://learn.microsoft.com/en-us/odata/webapi-8/getting-started?tabs=net60%2Cvisual-studio-2022%2Cvisual-studio) configurations, and having standard REST APIs, Swagger shows OData medi types for each API and NSwag generates OData media types for each standard REST API....
**Request** Similar to the MapSwagger extension method in SwaggerBuilderExtensions https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/b7cf75e7905050305b115dd96640ddd6e74c7ac9/src/Swashbuckle.AspNetCore.Swagger/DependencyInjection/SwaggerBuilderExtensions.cs#L41-L42 Can we have a MapSwaggerUI added to SwaggerUIBuilderExtensions that works on IEndpointRouteBuilder ?https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/b7cf75e7905050305b115dd96640ddd6e74c7ac9/src/Swashbuckle.AspNetCore.SwaggerUI/SwaggerUIBuilderExtensions.cs#L10 The scenarios enable by this are described...
For a API store, we need to have specific extension information in our (yaml) document. I have added this information via a documents filter, however, because it also needs anchors...
System.Text.Json supports [(de)serialization of payloads to fields](https://learn.microsoft.com/dotnet/standard/serialization/system-text-json/fields) since [.NET 5](https://github.com/dotnet/runtime/issues/876). We should consider if this is something we want to support in Swashbuckle, and if so, audit any other functionality...
I _think_ this may be a regression of #2319, but in investigating [this stackoverflow question](https://stackoverflow.com/q/77834867/634824), I found that `DateOnly` fields are still not showing correctly in the Swagger UI in...
For `net7.0` and later we can look to leverage the [Regex source generator]() to improve performance. For example: https://github.com/domaindrivendev/Swashbuckle.AspNetCore/blob/830c5a6f7468bce6b716d84c034a258dbbcbfe98/src/Swashbuckle.AspNetCore.SwaggerGen/XmlComments/XmlCommentsTextHelper.cs#L10-L13
I am using Swashbuckle.AspNetCore version 6.5.0. I have created a class inherited from JsonSerializerContext to use System.Text.Json source generator, and added the context at startup: ```csharp builder.Services.AddControllers() .AddJsonOptions(options => {...
**Swashbuckle.AspNetCore Version="6.1.4"** netcoreapp3.1 Microsoft.AspNetCore.OData Version=7.5.8 in case one of your actions in a controller contains ODataQueryOptions with **[FromQuery]** swagger stuck and not able to load the swagger.json. * removing the...
Using version 6.2.3 I have been trying to set the response type of one of my endpoints to "application/pdf". It works, sort of, when using the ProducesAttribute, like in the...
https://github.com/domaindrivendev/Swashbuckle.AspNetCore/issues/2771#issuecomment-2053952428 A lot of issues seem to be reproduced with ASP.NET Core's Weather Forecast app from the project templates. We should add a copy of it (from .NET 8 most...