-
-
Notifications
You must be signed in to change notification settings - Fork 156
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
[BUG] Openapi normalizer argument not passed to the generator #824
Comments
It seems to be possible to pass openapi normalizer argument to the generator command by specifying it in openapitools.json despite the json schema. So I open a PR to suggest a schema update : #830 |
i tested with the following and it works without issue:
what errors did you get when using openapi normalizer with the CLI wrapper? and thanks for the PR to update the schema with openapi normalizer |
I didn't get any error, but the After investigating further more the So the conclusion is
|
🎉 This issue has been resolved in version 2.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🐛 Bug Report:
Describe the bug
generator arguments --openapi-normalizer seems not possible to be passed through the node CLI wrapper.
Steps to Reproduce
I've tryed to find this option in openapitools.json schema or passing it directly in the npm script
openapi-generator-cli generate --openapi-normalizer KEEP_ONLY_FIRST_TAG_IN_OPERATION=true
but that not seems to be passed to the generator seems generated sources for my endpoint are generated for both tags placed on in my openapi contract.concerned extract of my openapicontract :
Expected behavior
Could it be possible to specify openapi normalizer variable in generators specification in the openapitools.json or directly by the CLI ?
Operation System (please complete the following information):
Package System (please complete the following information):
The text was updated successfully, but these errors were encountered: