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

Throw an error when unknown key-value arguments are passed with -D #499

Open
langston-barrett opened this issue Jul 7, 2018 · 0 comments

Comments

@langston-barrett
Copy link

Description

When attempting to use the golang codegen with the option withXml=true, I mistakenly typed withXML (#490). My error was silently ignored and I spent a few minutes trying to figure out why it wasn't working. It might be more user-friendly to throw an error.

openapi-generator version

Docker

Command line used for generation
sudo docker run --rm -v ${PWD}:/local \
     openapitools/openapi-generator-cli generate \
     -i /local/swagger.yml \
     -g go \
     -o /local/generated/client \
     -D withXML=true

vs

sudo docker run --rm -v ${PWD}:/local \
     openapitools/openapi-generator-cli generate \
     -i /local/swagger.yml \
     -g go \
     -o /local/generated/client \
     -D withXml=true
Steps to reproduce

Run the above incorrect command

Related issues/PRs
Suggest a fix/enhancement

Throw an error!

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

No branches or pull requests

2 participants