Here are the steps:
- Export Swagger JSON into a file on your drive. This JSON should be published on your server at the following URI: /swagger/docs/v1
- Go to http://editor.swagger.io/#/
- On the top left corner, select File-> Import File… Point to the local Swagger JSON file you exported in step #1 to open in the Swagger Editor
- Select Generate Client -> Swagger YAML option from the menu
- It will generate the YAML that you can validate at http://www.yamllint.com/ site