[Node.js] Add a message which notify that the generated server doesn't work (#456)

* Add message which notify that the server doesn't work

* Update samples
This commit is contained in:
Akihito Nakano
2018-07-05 13:25:17 +09:00
committed by William Cheng
parent 00354d3264
commit ef2b372dd3
3 changed files with 371 additions and 357 deletions

View File

@@ -57,6 +57,18 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
public NodeJSServerCodegen() {
super();
StringBuilder message = new StringBuilder();
message.append(System.lineSeparator()).append(System.lineSeparator())
.append("=======================================================================================")
.append(System.lineSeparator())
.append("Currently, Node.js server doesn't work as its dependency doesn't support OpenAPI Spec3.")
.append(System.lineSeparator())
.append("For further details, see https://github.com/OpenAPITools/openapi-generator/issues/34")
.append(System.lineSeparator())
.append("=======================================================================================")
.append(System.lineSeparator()).append(System.lineSeparator());
LOGGER.warn(message.toString());
// set the output folder here
outputFolder = "generated-code/nodejs";

View File

@@ -1 +1 @@
3.0.0-SNAPSHOT
3.1.0-SNAPSHOT

File diff suppressed because it is too large Load Diff