From 0d9e67e63a0654e091c95098053d4d66e10579be Mon Sep 17 00:00:00 2001 From: Lrubin Date: Tue, 11 Jul 2023 17:00:36 -0700 Subject: [PATCH] small quality of life fixes --- src/templates/security-scheme-template.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/templates/security-scheme-template.js b/src/templates/security-scheme-template.js index 9f5abf95..90ae525f 100644 --- a/src/templates/security-scheme-template.js +++ b/src/templates/security-scheme-template.js @@ -401,7 +401,7 @@ export default function securitySchemeTemplate() {
${providedApiKeys.length} API key applied
` - : html`
No API key applied
` + : html`
No API key applied - Apply one here
` } ${this.resolvedSpec.securitySchemes && this.resolvedSpec.securitySchemes.length > 0 @@ -411,7 +411,8 @@ export default function securitySchemeTemplate() {
- ${v.typeDisplay} + ${this.resolvedSpec.securitySchemes.filter((secScheme) => secScheme.typeDisplay === v.typeDisplay).length > 1 ? `- + ${v.securitySchemeId}` : null} ${v.finalKeyValue ? html` ${v.finalKeyValue ? 'Key Applied' : ''} @@ -433,13 +434,13 @@ export default function securitySchemeTemplate() {
${v.type.toLowerCase() === 'apikey' ? html`Send ${v.name} in ${v.in}` - : html`Send Authorization in header containing the word Bearer followed by a space and a Token String.` + : html`Send Authorization in header containing the word Bearer followed by a space and the ${e.bearerFormat ?? "Token String"}.` }
${v.in !== 'cookie' ? html` - +