Skip to content

Commit b9699e8

Browse files
authored
Merge pull request #317 from aravindanve/master
Fix bad equality check in security scheme template
2 parents cb34cdd + bd17324 commit b9699e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/templates/security-scheme-template.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,9 +303,9 @@ export default function securitySchemeTemplate() {
303303
}
304304
</td>
305305
<td>
306-
${v.type.toLowerCase() === 'apiKey' || (v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer')
306+
${v.type.toLowerCase() === 'apikey' || (v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer')
307307
? html`
308-
${v.type === 'apiKey'
308+
${v.type.toLowerCase() === 'apikey'
309309
? html`Send <code>${v.name}</code> in <code>${v.in}</code> with the given value`
310310
: html`Send <code>Authorization</code> in <code>header</code> containing the word <code>Bearer</code> followed by a space and a Token String.`
311311
}

0 commit comments

Comments
 (0)