forked from loafle/openapi-generator-original
committed by
wing328
parent
f00e6b349e
commit
bca35f6645
@@ -106,39 +106,33 @@ public class JavaPlayFrameworkCodegen extends AbstractJavaCodegen implements Bea
|
||||
|
||||
if (additionalProperties.containsKey(CONTROLLER_ONLY)) {
|
||||
this.setControllerOnly(convertPropertyToBoolean(CONTROLLER_ONLY));
|
||||
} else {
|
||||
writePropertyBack(CONTROLLER_ONLY, controllerOnly);
|
||||
}
|
||||
writePropertyBack(CONTROLLER_ONLY, controllerOnly);
|
||||
|
||||
if (additionalProperties.containsKey(USE_BEANVALIDATION)) {
|
||||
this.setUseBeanValidation(convertPropertyToBoolean(USE_BEANVALIDATION));
|
||||
} else {
|
||||
writePropertyBack(USE_BEANVALIDATION, useBeanValidation);
|
||||
}
|
||||
writePropertyBack(USE_BEANVALIDATION, useBeanValidation);
|
||||
|
||||
if (additionalProperties.containsKey(USE_INTERFACES)) {
|
||||
this.setUseInterfaces(convertPropertyToBoolean(USE_INTERFACES));
|
||||
} else {
|
||||
writePropertyBack(USE_INTERFACES, useInterfaces);
|
||||
}
|
||||
writePropertyBack(USE_INTERFACES, useInterfaces);
|
||||
|
||||
if (additionalProperties.containsKey(HANDLE_EXCEPTIONS)) {
|
||||
this.setHandleExceptions(convertPropertyToBoolean(HANDLE_EXCEPTIONS));
|
||||
} else {
|
||||
writePropertyBack(HANDLE_EXCEPTIONS, handleExceptions);
|
||||
}
|
||||
writePropertyBack(HANDLE_EXCEPTIONS, handleExceptions);
|
||||
|
||||
if (additionalProperties.containsKey(WRAP_CALLS)) {
|
||||
this.setWrapCalls(convertPropertyToBoolean(WRAP_CALLS));
|
||||
} else {
|
||||
writePropertyBack(WRAP_CALLS, wrapCalls);
|
||||
}
|
||||
writePropertyBack(WRAP_CALLS, wrapCalls);
|
||||
|
||||
if (additionalProperties.containsKey(USE_SWAGGER_UI)) {
|
||||
this.setUseSwaggerUI(convertPropertyToBoolean(USE_SWAGGER_UI));
|
||||
} else {
|
||||
writePropertyBack(USE_SWAGGER_UI, useSwaggerUI);
|
||||
}
|
||||
writePropertyBack(USE_SWAGGER_UI, useSwaggerUI);
|
||||
|
||||
//We don't use annotation anymore
|
||||
importMapping.remove("ApiModelProperty");
|
||||
@@ -179,9 +173,9 @@ public class JavaPlayFrameworkCodegen extends AbstractJavaCodegen implements Bea
|
||||
apiTemplateFiles.put("newApiController.mustache", "Controller.java");
|
||||
if (!this.controllerOnly) {
|
||||
apiTemplateFiles.put("newApi.mustache", "ControllerImp.java");
|
||||
}
|
||||
if (this.useInterfaces) {
|
||||
apiTemplateFiles.put("newApiInterface.mustache", "ControllerImpInterface.java");
|
||||
if (this.useInterfaces) {
|
||||
apiTemplateFiles.put("newApiInterface.mustache", "ControllerImpInterface.java");
|
||||
}
|
||||
}
|
||||
|
||||
additionalProperties.put("javaVersion", "1.8");
|
||||
|
||||
Reference in New Issue
Block a user