Skip to content

Commit 236f26a

Browse files
committed
fixes #920 - filter valid securitySchemes before rendering
1 parent 704565c commit 236f26a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/templates/security-scheme-template.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,9 @@ export default function securitySchemeTemplate() {
408408
${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0
409409
? html`
410410
<table role="presentation" id="auth-table" class='m-table padded-12' style="width:100%;">
411-
${this.resolvedSpec.securitySchemes.map((v) => html`
411+
${this.resolvedSpec.securitySchemes
412+
.filter((v) => v.scheme && v.type)
413+
.map((v) => html`
412414
<tr id="security-scheme-${v.securitySchemeId}" class="${v.type.toLowerCase()}">
413415
<td style="max-width:500px; overflow-wrap: break-word;">
414416
<div style="line-height:28px; margin-bottom:5px;">

0 commit comments

Comments
 (0)