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

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

@broox

Description

@broox

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: debrooks@paypal.com
   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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions