DO NOT install this module as a global module.
Think this module as a small tool in your project.
Install it locally, and use it locally.
Several bugs related to global installation, and have not been fixed yet.
usage: swagger2pdf [-h] [-v] [-s SRC] [-o OUTPUT] Optional arguments: -h, --help Show this help message and exit. -v, --version Show program's version number and exit. -s SRC, --src SRC Swagger spec JSON file. -o OUTPUT, --output OUTPUT Output path of the pdf file.
./bin/swagger2pdf -s ./swagger-spec-sample.json -o ./dump/
Wait several seconds
Version of swagger editor embedded is: 2.9.9
You can get it from: here
If you want to use some other version:
Done, just use it.