Redocly/create-openapi-repo

Cannot read property 'responses' of undefined

DanielHabenicht opened this issue · 0 comments

Error in this line:

if (openapi.components[componentType]) {

I think because the components part is deleted too early:

if (Object.keys(openapi.components).length === 0) {
delete openapi.components;
}

Workaround:

  "components": {
     // Add this property to your json schema
    "securitySchemes": {},
  }