I have Swagger 1.2 JSON spec which I wanted to migrate to Swagger 2.0. Can someone help with that?
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
The official swagger codegen allows for this as well:
https://generator.swagger.io/#!/clients/generateClient
Select swagger-yaml
from the drop-down and put the URL into the GeneratorInput
example. It will give you a link to download the swagger definition.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With