This app will verify that all elements of uploaded swagger are match with the swagger standard.
npm install swagger-validatorSwaggerValidator
==========
SwaggerValidator will 'lint' the public documentation for your REST Api and verify compliance with the rules
outlined in the Swagger Specification.
Installation
------------
You'll need to have nodejs installed before installing the SwaggerValidator.
Currently SwaggerValidator is only available on the Pearson NPM server. Install with npm:
$ npm install swaggerValidator
Basic Use
---------
$ swagger-validator -s
The Linter can also be used programatically two ways.
SwaggerValidator = require("swagger-validator");
swaggerValidator = new SwaggerValidator();
//fetch and validate swagger via endpoint. 'console' is optional and can be left blank if
//you'd like to refrain from having the reporter dump to the console.
swaggerValidator.fetchAndValidate('www.someDomain.com/api-docs', 'console', callback(result){
//do stuff here
});
//pass swagger docs directly to the linter
swaggerValidator.fetchAndValidate(docs, root, callback(result){
//do stuff here
});
Getting Help
------------
Contact any of the project contributors by email.
Contributors
------------
Jeff Marquez
Allen Clayton
Chris Kelley
Inspiration, History, and Licenses
-------------------------------------
#### Underlying licenses
* lodash (appears to be MIT)
* async - MIT
* joi - MIT-like, some modifications about not using contributors to promote or endorse derived software
* request - apache
* cli-color - MIT
* commander - MIT