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

Generator won't handle enums #51

Closed
djMax opened this issue Nov 28, 2015 · 2 comments
Closed

Generator won't handle enums #51

djMax opened this issue Nov 28, 2015 · 2 comments
Milestone

Comments

@djMax
Copy link

djMax commented Nov 28, 2015

An enum like so, in definitions:

  SomethingType:
    type: string
    required: true
    enum:
      - avalue
      - bvalue
      - cvalue
      - dvalue

does this

_.forEach(Object.keys(properties), function (prop) {;
                      ^

ReferenceError: properties is not defined
    at eval (eval at template (/usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/node_modules/lodash/dist/lodash.js:6306:22), <anonymous>:11:23)
    at underscore [as _engine] (/usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/lib/util/engines.js:32:30)
    at engine (/usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/lib/actions/actions.js:303:10)
    at template (/usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/lib/actions/actions.js:281:15)
    at /usr/local/lib/node_modules/generator-swaggerize/app/index.js:273:18
    at Array.forEach (native)
    at yeoman.generators.Base.extend.models (/usr/local/lib/node_modules/generator-swaggerize/app/index.js:260:49)
    at /usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/lib/base.js:341:43
    at /usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/node_modules/async/lib/async.js:551:21
    at /usr/local/lib/node_modules/generator-swaggerize/node_modules/yeoman-generator/node_modules/async/lib/async.js:227:13
@grawk
Copy link
Member

grawk commented Dec 24, 2015

oh yeah i just ran into this as well

@subeeshcbabu-zz subeeshcbabu-zz added this to the v3.0.0 milestone Jan 26, 2016
@subeeshcbabu-zz
Copy link
Member

Please check the latest version [email protected]. This should be resolved.

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

No branches or pull requests

3 participants