swagger-api/swagger-codegen

[java] Resource structure customization for mustache template

開放

#2,047 建立於 2016年2月5日

 (3 則留言) (0 個反應) (0 位負責人)HTML (5,474 個分叉)batch import
Enhancement: Generalhelp wanted

倉庫指標

星標
 (12,701 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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.

貢獻者指南