Skip to content

Commit

Permalink
fixed generation error for akka scala
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Oct 4, 2018
1 parent 5d7dc24 commit db90668
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,6 @@ public String escapeUnsafeCharacters(String input) {
return input.replace("*/", "*_/").replace("/*", "/_*");
}

@Override
public TemplateEngine getTemplateEngine() {
return new MustacheTemplateEngine(this);
}

protected String formatIdentifier(String name, boolean capitalized) {
String identifier = camelize(sanitizeName(name), true);
if (capitalized) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ public AkkaHttpServerCodegen() {
apiPackage = "io.swagger.server.api";
modelPackage = "io.swagger.server.model";

//TEMPLATING
embeddedTemplateDir = templateDir = getTemplateDir();

apiTemplateFiles.put("api.mustache", ".scala");
modelTemplateFiles.put("model.mustache", ".scala");

Expand All @@ -58,6 +55,12 @@ public AkkaHttpServerCodegen() {

}

@Override
public void processOpts() {
super.processOpts();
embeddedTemplateDir = templateDir = getTemplateDir();
}

@Override
public Map<String, Object> postProcessOperations(Map<String, Object> objs) {
return setComplexTypes(objs);
Expand Down

0 comments on commit db90668

Please sign in to comment.