forked from loafle/openapi-generator-original
Update ApiClient.ps1
This commit is contained in:
@@ -94,7 +94,7 @@ function Invoke-ApiClient {
|
||||
$UriBuilder = [System.UriBuilder]($RequestUri)
|
||||
$UriBuilder.Query = $HttpValues.ToString()
|
||||
|
||||
if ($Body -or $IsBodyNullable) {
|
||||
if ($Body -or $IsBodyNullable) {
|
||||
$RequestBody = $Body
|
||||
if ([string]::IsNullOrEmpty($RequestBody) -and $IsBodyNullable -eq $true) {
|
||||
$RequestBody = "null"
|
||||
|
||||
Reference in New Issue
Block a user