Swagger migration from 1.2 to 2.0 specification

Rohit Goyal picture Rohit Goyal · Mar 10, 2016 · Viewed 7.3k times · Source

I have Swagger 1.2 JSON spec which I wanted to migrate to Swagger 2.0. Can someone help with that?

Answer

William Cheng picture William Cheng · Mar 10, 2016

You can use api-spec-converter (open-source, MIT license).

api-spec-converter https://api.gettyimages.com/swagger/api-docs --from=swagger_1 --to=swagger_2 > swagger.json