mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-08 11:23:58 +00:00
Update NodeJSServerCodegen.java
projectName was already defined so never overriden.
This commit is contained in:
parent
6064f32ba5
commit
15676ff72e
@ -263,9 +263,9 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
|
|
||||||
if (swagger.getInfo() != null) {
|
if (swagger.getInfo() != null) {
|
||||||
Info info = swagger.getInfo();
|
Info info = swagger.getInfo();
|
||||||
if (projectName == null && info.getTitle() != null) {
|
if (info.getTitle() != null) {
|
||||||
// when projectName is not specified, generate it from info.title
|
// when info.title is defined, use it for projectName
|
||||||
//used in package.json
|
// used in package.json
|
||||||
projectName = dashize(info.getTitle());
|
projectName = dashize(info.getTitle());
|
||||||
this.additionalProperties.put("projectName", projectName);
|
this.additionalProperties.put("projectName", projectName);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user