Closed mcoenen1994 closed 4 years ago
@mcoenen1994 Hey! Thank you for reporting this issue! Would it be possible for you to create a repository with the code in place so we can more easily extract the OAS (i.e. run npm i
and npm start
and go directly to http://localhost:3000/openapi.json)? Or equally good, would it be possible for you to get the OAS and put it in a GitHub gist for us? That way, we can get the exact version of the OAS that is causing problems.
It would also be nice to include the exact version of LoopBack and OtG that you are using.
Hi @Alan-Cha,
Thanks for the fast response. I created a repo.
Here are also the versions of lb4 and OtG:
@loopback/cli version: 2.6.0
@loopback/* dependencies:
- @loopback/authentication: ^4.2.3
- @loopback/boot: ^2.2.0
- @loopback/build: ^5.3.1
- @loopback/context: ^3.7.0
- @loopback/core: ^2.5.0
- @loopback/metadata: ^2.1.3
- @loopback/openapi-spec-builder: ^2.1.3
- @loopback/openapi-v3: ^3.3.1
- @loopback/repository-json-schema: ^2.4.0
- @loopback/repository: ^2.4.0
- @loopback/rest: ^4.0.0
- @loopback/testlab: ^3.1.3
- @loopback/docs: ^3.7.0
- @loopback/example-hello-world: ^2.0.8
- @loopback/example-log-extension: ^2.0.8
- @loopback/example-rpc-server: ^2.0.8
- @loopback/example-todo: ^3.3.0
- @loopback/example-soap-calculator: ^2.1.1
- @loopback/service-proxy: ^2.2.0
- @loopback/http-caching-proxy: ^2.1.3
- @loopback/http-server: ^2.1.3
- @loopback/example-todo-list: ^3.1.1
- @loopback/dist-util: ^0.4.0
- @loopback/rest-explorer: ^2.2.0
- @loopback/eslint-config: ^6.0.6
- @loopback/example-express-composition: ^2.1.1
- @loopback/example-greeter-extension: ^2.0.8
- @loopback/booter-lb3app: ^2.1.3
- @loopback/example-lb3-application: ^2.0.8
- @loopback/example-greeting-app: ^2.0.8
- @loopback/example-context: ^2.0.8
- @loopback/repository-tests: ^0.12.3
- @loopback/extension-health: ^0.4.3
- @loopback/authorization: ^0.5.8
- @loopback/rest-crud: ^0.8.3
- @loopback/security: ^0.2.8
- @loopback/authentication-passport: ^2.1.3
- @loopback/example-metrics-prometheus: ^0.2.8
- @loopback/extension-metrics: ^0.3.3
- @loopback/model-api-builder: ^2.1.3
- @loopback/extension-logging: ^0.3.3
- @loopback/example-access-control-migration: ^1.2.1
- @loopback/example-file-transfer: ^1.2.5
- @loopback/example-rest-crud: ^1.2.1
- @loopback/apiconnect: ^0.3.1
- @loopback/example-validation-app: ^1.3.1
- @loopback/cron: ^0.2.3
- @loopback/example-multi-tenancy: ^0.2.1
- @loopback/example-passport-login: ^1.3.0
- @loopback/authentication-jwt: ^0.2.1
- @loopback/context-explorer: ^0.1.3
- @loopback/express: ^1.1.0
$ openapi-to-graphql -V
2.1.0
Hello, i have the exact same problem.
the same here 😞
@mcoenen1994 @yassinebenameur @Geril Sorry for the long wait. I couldn't find any time at all to work on OtG in the last for weeks. I believe I have finally resolved this issue however. Please update to v2.1.1
and let me know if this problem still persists.
@mcoenen1994 Your repo was instrumental to debugging this problem. Thank you very much for creating it!
Fully working now. Thanks for the fix and keep up the good work!
Works for me as well! Thanks!
Describe the bug After creating a new project with the loopback 4 cli, I try to create a graphql schema from the Openapi json file. However, it fails with following error:
To Reproduce Steps to reproduce the behavior:
Expected behavior Expect a Graphql schema of this because I did not change any code of the model, repository or controller. It should at least work with a generated project to start developing.
Code
If this issue is missing some information, please let me know!
Thanks, Maikel