NSwag icon indicating copy to clipboard operation
NSwag copied to clipboard

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.

Results 480 NSwag issues
Sort by recently updated
recently updated
newest added

I wanted a way to add swagger plugins through NSwag. Changed the signature of GetCustomScriptHtml to allow reuse. Added setting for plugin with name and script path. Script must be...

I wanted my NSwag swagger to use a plugin for hierarchical tags to properly visualize several levels in the API structure and domain and found the perfect Swagger Plugin for...

With a model that has a property that is hidden using ShouldSerialize, e.g:- ``` public class TestModel { public bool Foo { get; set; } public bool Bar { get;...

type: question

Related: #1914 When using multiple Swagger Documents with UI3 on ASP.NET OWIN, the default implementation of TransformToExternalPath results in all references to swagger.json to be unresolved. For example: ``` C#...

type: enhancement
project: NSwag.AspNetCore

When using Nested Groups in minimal api's like below ``` var root = app.MapGroup("/first/{param1}") .RequireAuthorization(); root.MapGroup("second") .MapGet("{param2}", IResult(string param2) => TypedResults.Ok(param2)); ``` the swagger is generating a route of `/first//second/{param2}`...

I've noticed that since v11.20, I've had a regression in one of my projects: Using multiple `[ProducesResponseType]` attributes does no longer produce multiple schemas. While upgrading to 11.20, I've also...

type: question
project: NSwag.AspNetCore

NSwag C# client generator creates a class for every schema in OpenAPI documentation. This prevents implementing a generic exception handler based on MyException as ProblemDetails is a different class for...

When request body (POST, PUT, PATCH) is empty, NSWag generates a string content as following: ``` c# request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json;odata.metadata=minimal;odata.streaming=true"); ``` Empty string is not valid json...

I am implementing an operation processor that adds documentation for the `429 Too Many Requests` response to every endpoint in my API - obviously not something you want to have...

Fixes #2122 This MR adds support for `$ref` in `requestBody`, as well as `requestBodies` in `components`. Since the existing implementation does not attempt to do cross-updates between `OpenApiRequestBody` and a...