added model package to templates

This commit is contained in:
Tony Tam 2014-09-19 14:05:31 -07:00
parent 24268661af
commit 504e1b28c5
2 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ public class DefaultGenerator implements Generator {
List<CodegenOperation> ops = paths.get(tag);
operations = processOperations(config, tag, ops);
operations.put("modelPackage", config.modelPackage());
operations.putAll(config.additionalProperties());
operations.put("baseName", tag);
for(String templateName : config.apiTemplateFiles().keySet()) {

View File

@ -1,5 +1,7 @@
package {{package}};
import {{modelPackage}}.*;
import com.wordnik.swagger.annotations.*;
{{#imports}}import {{import}};