Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Trying to regenerate the swagger API creates a new application #103

Open
broox opened this issue Apr 25, 2017 · 1 comment
Open

Trying to regenerate the swagger API creates a new application #103

broox opened this issue Apr 25, 2017 · 1 comment

Comments

@broox
Copy link

broox commented Apr 25, 2017

When I attempt to regenerate the swagger API from the root directory of my project, it goes through the questionaire/wizard and stubs a new application underneath the root of my project...

e.g.

$ cd /my_project
$ yo swaggerize --only=handlers,models,tests --framework express --apiPath config/api.json
Swaggerize Generator
Tell us a bit about your application
? What would you like to call this project: My Project
? Your name: Derek Brooks
? Your github user name: debrooks
? Your email: [email protected]
   create .eslintignore
   create .eslintrc
   create .npmignore
   create package.json
   create README.md
   create server.js
   create tests/sample.js
   create handlers/sample.js
   create data/mockgen.js
   create data/sample.js
   ...

$ ls -l
config
handlers
index.js
My Project
node_modules
package.json
README.md
tests

Notice: in my root directory, ran swaggerize, a new subfolder called My Project exists with all of the newly generated files. I expected it to just generate the missing files based on the swagger api in my current working directory.

@scorpiodawg
Copy link

@broox This sounds related to: #100. It appears version 2.x had this feature and it's now gone in 3 and needs to be brought back.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants