You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the path list is empty like in this example
```
openapi: "3.0.0"
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: http://petstore.swagger.io/v1
paths: {}
components: {}
```
I see the following error
```
og -t ../schema/templates/ -o ./schemas -b $(pwd) ../schema/petstore.yaml markdown
TypeError: Cannot read property 'length' of undefined
at sharedStart (/usr/local/lib/node_modules/openapi3-generator/lib/beautifier.js:9:49)
at module.exports (/usr/local/lib/node_modules/openapi3-generator/lib/beautifier.js:182:24)
at bundle.catch.then (/usr/local/lib/node_modules/openapi3-generator/lib/generator.js:288:17)
```
This is a special case where the path array has no elements, so can be handled explicitly
0 commit comments