swagger-api / swagger-api/swagger-codegen
[brew] brew install swagger-codegen installs incomplete version
Open
Nobody has claimed this yet.
- Dominant language
- Mustache
- Stars
- 17.8k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
I ran brew install swagger-codegen and this is the version it installed:
brew list swagger-codegen
/usr/local/Cellar/swagger-codegen/3.0.4/bin/swagger-codegen
/usr/local/Cellar/swagger-codegen/3.0.4/libexec/swagger-codegen-cli.jar
When I list supported langs, I see this:
swagger-codegen langs
10:13:06.568 [main] DEBUG io.swagger.codegen.v3.cli.SwaggerCodegen - there are not options for command 'langs'
10:13:06.570 [main] DEBUG io.swagger.codegen.v3.cli.SwaggerCodegen - there are not options for command 'version'
Available languages: [aspnetcore, csharp, csharp-dotnet2, dynamic-html, html, html2, java,
jaxrs-cxf-client, jaxrs-cxf, inflector, jaxrs-cxf-cdi, jaxrs-spec, jaxrs-jersey, jaxrs-di,
jaxrs-resteasy-eap, jaxrs-resteasy, spring, nodejs-server, openapi, openapi-yaml,
kotlin-client, kotlin-server, php, scala, scala-akka-http-server, swift3, swift4,
typescript-angular]
It is missing a bunch, like akka-scala.
When I download the jar, I see this:
wget http://central.maven.org/maven2/io/swagger/swagger-codegen-cli/2.3.1/swagger-codegen-cli-2.3.1.jar -O swagger-codegen-cli.jar
[snip]
java -jar swagger-codegen-cli.jar langs
Available languages: [ada, ada-server, akka-scala, android, apache2, apex, aspnetcore,
bash, csharp, clojure, cwiki, cpprest, csharp-dotnet2, dart, elixir, elm, eiffel,
erlang-client, erlang-server, finch, flash, python-flask, go, go-server, groovy,
haskell-http-client, haskell, jmeter, jaxrs-cxf-client, jaxrs-cxf, java, inflector, jaxrs-cxf-cdi,
jaxrs-spec, jaxrs, msf4j, java-pkmst, java-play-framework, jaxrs-resteasy-eap,
jaxrs-resteasy, javascript, javascript-closure-angular, java-vertx, kotlin, lua,
lumen, nancyfx, nodejs-server, objc, perl, php, powershell, pistache-server,
python, qt5cpp, r, rails5, restbed, ruby, rust, rust-server, scala, scala-lagom-server,
scalatra, scalaz, php-silex, sinatra, slim, spring, dynamic-html, html2, html, swagger,
swagger-yaml, swift4, swift3, swift, php-symfony, tizen, typescript-aurelia,
typescript-angular, typescript-angularjs, typescript-fetch, typescript-jquery,
typescript-node, undertow, ze-ph]
So several issues:
- Version number reported by
brewis 3.0.4 vs 2.3.1 for the jar. - The
brewversion has far fewer languages - The
brewversion also has oddDEBUGmessages about no options forlangorversion
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 reproducing brew install swagger-codegen, brew list swagger-codegen, and swagger-codegen langs, then compare the installed 3.0.4 CLI with the downloaded 2.3.1 jar. Trace the Homebrew packaging entry point for swagger-codegen and verify that the installed version, supported languages, and command output match the intended distribution.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- cli, release, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100