siwa
v1.0.2
Published
根据swagger规格描述来解析成更易于js处理的对象。
Downloads
5
Readme
siwa
根据swagger规格描述来解析成更易于js处理的对象。
Install
$ npm install siwa --save
Basic Usage
var spec = '{"swagger": "2.0"}';
var Siwa = require('siwa');
var siwa = new Siwa(spec); // spec can be json object, stringify json or yaml string
console.log(siwa.parse());
API
parse
Parse the specification for further usage.
compare(spec)
Compare two spec is the same.