openapi-generator
openapi-generator copied to clipboard
[REQ] No option available to turn off postProcess message from OpenAPI Generator tool. When used in automated mode, it would be better to provide an option not to spit this text out.
In our gradle build system, we use OpenAPI Generator tool, and we always end up getting this below message as part of the build logs. It would be ideal to provide an option for the user to turn off writing these messages to console / log files in automated environments like maven / gradle builds. This text is fine to be displayed when run from a command line tool.
################################################################################
# Thanks for using OpenAPI Generator. #
# Please consider donation to help us maintain this project ? #
# https://opencollective.com/openapi_generator/donate #
################################################################################
Usually other automated tools / utilities provide an option similar to silent / quiet to stop producing this text on console / logs.
This is how my build log looks like when I've set the log level to WARN:
🤯
I would love to be able to do this as well.... a parameter?
I would prefer to disable that message too.
We are running the generator for multiple files and because of that our CI build log is flooded with these useless entries!
At least it should be done in a way that its only shown once per build!
Exactly same case for me :)
same :sleeping:
Same for us. It's really annoying in our build logs.
This is worse than Ansible's cowsay default behavior, in that this isn't cute, it's an advertisement, there is no way to disable it, and there has been no response from repo owners after 2+ years.
So.. Maybe one of us should open up a PR to add this feature?
welcome PR
maybe adding a --quiet
mode similar to what mvn offers: https://stackoverflow.com/a/71086/677735?
a workaround it to skip line starting with # using grep -v
, e.g.
./bin/generate-samples.sh ./bin/configs/java-okhttp-gson-3.1.yaml | grep -v "^#"