We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca81b6d commit 426e5b6Copy full SHA for 426e5b6
src/services/OpenAPIParser.ts
@@ -68,7 +68,12 @@ export class OpenAPIParser {
68
}
69
70
preprocess(spec: OpenAPISpec) {
71
- if (!this.options.noAutoAuth && spec.info) {
+ if (
72
+ !this.options.noAutoAuth &&
73
+ spec.info &&
74
+ spec.components &&
75
+ spec.components.securitySchemes
76
+ ) {
77
// Automatically inject Authentication section with SecurityDefinitions component
78
const description = spec.info.description || '';
79
const securityRegexp = new RegExp(
0 commit comments