Created by: ackintosh
PR checklist
-
Read the contribution guidelines. -
Ran the shell script under ./bin/
to update Petstore sample so that CIs can verify the change. (For instance, only need to run./bin/{LANG}-petstore.sh
and./bin/security/{LANG}-petstore.sh
if updating the {LANG} (e.g. php, ruby, python, etc) code generator or {LANG} client's mustache templates). Windows batch files can be found in.\bin\windows\
. -
Filed the PR against the correct branch: master
,3.1.x
,4.0.x
. Default:master
. -
Copied the technical committee to review the pull request if your PR is targeting a particular programming language.
Description of the PR
Related issue: https://github.com/OpenAPITools/openapi-generator/issues/34#issuecomment-401512523
This PR adds following message on generating the Node.js server.
$ bin/nodejs-petstore-server.sh
# START SCRIPT: bin/nodejs-petstore-server.sh
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256M; support was removed in 8.0
[main] WARN o.o.c.languages.NodeJSServerCodegen -
=======================================================================================
Currently, Node.js server doesn't work as its dependency doesn't support OpenAPI Spec3.
For further details, see https://github.com/OpenAPITools/openapi-generator/issues/34
=======================================================================================
[main] INFO o.o.codegen.DefaultCodegen - Skipped overwriting index.js as the file already exists in /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs//index.js
[main] INFO o.o.codegen.DefaultCodegen - Skipped overwriting package.json as the file already exists in /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs//package.json
[main] INFO o.o.codegen.DefaultCodegen - Skipped overwriting README.md as the file already exists in /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs//README.md
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.DefaultCodegen - Multiple MediaTypes found, using only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.DefaultCodegen - Multiple MediaTypes found, using only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] WARN o.o.codegen.utils.ModelUtils - Multiple schemas found, returning only the first one
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/service/PetService.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/controllers/Pet.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/service/StoreService.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/controllers/Store.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/service/UserService.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/controllers/User.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/utils/writer.js
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/api/openapi.yaml
[main] INFO o.o.codegen.AbstractGenerator - writing file /Users/akihito1/src/github.com/ackintosh/openapi-generator-1/samples/server/petstore/nodejs/.openapi-generator/VERSION