I was trying to see if swagger codegen supports generating code for multiple spec files and figured the most intuitive way to execute this command would be to just list the spec files in the codegen command as such:
java -jar ..\..\swagger-tools\swagger-codegen-cli-2.2.1.jar generate -i apiSpec20\swagger1.yaml apiSpec20\swagger2.yaml -l java
I got the following error:
Exception in thread "main" io.airlift.airline.ParseArgumentsUnexpectedException: Found unexpected parameters: [apiSpec20\swagger2.yaml]
at io.airlift.airline.Cli.validate(Cli.java:148)
at io.airlift.airline.Cli.parse(Cli.java:116)
at io.airlift.airline.Cli.parse(Cli.java:97)
at io.swagger.codegen.SwaggerCodegen.main(SwaggerCodegen.java:36)
I would just like confirmation that codegen is not capable of generating code for multiple spec files at once (as opposed to me having executed the command incorrectly) and was wondering if this feature would ever be supported in future versions.
Thanks.