swagger-api/swagger-codegen

[java] Resource structure customization for mustache template

Open

#2047 aperta il 5 feb 2016

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)HTML (5474 fork)batch import
Enhancement: Generalhelp wanted

Metriche repository

Star
 (12.701 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Hi, I am using Swagger codegen 2.1.5 and generating client code for different languages. I am setting customized mustache from supporting file by extending swagger. As per my observationby default swagger looks for mustache template in resource/[language specific] folder. But if I change resource folder structure like resource/mustacheTemplates/[language specific] then it is failing to find the files. So to resolve this issues we required to override getFullTemplateFile method from DefaultGenerator to provide customized resource paths.

Is it possible to provide customized resource path from any additional property? It will save the efforts require to override getFullTemplateFile method.

Guida contributor