我无法执行swagger的jar安装程序。指示使用
java -jar .\swagger-codegen-cli-3.0.19.jar
但是我收到这种消息
15:10:11.691 [main] DEBUG io.swagger.codegen.v3.cli.SwaggerCodegen - there are not options for command 'langs'
15:10:11.693 [main] DEBUG io.swagger.codegen.v3.cli.SwaggerCodegen - there are not options for command 'version'
我还没有找到这些参数的作用或设置这些参数的方法。你有什么想法吗?
答案 0 :(得分:1)
最新版本(3.0.22)对我有用
$ java -jar swagger-codegen-cli-3.0.22.jar version
3.0.22
$ java -jar swagger-codegen-cli-3.0.22.jar langs
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, scala, scala-akka-http-server, swift3, swift4, swift5, typescript-angular, typescript-axios, typescript-fetch, javascript]