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

Reference spec: https://swagger.io/docs/specification/data-models/data-types/#numbers When a Decimal is defined in C#, NSwag generates a type: number, format: decimal in the swagger.json, however, this isn't a valid combination (according to the spec)...

1. Open Visual Studio 2022 2. Create a new c# Library project .netstandart20 3. Add a new OpenApi service reference with the following api url: https://eazycollectservices.github.io/EazyCollectAPIv3/swagger.json and c# language selected,...

The following nswag file generates invalid c# code. Line 10229 attempts to return void when the method is declared async Task. [TestProject.nswag.txt](https://github.com/RicoSuter/NSwag/files/8982685/TestProject.nswag.txt) Note: The swagger spec in this file came...

I am raising this as it follow on from https://github.com/RicoSuter/NSwag/issues/3529, which I have determined in slightly different. I'm trying to define a swagger file that will allow for URLs for...

Hello, Since version 13.16.0 of Nswag, the following attribute is added to all properties of the generated models when generating the C# clients. ` [System.Text.Json.Serialization.JsonIgnore(Condition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull)]` This causes the...

Hitting localhost:5000 when running locally (tried in windows, linux and macos) produces the proper output, but if packed in a docker container, it hangs on getting the swagger.json file. The...

Client base class decorator is missing from generated code. For the following extension code with the decorated base class "ApiClientBase": ``` import { injectable } from "inversify"; @injectable() export class...

A SwaggerException is generated in the C# client when upgrading from 13.6.2 to 13.7.0 Beware that the entity returned contains types like enums, DateTime?, byte... How can I determine what...

Trying to generate a client based off an external API that we don't have control over, and this is an enum field that's coming back: ``` "BillingCycle": { "format": "int32",...

There a TodoController in My Web API. ![image](https://user-images.githubusercontent.com/9010279/75010626-95133100-54b8-11ea-93f6-fb0889c97077.png) my nswag ![image](https://user-images.githubusercontent.com/9010279/75010720-d0156480-54b8-11ea-96dc-88aa54390ef5.png) I read your code. https://github.com/RicoSuter/NSwag/blob/85ae862fd6d68173a201a79e0ad06e0be2ec5de1/src/NSwag.CodeGeneration/Models/OperationModelBase.cs line 272-276 ``` /// Gets a value indicating whether to wrap the response of...