3

I am trying to generate nodejs client sdk using https://github.com/swagger-api/swagger-codegen Here is the command I use

swagger-codegen generate -i http://petstore.swagger.io/v2/swagger.json -l javascript -o ./petstore

But for the actual sdk which I need to generate the swagger spec is split in two different json files and I want to create a single sdk for both. How can I do this with Swagger-codegen, using multiple swagger json at same time?

Sandy
  • 2,253
  • 6
  • 24
  • 33

1 Answers1

-1

Reuse the --input-spec option (or -i) for every location of the swagger spec, as URL or file.

elcortegano
  • 2,444
  • 11
  • 40
  • 58
dabbabi
  • 1
  • 1