1.0.1 • Published 6 years ago
@roundfly/swag v1.0.1
SWAG
Swag is a CLI tool that when given a Swagger URL which points to JSON deserializes the JSON and filters out redundant key:value pairs, this is then passed to quicktype which outputs code in one of its supported languages. If no language is passed as an argument Swag then defaults to Swift.
For more advanced JSON decoding options I encourage you to look into quicktype, seeing as Swag is just a thin wrapper over it.
Installation
npm install @roundfly/swagUsage
swag https://my-awesome-api.com/swagger/v1/swagger.json --lang jsInputing the above in a shell outputs a models.js file with all your Swagger models deserialized.