Skip to content

Commit df354b8

Browse files
author
Carlo Carraro
committed
cherry pick swagger-api#8049
1 parent 4bdaf37 commit df354b8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/ErlangServerCodegen.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,15 @@ public ErlangServerCodegen() {
110110
*/
111111
additionalProperties.put("apiVersion", apiVersion);
112112
additionalProperties.put("apiPath", apiPath);
113+
}
114+
115+
@Override
116+
public void processOpts() {
117+
super.processOpts();
118+
119+
if (additionalProperties.containsKey(CodegenConstants.PACKAGE_NAME)) {
120+
setPackageName((String) additionalProperties.get(CodegenConstants.PACKAGE_NAME));
121+
}
113122
/**
114123
* Supporting Files. You can write single files for the generator with the
115124
* entire object tree available. If the input file has a suffix of `.mustache

0 commit comments

Comments
 (0)