Open azimuthdeveloper opened 5 years ago
This is by design to have the property names in line with javascript/typescript naming rules.. But you can provide a IPropertyNameGenerator to change that (but not via CLI)
Okay cool, so how would someone do that? How would I provide a IPropertyNameGenerator to achieve the casing that I'm after? Thanks for the help :)
NSwagStudio (latest) is producing a typescript client with camel cased properties. I'm migrating from hand-typed classes and clients to nswag generated clients and this is making a lot of stuff break.
I'm generating my client classes from a Swagger Specification. Changing 'Type Style' from Class to Interface fixes the camelcasing issue, but also leaves out other details from the client class.
Is there any way to generate a TS client that doesn't automatically camel case the properties? It seems weird that there isn't an option for this in the GUI.