OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.29k stars 6.44k forks source link

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

Open nebulon42 opened 1 year ago

nebulon42 commented 1 year ago

Bug Report Checklist

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.

kevin-wise commented 4 weeks ago

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.