RicoSuter / NSwag

The Swagger/OpenAPI toolchain for .NET, ASP.NET Core and TypeScript.
http://NSwag.org
MIT License
6.67k stars 1.23k forks source link

To the need of liquid templates for a C# client. #4759

Open gilleskern opened 6 months ago

gilleskern commented 6 months ago

G'Day, in one of my projects the list of nswag csharp liquid templates found at this url: https://github.com/RSuter/NSwag/tree/master/src/NSwag.CodeGeneration.CSharp/Templates have been added.

One of the main differences that I can notice after generating the client with or without these templates is the use of the RestResponse object. I am using the NSwag toolchain v13.18.2.0 (NJsonSchema v10.8.0.0 (Newtonsoft.Json v11.0.0.0). I fail at this point to see the need/use for such templates, could you please provide some justification to use/not to use them?

Thanks in advance for your answer.