swagger-api / swagger-codegen

swagger-codegen contains a template-driven engine to generate documentation, API clients and server stubs in different languages by parsing your OpenAPI / Swagger definition.
http://swagger.io
Apache License 2.0
17.01k stars 6.03k forks source link

Supported languages: generator.swagger.io vs swagger-codegen v3.0.26 through v3.0.33 #11057

Open mloskot opened 3 years ago

mloskot commented 3 years ago
Description

The online generator offers much more languages

>  curl -s -X GET "https://generator.swagger.io/api/gen/clients" -H  "accept: application/json" | jq
[
  "ada",
  "akka-scala",
  "android",
  "apex",
  "bash",
  "clojure",
  "cpprest",
  "csharp",
  "csharp-dotnet2",
  "cwiki",
  "dart",
  "dart-jaguar",
  "dynamic-html",
  "eiffel",
  "elixir",
  "elm",
  "erlang-client",
  "flash",
  "go",
  "groovy",
  "haskell-http-client",
  "html",
  "html2",
  "java",
  "javascript",
  "javascript-closure-angular",
  "jaxrs-cxf-client",
  "jmeter",
  "kotlin",
  "lua",
  "objc",
  "perl",
  "php",
  "powershell",
  "python",
  "qt5cpp",
  "r",
  "ruby",
  "rust",
  "scala",
  "scala-gatling",
  "scalaz",
  "swagger",
  "swagger-yaml",
  "swift",
  "swift3",
  "swift4",
  "swift5",
  "tizen",
  "typescript-angular",
  "typescript-angularjs",
  "typescript-aurelia",
  "typescript-fetch",
  "typescript-inversify",
  "typescript-jquery",
  "typescript-node",
  "ue4cpp"
]

than the CLI generator:

java -jar .\swagger-codegen-cli-3.0.26.jar langs | sed 's/\, /\n/g; s/\[/\n/g; s/\]/\n/g'
Available languages:
dart
aspnetcore
csharp
csharp-dotnet2
go
go-server
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
micronaut
spring
nodejs-server
openapi
openapi-yaml
kotlin-client
kotlin-server
php
python
python-flask
r
ruby
scala
scala-akka-http-server
swift3
swift4
swift5
typescript-angular
typescript-axios
typescript-fetch
javascript
Swagger-codegen version
Related issues/PRs
jkhchan307 commented 3 years ago

I have the same issue as well.

rishabsahu1996 commented 3 years ago

Not able to generate in objc.

blackdev1l commented 3 years ago

yeah, i was wondering why i couldn't generate a micronaut stub with the offline generator :thinking:

jeeftor commented 3 years ago

Same here ...

mloskot commented 2 years ago

The issue still applies to the latest 3.0.33

$ java -jar swagger-codegen-cli-3.0.33.jar langs | sed 's/\, /\n/g; s/\[/\n/g; s/\]/\n/g'
Available languages:
dart
aspnetcore
csharp
csharp-dotnet2
go
go-server
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
micronaut
spring
nodejs-server
openapi
openapi-yaml
kotlin-client
kotlin-server
php
python
python-flask
r
ruby
scala
scala-akka-http-server
swift3
swift4
swift5
typescript-angular
typescript-axios
typescript-fetch
javascript
LincolnBryant commented 2 years ago

This seems to still be the case in 3.0.34.

Are there any open issues etc that the team can point folks to, to fix support for their favorite language?