openapi2js
v1.1.2
Published
Convert OpenAPI (swagger) 2.0 / 3.0.x definition to simple JS API
Downloads
13
Maintainers
Readme
OpenAPI2js
Convert OpenApi (Swagger) 2.0 / 3.0.x JSON/YAML definition to simple Javascript API, complete with JSDOC, suitable for use with the Open Nitro SDK
Usage:
var oa2js = require('openapi2js');
oa2js.openAPI2js(inFilename,outFilename);
or
var oa2js = require('openapi2js');
var jsStr = oa2js.openAPI2js(swaggerObject);