We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 08a7523 + 069db3e commit 653630dCopy full SHA for 653630d
src/main/java/io/swagger/codegen/v3/generators/java/JavaJAXRSSpecServerCodegen.java
@@ -82,8 +82,13 @@ public void processOpts() {
82
83
modelTemplateFiles.put("model.mustache", ".java");
84
apiTemplateFiles.put("api.mustache", ".java");
85
- apiPackage = "io.swagger.api";
86
- modelPackage = "io.swagger.model";
+
+ if (StringUtils.isEmpty(apiPackage)) {
87
+ apiPackage = "io.swagger.api";
88
+ }
89
+ if (StringUtils.isEmpty(modelPackage)) {
90
+ modelPackage = "io.swagger.model";
91
92
93
apiTestTemplateFiles.clear(); // TODO: add api test template
94
modelTestTemplateFiles.clear(); // TODO: add model test template
0 commit comments