diff --git a/src/templates/security-scheme-template.js b/src/templates/security-scheme-template.js index b98d2956..02cf5c0b 100644 --- a/src/templates/security-scheme-template.js +++ b/src/templates/security-scheme-template.js @@ -303,9 +303,9 @@ export default function securitySchemeTemplate() { } - ${v.type.toLowerCase() === 'apiKey' || (v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer') + ${v.type.toLowerCase() === 'apikey' || (v.type.toLowerCase() === 'http' && v.scheme.toLowerCase() === 'bearer') ? html` - ${v.type === 'apiKey' + ${v.type.toLowerCase() === 'apikey' ? html`Send ${v.name} in ${v.in} with the given value` : html`Send Authorization in header containing the word Bearer followed by a space and a Token String.` }