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

On version v14.1.0. When choose generate typescript(v4.3) DTO interfaces with axios. The response processor will throw exception. I'm using the debugger, found that the generated client try to use JSON.parse...

With a DTO using a base class and a derived class, only base class properties are instantiated in the constructor, leaving properties of the subclass `undefined`. API & trivial class...

Currently, additionalProperties are generated like a dictionary, regardless of the `"style" = "deepObject"` #### example parameter from openapi spec ```json { "name": "attributes", "in": "query", "required": false, "explode": true, "style":...

Hello, running the latest version of .NET and the latest version of NSwag. I have an endpoint that looks like this: ```csharp group.MapGet("{id:int}/customer-relationship-path", ( int id, [FromQuery] CustomerRelationType relationshipType, IMediator...

The generated JsonInheritanceConverter has two NRT warnings that could be surpressed with #pragma to prevent build warnings: #pragma warning disable 8602 // Disable "CS8602 Dereference of a possibly null reference"...

I have a set of APIs that's available under `/api/v1/` route, and a set of internal APIs (stuff that makes the admin panel tick and such) under `/admin/api/v1/` route. I...

System.Text.Json.JsonSerializer is not safe to be trimmed by default, requirement to be AOT compatible. See: https://learn.microsoft.com/en-us/dotnet/standard/serialization/system-text-json/source-generation

## Problem Description In my OpenAPI spec I have a response that is an array of `oneOf`s: ```json "schema": { "type": "array", "items": { "oneOf": [ { "$ref": "#/components/schemas/BaseSomething" },...

I'm trying to generate OpenAPI document from .NET Core 2.2 Assembly files. **Setup** I've installed NSwag studio so "nswag" command is directly available from Command prompt. I've also built using...

Running the command to generate the C# client code from the open-API v3 json file from [the official PagerDuty url](https://raw.githubusercontent.com/PagerDuty/api-schema/main/reference/REST/openapiv3.json) results in an unhandled exception by the `nswag` command and...