mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 19:33:55 +00:00
added model package to templates
This commit is contained in:
parent
24268661af
commit
504e1b28c5
@ -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()) {
|
||||
|
@ -1,5 +1,7 @@
|
||||
package {{package}};
|
||||
|
||||
import {{modelPackage}}.*;
|
||||
|
||||
import com.wordnik.swagger.annotations.*;
|
||||
|
||||
{{#imports}}import {{import}};
|
||||
|
Loading…
Reference in New Issue
Block a user