hapi-openapi icon indicating copy to clipboard operation
hapi-openapi copied to clipboard

Quick Start is Broken

Open briansimoni opened this issue 6 years ago • 1 comments

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.

briansimoni avatar Apr 11 '19 01:04 briansimoni

Thanks for raising this.

tlivings avatar May 14 '19 23:05 tlivings