NSwag
NSwag copied to clipboard
The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
For some reasons, we cannot access redoc.standalone.js from its default URL. `https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js`  And I found that URL is hard-coded in the `NSwag.AspNetCore.ReDoc.index.html` resource. I really hope that could make...
private void SetExceptionFieldValue(Newtonsoft.Json.Linq.JObject jObject, string propertyName, object value, string fieldName, Newtonsoft.Json.Serialization.IContractResolver resolver, Newtonsoft.Json.JsonSerializer serializer) { var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(typeof(System.Exception)).GetDeclaredField(fieldName); var jsonPropertyName = resolver is Newtonsoft.Json.Serialization.DefaultContractResolver ? ((Newtonsoft.Json.Serialization.DefaultContractResolver)resolver).GetResolvedPropertyName(propertyName) : propertyName; foreach...
Hi, I am migrating my app from .net 6.0 to .net 8.0. I have a web api project in my solution which i am serving through orchestrator WebApp. In the...
NET 7 is no longer supported and to aggressively simplify thing, removing the support. NET 6 and 8 still supported.
I'm using NJsonSchema version 10.9.0 and updated Namotion.Reflection to 3.1.0, that causes the following issue at runtime: `"Method not found: 'System.Attribute[] Namotion.Reflection.ContextualType.get_ContextAttributes()'` from method `NJsonSchema.Infrastructure.TypeExtensions.GetDescription(ContextualParameterInfo parameter, IXmlDocsSettings xmlDocsSettings)`
Generate c# clients using restsharp as the client. http://restsharp.org/
This PR adds support for splitting the generated output into multiple, separate files. Tested (and in use) for C#; whether this additionally supports other languages has not been tested. This...
Hi all and thank you for this great tool. Does nswag have a feature to generate a "`bigint`" typescript var in the client proxies if the source property type in...
I am working with an API that generate a specification like this: ``` { "swagger": "2.0", "info": { "version": "v1", "title": "SwaggerTest" }, "host": "localhost:44386", "schemes": [ "https" ], "paths":...
Hi. I use typeStyle as Interface in nswag file. And it generate DTOs fields as Date for dates. but in code it is string. I found this https://github.com/RicoSuter/NSwag/issues/980 topic. Are...