diff --git a/modules/openapi-generator/src/main/resources/powershell/api_client.mustache b/modules/openapi-generator/src/main/resources/powershell/api_client.mustache index f760c7d5f56..2e6cb8647ce 100644 --- a/modules/openapi-generator/src/main/resources/powershell/api_client.mustache +++ b/modules/openapi-generator/src/main/resources/powershell/api_client.mustache @@ -233,8 +233,7 @@ function DeserializeResponse { [AllowEmptyString()] [string]$ReturnType, [Parameter(Mandatory)] - [AllowEmptyString()] - [string]$Response, + [Object]$Response, [Parameter(Mandatory)] [AllowEmptyCollection()] [string[]]$ContentTypes diff --git a/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/ApiClient.ps1 b/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/ApiClient.ps1 index 06bd189facf..08c35f11b33 100644 --- a/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/ApiClient.ps1 +++ b/samples/client/echo_api/powershell/src/PSOpenAPITools/Private/ApiClient.ps1 @@ -221,8 +221,7 @@ function DeserializeResponse { [AllowEmptyString()] [string]$ReturnType, [Parameter(Mandatory)] - [AllowEmptyString()] - [string]$Response, + [Object]$Response, [Parameter(Mandatory)] [AllowEmptyCollection()] [string[]]$ContentTypes diff --git a/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 b/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 index 3b60185eee7..4bd3084c7e4 100755 --- a/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 +++ b/samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1 @@ -237,8 +237,7 @@ function DeserializeResponse { [AllowEmptyString()] [string]$ReturnType, [Parameter(Mandatory)] - [AllowEmptyString()] - [string]$Response, + [Object]$Response, [Parameter(Mandatory)] [AllowEmptyCollection()] [string[]]$ContentTypes