https://github.com/mermade/openapi2js
Create simple JS SDK from OpenAPI (Swagger) 2.0/3.0.x json/yaml document
https://github.com/mermade/openapi2js
openapi openapi3 sdk swagger
Last synced: 5 months ago
JSON representation
Create simple JS SDK from OpenAPI (Swagger) 2.0/3.0.x json/yaml document
- Host: GitHub
- URL: https://github.com/mermade/openapi2js
- Owner: Mermade
- License: bsd-3-clause
- Created: 2016-06-26T17:09:25.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-04-28T14:33:40.000Z (almost 6 years ago)
- Last Synced: 2025-02-23T06:17:58.409Z (about 1 year ago)
- Topics: openapi, openapi3, sdk, swagger
- Language: JavaScript
- Homepage:
- Size: 17.6 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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:
```javascript
var oa2js = require('openapi2js');
oa2js.openAPI2js(inFilename,outFilename);
```
or
```javascript
var oa2js = require('openapi2js');
var jsStr = oa2js.openAPI2js(swaggerObject);
```