Skip to content

Commit

Permalink
Merge branch 'fix-array-context' of https://github.com/condorcorde/op…
Browse files Browse the repository at this point in the history
…enapi-generator into condorcorde-fix-array-context
  • Loading branch information
wing328 committed Jul 30, 2024
2 parents d12cc0b + 4de37b6 commit 34a95c4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,12 @@ function {{{vendorExtensions.x-powershell-method-name}}} {

{{/isNullable}}
{{/required}}
{{#isArray}}
$LocalVarBodyParameter = ,${{{paramName}}} | ConvertTo-Json -Depth 100
{{/isArray}}
{{^isArray}}
$LocalVarBodyParameter = ${{{paramName}}} | ConvertTo-Json -Depth 100
{{/isArray}}

{{/bodyParam}}
{{#authMethods}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function New-PSUsersWithArrayInput {
throw "Error! The required parameter `User` missing when calling createUsersWithArrayInput."
}

$LocalVarBodyParameter = $User | ConvertTo-Json -Depth 100
$LocalVarBodyParameter = ,$User | ConvertTo-Json -Depth 100

$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
Expand Down Expand Up @@ -208,7 +208,7 @@ function New-PSUsersWithListInput {
throw "Error! The required parameter `User` missing when calling createUsersWithListInput."
}

$LocalVarBodyParameter = $User | ConvertTo-Json -Depth 100
$LocalVarBodyParameter = ,$User | ConvertTo-Json -Depth 100

$LocalVarResult = Invoke-PSApiClient -Method 'POST' `
-Uri $LocalVarUri `
Expand Down

0 comments on commit 34a95c4

Please sign in to comment.