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
22.04k stars 6.61k forks source link

[REQ] Distribute versions on Homebrew #11816

Open rhys-rant opened 2 years ago

rhys-rant commented 2 years ago

Is your feature request related to a problem? Please describe.

I have encountered this bug in OpenAPI Generator 5.4.0, which isn't present in 5.3.1 due to the change in the JSONEncodable code. There seems to also be a bugfix in the master branch 6.0.X build. Installing openapi-generator 5.3.1 via Homebrew is a longwinded though necessary process for this bug fix.

Describe the solution you'd like

I would like to be able to install multiple versions of OpenAPI Generator through Homebrew, using the syntax brew install openapi-generator@5.3.1

Describe alternatives you've considered

Reinstalling an old version of openapi-generator using Homebrew is an involved process that requires:

wing328 commented 2 years ago

What about using https://www.npmjs.com/package/@openapitools/openapi-generator-cli to manage openapi-generator cli version instead?

rhys-rant commented 2 years ago

What about using https://www.npmjs.com/package/@openapitools/openapi-generator-cli to manage openapi-generator cli version instead?

Wasn't aware that was a thing! Also, I mostly try to keep my software installed using Homebrew and avoid npm where possible. But that's a me thing, so I understand that this request is either very low prio/won't do if there's already a solution available. Still would be nice to have though! 😄

sanfordj commented 8 months ago

agreed, homebrew formulas for the specific versions would be appreciated.