Hello,
I am new to using swagger code gen tool. I understand that I can write new templates and have files generated according to the template. I have written the template and added it to the templateDir. But, I am not sure how to implement the code to generate charp files according to the template I have written.
Taking the api.mustache and model.mustache as examples.
// We are adding the template files to ah hash map , like this:
this.modelTemplatesFiles.put("model.mustache",".cs");
this.apiTemplatesFiles.put("api.mustache",".cs");
These two lines seem to generate the api and model cs files in the appropriate package. So, do I have to create a new hash map for my new template and then what all other methods should I be adding to make the auto-generation work?
If you can point me to the methods in the code, that would be helpful
Thanks