Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use an npm package as a generator #132

Closed
ColinEberhardt opened this issue Nov 29, 2022 · 2 comments · Fixed by #138
Closed

cannot use an npm package as a generator #132

ColinEberhardt opened this issue Nov 29, 2022 · 2 comments · Fixed by #138
Labels
bug Something isn't working forge released

Comments

@ColinEberhardt
Copy link
Collaborator

% openapi-forge forge  https://petstore3.swagger.io/api/v3/openapi.json openapi-forge-typescript -o api

Loading generator from 'openapi-forge-typescript'
cd: no such file or directory: /Users/colineberhardt/.nvm/versions/node/v16.14.2/lib/node_modules/openapi-forge/src/../node_modules/openapi-forge-typescript
Validating generator

---------------------------------------------------

              API generation  FAILED 

---------------------------------------------------

Generator path /Users/colineberhardt/.nvm/versions/node/v16.14.2/lib/node_modules/openapi-forge/src/..\node_modules\openapi-forge-typescript does not exist, check that the path points to a valid generator

---------------------------------------------------
@ColinEberhardt ColinEberhardt added bug Something isn't working forge labels Nov 29, 2022
@jhowlett-scottlogic
Copy link
Contributor

jhowlett-scottlogic commented Nov 30, 2022

Just tested on Windows on a cmd prompt and it worked so from what it looks like there is a '/', '\' mismatch, good old multi-platform support. I developed this feature on a windows machine and that will be the problem.

@github-actions
Copy link

github-actions bot commented Dec 5, 2022

🎉 This issue has been resolved in version 1.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forge released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants