swagger-api / swagger-api/swagger-codegen

[brew] brew install swagger-codegen installs incomplete version

Open
#9,171 2 comments 22 reactions 0 assignees View on GitHub

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 brew is 3.0.4 vs 2.3.1 for the jar.
  • The brew version has far fewer languages
  • The brew version also has odd DEBUG messages about no options for lang or version

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.