1.0.2 • Published 7 years ago

siwa v1.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
7 years ago

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.

validate(data, path, method/response code)

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

0.0.0

7 years ago