Skip to content

Commit f7775bd

Browse files
committed
updated nodejs templates
1 parent b426101 commit f7775bd

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/resources/handlebars/nodejs/index.mustache

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ var serverPort = {{serverPort}};
88

99
// swaggerRouter configuration
1010
var options = {
11-
controllers: path.join(__dirname, './controllers')
11+
routing: {
12+
controllers: path.join(__dirname, './controllers')
13+
},
1214
};
1315

1416
var expressAppConfig = oas3Tools.expressAppConfig(path.join(__dirname, 'api/openapi.yaml'), options);
15-
expressAppConfig.addValidator();
1617
var app = expressAppConfig.getApp();
1718

1819
// Initialize the Swagger middleware

src/main/resources/handlebars/nodejs/package.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
"connect": "^3.2.0",
2020
{{/googleCloudFunctions}}
2121
"js-yaml": "^3.3.0",
22-
"oas3-tools": "^2.0.2"
22+
"oas3-tools": "^2.2.0"
2323
}
2424
}

0 commit comments

Comments
 (0)