C#C
C#4y ago
Anton

NSwag openapi2tsclient keep property names

The generator here makes the names camel case by default and does a mapping.
this.country = _data["Country"];
this.city = _data["City"];
this.address = _data["Address"];
this.latitude = _data["Latitude"];
this.longitude = _data["Longitude"];

How can I make the ts names be pascal case? All I know is that there's a PropertyNameGeneratorType parameter which takes a string, but I couldn't find any documentation on what values it can take.
Was this page helpful?