generator-openapi-repo
Yeoman generator for OpenAPI(fka Swagger) repo to help you share spec for your API
Installation
First, install Yeoman and generator-openapi-repo using npm (we assume you have pre-installed node.js).
npm install -g yo
npm install -g generator-openapi-repo
Then generate your new project:
yo openapi-repo
Updating existing project
- First make sure you have committed everything or have a backup
- just run
yo openapi-repo
over the project again yo
will ask you for each file if you want to overwrite- for those files you haven't edited, just say yes
- for the other ones, type d for diff and see what's changed