File tree 2 files changed +3
-3
lines changed
modules/openapi-generator/src/main/resources/powershell
samples/client/petstore/powershell/src/PSPetstore/Api
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ function {{{vendorExtensions.x-powershell-method-name}}} {
188
188
{ {/isNullable} }
189
189
{ {/required} }
190
190
{ {#isArray} }
191
- $LocalVarBodyParameter = , ${ {{paramName} }} | ConvertTo-Json -Depth 100
191
+ $LocalVarBodyParameter = ConvertTo-Json @( ${ {{paramName} }}) -Depth 100
192
192
{ {/isArray} }
193
193
{ {^isArray} }
194
194
$LocalVarBodyParameter = ${ {{paramName} }} | ConvertTo-Json -Depth 100
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ function New-PSUsersWithArrayInput {
133
133
throw " Error! The required parameter `User` missing when calling createUsersWithArrayInput."
134
134
}
135
135
136
- $LocalVarBodyParameter = , $User | ConvertTo-Json - Depth 100
136
+ $LocalVarBodyParameter = ConvertTo-Json @ ( $User ) - Depth 100
137
137
138
138
$LocalVarResult = Invoke-PSApiClient - Method ' POST' `
139
139
- Uri $LocalVarUri `
@@ -208,7 +208,7 @@ function New-PSUsersWithListInput {
208
208
throw " Error! The required parameter `User` missing when calling createUsersWithListInput."
209
209
}
210
210
211
- $LocalVarBodyParameter = , $User | ConvertTo-Json - Depth 100
211
+ $LocalVarBodyParameter = ConvertTo-Json @ ( $User ) - Depth 100
212
212
213
213
$LocalVarResult = Invoke-PSApiClient - Method ' POST' `
214
214
- Uri $LocalVarUri `
You can’t perform that action at this time.
0 commit comments