corenova / yang-express

YANG model-driven Express framework
Apache License 2.0
12 stars 4 forks source link

openapi: Cannot read property 'nodes' of undefined #6

Closed ramukima closed 8 years ago

ramukima commented 8 years ago

Understand that this is still under development. I am reporting this for tracking -

Running the yang-express/example petstore, I get the following error -

bash-4.3$ curl localhost:5000/openapi.spec
{
  "error": {
    "message": "Cannot read property 'nodes' of undefined"
  }
}bash-4.3$

Server Log -

TypeError: Cannot read property 'nodes' of undefined
  at Function.restjson.paths (.../yang-express/lib/restjson.js:138:18)
  at .../yang-express/lib/openapi.js:57:27

I am using following versions of dependencies : "yang-express": "^0.3.9", "yang-js": "^0.15.16",

The latest changes to yang-js project may have broken it.

ramukima commented 8 years ago

Review pull request - https://github.com/corenova/yang-express/pull/7 (may be a wrong way to fix it but the fix works).

ramukima commented 8 years ago

merged, closing