How to pass a TypeNameGenerator through NSwag (v14.0.0, .NET7.0) CLI? #4709
Unanswered
GillesNorce
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My purpose is to automate the C# base classes generation on build using NSwag CLI
My problem is that I need to filter type names of the input
swagger.json
file (which are fully qualified, for namespace collision reasons). I managed to solve this problem, by programmatically defining theCustomTypeNameGenerator
and passing it to theCSharpClientGeneratorSettings
.Problem is that I don't understand how to pass it through the
nswag.json
configuration file. See below commented the 2 attempts I made to modify it:Any guidance would be highly appreciated, thanks!
Beta Was this translation helpful? Give feedback.
All reactions