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

Non-value CLI flags are not translated correctly #113

Closed
tvollstaedt opened this issue Nov 5, 2020 · 3 comments
Closed

Non-value CLI flags are not translated correctly #113

tvollstaedt opened this issue Nov 5, 2020 · 3 comments
Labels

Comments

@tvollstaedt
Copy link

I've set up a generator config in openapitools.json with "skipValidateSpec": true, and just ran openapi-generator-cli generate. Unfortunately, this (and other non-value) flag is translated to --skip-validate-spec=true, but should be --skip-validate-spec. The client fails with:

[[angular] openapi_solve.yml] [error] Found unexpected parameters: [--skip-validate-spec=true]
[[angular] openapi_solve.yml] 
[[angular] openapi_solve.yml] See 'openapi-generator-cli help' for usage.

I'm not sure if this is a regression with the release of a new CLI version, but we should add exclusions in the generator for these flags.

@kay-schecker
Copy link
Contributor

@tvollstaedt Thanks for reporting the issue. I'll look at it right away.

@github-actions
Copy link

github-actions bot commented Nov 5, 2020

🎉 This issue has been resolved in version 2.1.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@kay-schecker
Copy link
Contributor

fix released (Please note that v2.1.1 was not published to NPM, because I also did setup semantic release today).
Please use v2.1.3 instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants