File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
modules/openapi-generator/src/main/resources/powershell
samples/client/petstore/powershell/src/PSPetstore/Private Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,10 @@ function DeserializeResponse {
211
211
[string[]]$ContentTypes
212
212
)
213
213
214
+ If ($ContentTypes -eq $null ) {
215
+ $ContentTypes = [string[]]@()
216
+ }
217
+
214
218
If ([string]::IsNullOrEmpty($ReturnType) -and $ContentTypes.Count -eq 0) { # void response
215
219
return $Response
216
220
} Elseif ($ReturnType -match '\[\]$') { # array
Original file line number Diff line number Diff line change @@ -198,6 +198,10 @@ function DeserializeResponse {
198
198
[string []]$ContentTypes
199
199
)
200
200
201
+ If ($ContentTypes -eq $null ) {
202
+ $ContentTypes = [string []]@ ()
203
+ }
204
+
201
205
If ([string ]::IsNullOrEmpty($ReturnType ) -and $ContentTypes.Count -eq 0 ) { # void response
202
206
return $Response
203
207
} Elseif ($ReturnType -match ' \[\]$' ) { # array
You can’t perform that action at this time.
0 commit comments