[BUG] Metadata option is not supported in CLI, Maven and Gradle plugin
Bug Report Checklist
- [ ] Have you provided a full/minimal spec to reproduce the issue? (N/A)
- [ ] Have you validated the input using an OpenAPI validator (example)? (N/A)
- [x] Have you tested with the latest master to confirm the issue still exists?
- [x] Have you searched for related issues/PRs?
- [x] What's the actual output vs expected output?
- [ ] [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description
The generateMetadata option is not supported in CLI, Maven and Gradle plugin. Hence, there is no option to deactivate metadata output despite the flag exists.
openapi-generator version
master
OpenAPI declaration file content or url
Generation Details
Steps to reproduce
Try to set the generate metadata option, it is not available.
Related issues/PRs
#13699 adds this for Maven and Gradle plugin, but not for CLI. It does so via global properties.
Suggest a fix
Like #13699 and also add support to CLI. Re #13699 it can be discussed if this should be solved via global properties or not.
I ran across this issue too. No way to disable FILES, VERSION, or .openapi-generator-ignore from getting written. Seems to only be used in tests currently.
Adding #15215 as a possible duplicate.