Skip to content

Commit 4aea7fd

Browse files
committed
set handlebars as default template engine.
1 parent c9c9505 commit 4aea7fd

File tree

1 file changed

+3
-3
lines changed
  • modules/swagger-codegen-cli/src/main/java/io/swagger/codegen/v3/cli/cmd

1 file changed

+3
-3
lines changed

modules/swagger-codegen-cli/src/main/java/io/swagger/codegen/v3/cli/cmd/Generate.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -324,10 +324,10 @@ public void run() {
324324
configurator.setCodegenArguments(codegenArguments);
325325
}
326326

327-
if (CodegenConstants.HANDLEBARS_TEMPLATE_ENGINE.equalsIgnoreCase(templateEngine)) {
328-
additionalProperties.add(String.format("%s=%s", CodegenConstants.TEMPLATE_ENGINE, CodegenConstants.HANDLEBARS_TEMPLATE_ENGINE));
329-
} else {
327+
if (CodegenConstants.MUSTACHE_TEMPLATE_ENGINE.equalsIgnoreCase(templateEngine)) {
330328
additionalProperties.add(String.format("%s=%s", CodegenConstants.TEMPLATE_ENGINE, CodegenConstants.MUSTACHE_TEMPLATE_ENGINE));
329+
} else {
330+
additionalProperties.add(String.format("%s=%s", CodegenConstants.TEMPLATE_ENGINE, CodegenConstants.HANDLEBARS_TEMPLATE_ENGINE));
331331
}
332332

333333
applySystemPropertiesKvpList(systemProperties, configurator);

0 commit comments

Comments
 (0)