forked from loafle/openapi-generator-original
Conditionally force array context when converting to JSON (#19262)
This commit is contained in:
@@ -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}}
|
||||
|
||||
Reference in New Issue
Block a user