I've tried using the various parameters listed for the openapi2csclient command that sound like they should allow customising the class names for the DTO classes (eg. /TypeNameGenerator, /PropertyNameGeneratorType and even /TemplateDirectory), but none of them seem to work in this scenario and seem to be ignored (I also tried running nswag.exe manually from the command line adding these extra parameters.
Looking at the source code, it doesn't seem like these are even used in this code path.
I'm using NSwag.MSBuild (via NSwag.ApiDescription.Client).
I've tried using the various parameters listed for the
openapi2csclient
command that sound like they should allow customising the class names for the DTO classes (eg./TypeNameGenerator
,/PropertyNameGeneratorType
and even/TemplateDirectory
), but none of them seem to work in this scenario and seem to be ignored (I also tried runningnswag.exe
manually from the command line adding these extra parameters.Looking at the source code, it doesn't seem like these are even used in this code path.
Is there a way of doing this?