krakenjs / hapi-openapi

Build design-driven apis with OpenAPI (formerly swagger) 2.0 and hapi.
Other
210 stars 75 forks source link

Quick Start is Broken #155

Open briansimoni opened 5 years ago

briansimoni commented 5 years ago

Steps to reproduce:

$ npm install -g yo
$ npm install -g generator-swaggerize
$ mkdir petstore && cd $_
$ yo swaggerize # follow the prompts, select Hapi, using petstore.json
$ npm start

Result:

(node:23813) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'access' of undefined
    at Object.create (/home/brian/petstore/node_modules/hapi-openapi/lib/routes.js:108:34)

node version: v10.15.1 npm version: 6.9.0 yo version: 2.0.5 OS: Ubuntu 18.04

I also tried this on Windows 10 and an Alpine Node.js Docker container with the same results.

tlivings commented 5 years ago

Thanks for raising this.