waterwheel.js icon indicating copy to clipboard operation
waterwheel.js copied to clipboard

"Cannot read property 'hasOwnProperty' of undefined" during populateResources()

Open richgerdes opened this issue 7 years ago • 1 comments

I am testing out Waterwheel for use on a project.

I was able to setup the project with OAuth and Cors but one i got that online, i was unable to parse the openapi/jsonapi resources with populateResources().

During iteration over the definitions, the implementation expects for each Tag to exist, however, this is not true. In my case on a basic site, the Actions Tag exists, but there are not "Actions" definitions. The site is a simple build, the minimal install of 8.4.3 with a handful of core modules and OpenApi, Simple OAuth, Cors. and Json Api.

richgerdes avatar Dec 19 '17 03:12 richgerdes

Ultimately the line the throws the error is swagger.js#L15 as a result of using [entity] on line 13.

richgerdes avatar Dec 19 '17 03:12 richgerdes