OpenAPITools / OpenAPITools/openapi-generator
[BUG] Metadata option is not supported in CLI, Maven and Gradle plugin
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
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)
- Have you tested with the latest master to confirm the issue still exists?
- Have you searched for related issues/PRs?
- 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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the generateMetadata and global-properties handling added in #13699, then compare the CLI, Maven, and Gradle plugin paths. Done means the option is consistently available across all three interfaces and can disable metadata output; verify each interface with its existing generation checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100