From 1769a325a7dba4e0a5f45044b2a8240b137ebabb Mon Sep 17 00:00:00 2001 From: William Cheng Date: Fri, 6 Jul 2018 15:43:15 +0800 Subject: [PATCH] show warning message for nodejs server only --- .../languages/NodeJSServerCodegen.java | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NodeJSServerCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NodeJSServerCodegen.java index 9a716b841056..662b13d3a92a 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NodeJSServerCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/NodeJSServerCodegen.java @@ -57,18 +57,6 @@ 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"; @@ -310,6 +298,18 @@ private static List> sortOperationsByPath(List