Skip to content

Commit 6da3dc5

Browse files
authored
Allow for binary response content (#19331)
1 parent 07baddf commit 6da3dc5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

modules/openapi-generator/src/main/resources/powershell/api_client.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ function DeserializeResponse {
233233
[AllowEmptyString()]
234234
[string]$ReturnType,
235235
[Parameter(Mandatory)]
236-
[AllowEmptyString()]
237-
[string]$Response,
236+
[Object]$Response,
238237
[Parameter(Mandatory)]
239238
[AllowEmptyCollection()]
240239
[string[]]$ContentTypes

samples/client/echo_api/powershell/src/PSOpenAPITools/Private/ApiClient.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,7 @@ function DeserializeResponse {
221221
[AllowEmptyString()]
222222
[string]$ReturnType,
223223
[Parameter(Mandatory)]
224-
[AllowEmptyString()]
225-
[string]$Response,
224+
[Object]$Response,
226225
[Parameter(Mandatory)]
227226
[AllowEmptyCollection()]
228227
[string[]]$ContentTypes

samples/client/petstore/powershell/src/PSPetstore/Private/PSApiClient.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,7 @@ function DeserializeResponse {
237237
[AllowEmptyString()]
238238
[string]$ReturnType,
239239
[Parameter(Mandatory)]
240-
[AllowEmptyString()]
241-
[string]$Response,
240+
[Object]$Response,
242241
[Parameter(Mandatory)]
243242
[AllowEmptyCollection()]
244243
[string[]]$ContentTypes

0 commit comments

Comments
 (0)