diff --git a/modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache b/modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache index ecfb9dc65350..7c0d7ca13461 100644 --- a/modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache +++ b/modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache @@ -174,7 +174,7 @@ function {{{vendorExtensions.x-powershell-method-name}}} { {{/isKeyInCookie}} {{/isApiKey}} {{#isBasicBasic}} - if ($Configuration["Username"] -and $Configuration["Password"]]) { + if ($Configuration["Username"] -and $Configuration["Password"]) { $LocalVarBytes = [System.Text.Encoding]::UTF8.GetBytes($Configuration["Username"] + ":" + $Configuration["Password"]) $LocalVarBase64Text =[Convert]::ToBase64String($LocalVarBytes) $LocalVarHeaderParameters['Authorization'] = "Basic " + $LocalVarBase64Text