Skip to content

Commit

Permalink
Merge pull request #560 from swagger-api/ticket-76
Browse files Browse the repository at this point in the history
refs #76 - fix modelPackage and apiPackage in jaxrs-spec
  • Loading branch information
frantuma authored Dec 13, 2019
2 parents 08a7523 + 069db3e commit 653630d
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ public void processOpts() {

modelTemplateFiles.put("model.mustache", ".java");
apiTemplateFiles.put("api.mustache", ".java");
apiPackage = "io.swagger.api";
modelPackage = "io.swagger.model";

if (StringUtils.isEmpty(apiPackage)) {
apiPackage = "io.swagger.api";
}
if (StringUtils.isEmpty(modelPackage)) {
modelPackage = "io.swagger.model";
}

apiTestTemplateFiles.clear(); // TODO: add api test template
modelTestTemplateFiles.clear(); // TODO: add model test template
Expand Down

0 comments on commit 653630d

Please sign in to comment.