Skip to content

binded/build-swagger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

build-swagger

Build Status

Simple wrapper around swagger-jsdoc

Builds a swagger.json based on a swagger.js specification file. By default, tries to find swagger.js in ./swagger.js and ./src/swagger.js and writes to ./swagger.json.

Install

npm install --save build-swagger

Requires Node v6+

Usage

See ./test directory for usage examples.

build-swagger [--spec] [--jsonPath]
# by default, spec looks for ./swagger.js or ./src/swagger.js
# if jsonPath is not specified, it will output to stdout

# example:
build-swagger.js --spec ./src/swagger.js --jsonPath myswagger.json