Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue when declaring request body #15

Open
prvdph opened this issue Jul 20, 2016 · 2 comments
Open

Issue when declaring request body #15

prvdph opened this issue Jul 20, 2016 · 2 comments
Labels

Comments

@prvdph
Copy link

prvdph commented Jul 20, 2016

ramlo 0.2.1

C:\bin\nvm\v6.2.1\node_modules\ramlo\src\modules\api.js:246
if (Object.keys(ramlBody).length > 0 && _.isFunction(body.schemaContent)) {

ReferenceError: body is not defined

It should be _.isFunction(ramlBody.schemaContent) not _.isFunction(body.schemaContent)

@derlin
Copy link

derlin commented Aug 14, 2016

I have the same problem:

ramlo/src/modules/api.js:246
    if (Object.keys(ramlBody).length > 0 && _.isFunction(body.schemaContent)) {
                                                         ^

ReferenceError: body is not defined
    at produceRequestBody (/tmp/ramlo/src/modules/api.js:246:58)
    at /tmp/ramlo/src/modules/api.js:98:26
    at arrayEach (/tmp/ramlo/node_modules/lodash/lodash.js:522:11)
    at Function.forEach (/tmp/ramlo/node_modules/lodash/lodash.js:9011:14)
    at produceEndpoints (/tmp/ramlo/src/modules/api.js:81:7)
    at /tmp/ramlo/src/modules/api.js:66:42
    at arrayEach (/tmp/ramlo/node_modules/lodash/lodash.js:522:11)
    at Function.forEach (/tmp/ramlo/node_modules/lodash/lodash.js:9011:14)
    at produceResources (/tmp/ramlo/src/modules/api.js:45:7)
    at module.exports (/tmp/ramlo/src/modules/api.js:688:26)

@kamilzasada kamilzasada added the bug label Sep 3, 2016
@kamilzasada kamilzasada added this to the Release Candidate milestone Sep 3, 2016
@freddrake
Copy link

I think this is the same as issue #26, which was fixed in PR #23, but has not been released.

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

No branches or pull requests

4 participants