I am using swagger-codegen
to generate my client-side C# classes. It does the job, but there are a few things I'd like to customize:
1) Most importantly, how I tell it which namespace, or perhaps base namespace, to use? Right now all of the genned classes have IO.Swagger.Model
namespace, how do I change that?
2) All of my generated models start with I... as in ICustomer... is there any way to autostrip that first I if the class name starts with 2 caps, and the first letter is an I?
3) If 2 can be done, is there a way to have it append a : IWhatever
? So if it's trying to gen ICustomer
, I'd like to see:
public class Customer : ICustomer
Can this be done?
4) For my last question, I am using this command-line:
java -jar swagger-codegen-cli.jar generate
-i http://localhost:57772/MyService/swagger/v1/swagger.json
-l csharp -o C:/Code/AutoGenned/MyService
The problem is that it adds this to the path: src\main\csharp\IO\Swagger
Is there a way for me to not have this added to the path?
5) Finally, and least importantly, it gens 4 folders: Api
, Client
, Model
, and Properties
. Is there a way to only gen the Client
and the Model
folders?