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 33c3c503de9..3ddc9eda0b7 100644 --- a/modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache +++ b/modules/openapi-generator/src/main/resources/powershell-experimental/api.mustache @@ -179,7 +179,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