-
-
Notifications
You must be signed in to change notification settings - Fork 136
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
feat(custom generators): added '--custom-generator' parameter fixes #237 #335
feat(custom generators): added '--custom-generator' parameter fixes #237 #335
Conversation
Does it work on your machine? I tried:
I get |
This works:
The difference is simply that I also tested using yarn openapi-generator-cli generate -i swagger.json -g my-generator -o out --additional-properties=supportsES6=true,withInterfaces=true --custom-generator=path/to/my-generator.jar |
Indeed, it works! I managed to do the same by simply cloning this repo and building our own cli wrapper. But the official solution is way better. |
@kay-schecker Please let me know if there's anything else I need to do in order to make this eligible for merge. |
Hi, please fix the linting errors: https://github.com/OpenAPITools/openapi-generator-cli/pull/335/files |
@kay-schecker Ah, fixed. I'm too used to that being a part of the build/commit process and didn't run lint separately. |
🎉 This PR is included in version 2.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
usage:
--custom-generator=path/to/my/generator.jar
It handles the difference in the classpath delimiter on windows and other systems.
Should fix #237
Tested in Windows and Ubuntu.