Allow for binary response content (#19331)

This commit is contained in:
condorcorde 2024-08-11 16:48:03 +02:00 committed by GitHub
parent 07baddfe12
commit 6da3dc5c10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 6 deletions

View File

@ -233,8 +233,7 @@ function DeserializeResponse {
[AllowEmptyString()] [AllowEmptyString()]
[string]$ReturnType, [string]$ReturnType,
[Parameter(Mandatory)] [Parameter(Mandatory)]
[AllowEmptyString()] [Object]$Response,
[string]$Response,
[Parameter(Mandatory)] [Parameter(Mandatory)]
[AllowEmptyCollection()] [AllowEmptyCollection()]
[string[]]$ContentTypes [string[]]$ContentTypes

View File

@ -221,8 +221,7 @@ function DeserializeResponse {
[AllowEmptyString()] [AllowEmptyString()]
[string]$ReturnType, [string]$ReturnType,
[Parameter(Mandatory)] [Parameter(Mandatory)]
[AllowEmptyString()] [Object]$Response,
[string]$Response,
[Parameter(Mandatory)] [Parameter(Mandatory)]
[AllowEmptyCollection()] [AllowEmptyCollection()]
[string[]]$ContentTypes [string[]]$ContentTypes

View File

@ -237,8 +237,7 @@ function DeserializeResponse {
[AllowEmptyString()] [AllowEmptyString()]
[string]$ReturnType, [string]$ReturnType,
[Parameter(Mandatory)] [Parameter(Mandatory)]
[AllowEmptyString()] [Object]$Response,
[string]$Response,
[Parameter(Mandatory)] [Parameter(Mandatory)]
[AllowEmptyCollection()] [AllowEmptyCollection()]
[string[]]$ContentTypes [string[]]$ContentTypes