Open prichey opened 4 years ago
Same feeling here. However, after a bit of debugging 'openapi-to-har.js', I found out that some of my endpoint definitions lacked 'security:' tag. For more info, see the swagger api keys. You can also upgrade your doc from Swagger (i.e. OAS v1/2) to OpenAPI v3.
Getting the same error. I have a global security
section on the root level so I'm not sure why the error occurs. The error is related to this line
For the future of the solution proposal just add in your schema
openapi: '3.0.0',
Getting this with a valid OAS v2 file:
Looks like
openapi-to-har.js
expectsopenApi.components.securitySchemes
to exist even though it's not required for OAS v2.