From 2e2bf8a8e48bcc09742fc45633a48f8e82f668ef Mon Sep 17 00:00:00 2001 From: Matt Brewer Date: Tue, 23 Feb 2021 15:26:39 +0000 Subject: [PATCH] #235 Display operation scopes if defined in security scheme --- src/templates/security-scheme-template.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/templates/security-scheme-template.js b/src/templates/security-scheme-template.js index 611f6dee..083f4d0e 100644 --- a/src/templates/security-scheme-template.js +++ b/src/templates/security-scheme-template.js @@ -395,7 +395,7 @@ export function pathSecurityTemplate(pathSecurity) { ${orSecurityKeys1.map((orSecurityItem1, i) => html` ${i !== 0 ? html`
OR
` : ''}
-
${orSecurityItem1.securityTypes}
+
${orSecurityItem1.securityTypes}
${orSecurityItem1.securityDefs.length > 1 ? html`
Requires all of the following
` : ''}
@@ -404,7 +404,7 @@ export function pathSecurityTemplate(pathSecurity) { ? html`
${orSecurityItem1.securityDefs.length > 1 ? html`${j + 1}.  ` : html`Requires`} - OAuth Token (${andSecurityItem.apiKeyId}) in Authorization header + OAuth Token (${andSecurityItem.apiKeyId}) in Authorization header${orSecurityItem1.pathScopes !== '' ? html`. Required scopes:
    ${orSecurityItem1.pathScopes.split(', ').map((scope) => html`
  • ${scope}
  • `)}
` : ''}
` : andSecurityItem.type === 'http' ? html`