forked from loafle/openapi-generator-original
[PowerShell] Fix missing Content-Type header on a 204 response (#19340)
* Allow for binary response content * AllowNull for $ContentTypes * Update PSApiClient.ps1
This commit is contained in:
parent
d340e15f1a
commit
e70a9564e0
@ -235,6 +235,7 @@ function DeserializeResponse {
|
||||
[Parameter(Mandatory)]
|
||||
[Object]$Response,
|
||||
[Parameter(Mandatory)]
|
||||
[AllowNull()]
|
||||
[AllowEmptyCollection()]
|
||||
[string[]]$ContentTypes
|
||||
)
|
||||
|
@ -223,6 +223,7 @@ function DeserializeResponse {
|
||||
[Parameter(Mandatory)]
|
||||
[Object]$Response,
|
||||
[Parameter(Mandatory)]
|
||||
[AllowNull()]
|
||||
[AllowEmptyCollection()]
|
||||
[string[]]$ContentTypes
|
||||
)
|
||||
|
@ -239,6 +239,7 @@ function DeserializeResponse {
|
||||
[Parameter(Mandatory)]
|
||||
[Object]$Response,
|
||||
[Parameter(Mandatory)]
|
||||
[AllowNull()]
|
||||
[AllowEmptyCollection()]
|
||||
[string[]]$ContentTypes
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user