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,8 +263,8 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
||||
|
||||
if (swagger.getInfo() != null) {
|
||||
Info info = swagger.getInfo();
|
||||
if (projectName == null && info.getTitle() != null) {
|
||||
// when projectName is not specified, generate it from info.title
|
||||
if (info.getTitle() != null) {
|
||||
// when info.title is defined, use it for projectName
|
||||
// used in package.json
|
||||
projectName = dashize(info.getTitle());
|
||||
this.additionalProperties.put("projectName", projectName);
|
||||
|
Loading…
Reference in New Issue
Block a user