Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Swagger tools for documenting API's built on ASP.NET Core
Swashbuckle version 6.4 and 6.5 (didn't test others). 1. Generate a new minimal api project 2. add `await app.Services.GetRequiredService().GetSwaggerAsync("v1");` just before `app.Run()` in program.cs 3. Weather api does not show...
### Describe the bug We have Verify tests which compares the swagger files and notifies us if something has changed per accident. Now we have the issue because of the...
### Describe the bug According to the documentation here: https://github.com/domaindrivendev/Swashbuckle.AspNetCore?tab=readme-ov-file#include-descriptions-from-xml-comments `IncludeXmlComments` should accept Assembly as a parameter but in the latest version 6.6.2 as of this writing isn't exposing this...
I've just recently upgraded from Swashbuckle.AspNetCore.SwaggerGen 4.0.1 to 6.4.0, and now the Newtonsoft Json attributes ([JsonProperty(...)] and the like) are being ignored. In particular, ```[JsonProperty(PropertyName = "key")]``` is used all...
Ampersand in XML--Value not rendered correctly For remarks this bug was fixed with #1151 BUT for the ``-Tag the problem still exists `/// ` `/// KeyValuePair List as HTML-FORM-POST-Values (application/x-www-form-urlencoded)`...
I set up SwaggerGen with Newtonsoft support like this: ```cs builder.Services.AddSwaggerGen(options => { string filename = $"{Assembly.GetExecutingAssembly().GetName().Name}.xml"; options.IncludeXmlComments(Path.Combine(AppContext.BaseDirectory, filename)); }); builder.Services.AddSwaggerGenNewtonsoftSupport(); ``` Newtonsoft is configured like this: ```cs builder.Services.AddControllers().AddNewtonsoftJson(options =>...
I use Version 6.2.3.0 I want to use minimal API with swagger, but if i use the "HttpContext" in the parameter-list, the endpoint is not showing in the swagger-result (json...
### Describe the bug I'm trying to change the response type for bad request responses. However, when `ProducesResponseType` attribute has a specific `Content-Type` value, the model schema is suppressed from...
### Describe the bug Starting from version 6.7.2, `MemberInfoExtensions.IsDictionaryValueNonNullable` contains a bug that throws an exception when the declaring type of a class property that is assignable to `Dictionary{TKey,TValue}` has...
### Describe the bug the example api documentation ``` /// My work api /// /// /// Details Title /// /// { /// "Prop1":1, /// "Prop2":[] /// } /// /// ///...