Our TypeScript client is created from a swagger interface using NSwag.
The resulting client code typically looks like this:
client.EndPointFoo(arg1, arg2, arg3, ...)
However, we encounter issues when NSwag changes the order of arguments in response to modifications in the Swagger interface. Sometimes, the compiler fails to catch these problems, especially when the parameters are of the same type, leading to runtime errors.
I am interested in generating the client with named properties instead, like so:
client.EndPointFoo(
property1: arg1,
property2: arg2,
property3: arg3,
...)
Is there a way to achieve this without creating a custom Liquid template? Or should I create my own template for this purpose?