openapi-generator icon indicating copy to clipboard operation
openapi-generator copied to clipboard

[BUG] Metadata option is not supported in CLI, Maven and Gradle plugin

Open nebulon42 opened this issue 2 years ago • 2 comments

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.

nebulon42 avatar Jun 02 '23 13:06 nebulon42

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.

kevin-wise avatar Aug 15 '24 23:08 kevin-wise

Adding #15215 as a possible duplicate.

dol avatar Dec 01 '25 14:12 dol