forked from loafle/openapi-generator-original
show warning message for nodejs server only (#481)
This commit is contained in:
parent
a714bf4720
commit
7404ecb11e
@ -57,18 +57,6 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
public NodeJSServerCodegen() {
|
public NodeJSServerCodegen() {
|
||||||
super();
|
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
|
// set the output folder here
|
||||||
outputFolder = "generated-code/nodejs";
|
outputFolder = "generated-code/nodejs";
|
||||||
|
|
||||||
@ -310,6 +298,18 @@ public class NodeJSServerCodegen extends DefaultCodegen implements CodegenConfig
|
|||||||
public void processOpts() {
|
public void processOpts() {
|
||||||
super.processOpts();
|
super.processOpts();
|
||||||
|
|
||||||
|
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());
|
||||||
|
|
||||||
if (additionalProperties.containsKey(GOOGLE_CLOUD_FUNCTIONS)) {
|
if (additionalProperties.containsKey(GOOGLE_CLOUD_FUNCTIONS)) {
|
||||||
setGoogleCloudFunctions(
|
setGoogleCloudFunctions(
|
||||||
Boolean.valueOf(additionalProperties.get(GOOGLE_CLOUD_FUNCTIONS).toString()));
|
Boolean.valueOf(additionalProperties.get(GOOGLE_CLOUD_FUNCTIONS).toString()));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user