Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 388 Bytes

README.md

File metadata and controls

18 lines (12 loc) · 388 Bytes

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);