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
TypeError: Cannot read property 'securitySchemes' of undefined
at getHeadersArray (/repo/node_modules/openapi-snippet/openapi-to-har.js:309:48)
at createHar (/repo/node_modules/openapi-snippet/openapi-to-har.js:44:14)
at Object.openApiToHarList [as getAll] (/repo/node_modules/openapi-snippet/openapi-to-har.js:379:21)
at Object.getSnippets (/repo/node_modules/openapi-snippet/index.js:63:32)
Looks like openapi-to-har.js expects openApi.components.securitySchemes to exist even though it's not required for OAS v2.
The text was updated successfully, but these errors were encountered:
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 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.The text was updated successfully, but these errors were encountered: