NSwag
NSwag copied to clipboard
The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
NSwag.AspNetCore `14.0.8` Repo for reproduction: https://github.com/varganatt/NSwagRepro/blob/master/NSwagRepro.csproj Settings: [nswag.json](https://github.com/varganatt/NSwagRepro/blob/master/nswag.json) When you have a type that contains nested data, and generate both TypeScript classes and interfaces, the interfaces reference nested class data....
It seems that if generics are used in the output than our swagger generatoris adding backticks to the swagger json definition.  This breaks typescript generation. 
Either I'm doing something wrong or something doesn't work correctly: as soon as the internal second link for aggregation appears in the secondary file, the generator stops finding it. That...
When generating C# client code with the NSwag command line toolchain 13.9.2 Netcore31 from root.yaml: ``` openapi: 3.0.2 paths: /test: $ref: './path.yaml#/paths/test' ``` path.yaml: ``` paths: test: get: requestBody: content:...
JSON.parse will throw on any input that isn't a string. Interceptors may change the data to return as a valid JS object/array/etc even if the client instance was controlled enough...
I recently switched from using `Fetch` to `Axios` so that I could use interceptors and I noticed that my reviver function that I'm using to parse date strings into Date...
Our project has some simple class based generic attribute that will inject the boiler plate code for adding a property to a class. ``` [Property("LookupList")] public partial class LookupListInfo {...
This is a simplified OpenAPI spec to illustrate the problem. ````yaml openapi: 3.0.1 info: title: FirmwareService version: '1.0' paths: /api/Firmware/{deviceType}: get: tags: - Firmware operationId: getFirmware description: Get firmware. parameters:...
My application is seeing intermittent build failure after being migrated to .NET 8.0 with NSwag.MSBuild upgraded to 14.1.0. So far we have been seeing the error only when the application...
after upgrading NSwag from 13 to 14 started to get error that cant generate the doc ``` System.InvalidOperationException: Could not find the JSON path of a referenced schema: Manually referenced...