corenova / yang-express

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

yangapi: GET broken #8

Open ramukima opened 8 years ago

ramukima commented 8 years ago
bash-4.3$ curl localhost:5000/petstore.yang
{
  "error": {
    "message": "Cannot read property 'length' of undefined"
  }
}
TypeError: Cannot read property 'length' of undefined
  at ......./yang-express/lib/yangapi.js:16:32
sekur commented 8 years ago

Hi Amit, I'm currently completely revamping the Store construct along with how we would enable hotplug management. You can take a sneak preview by looking at the "develop" branch of yang-js. It's not stable yet but the idea is to express the Store as a YANG module (yang-store.yang) which would operate similarly to (ietf-yang-library.yang) but with the advantage that we can use yang-express restjson generator to expose the yangapi features. I expect to have a new yang-express leveraging the new "yang-store" construct fairly soon.

ramukima commented 8 years ago

Fantastic, will take a look !