forked from loafle/openapi-generator-original
[PHP] Fix group parameters in WithHttpInfo method (#2951)
* fix group paramaeter in php withhttpinfo method * update php openapi3 samples
This commit is contained in:
@@ -178,7 +178,7 @@ use {{invokerPackage}}\ObjectSerializer;
|
||||
*/
|
||||
public function {{operationId}}WithHttpInfo({{^vendorExtensions.x-group-parameters}}{{#allParams}}${{paramName}}{{^required}} = {{#defaultValue}}{{{.}}}{{/defaultValue}}{{^defaultValue}}null{{/defaultValue}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}$associative_array{{/vendorExtensions.x-group-parameters}})
|
||||
{
|
||||
$request = $this->{{operationId}}Request({{^vendorExtensions.x-group-parameters}}{{#allParams}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}{{#allParams}}$associative_array['{{paramName}}']{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/vendorExtensions.x-group-parameters}});
|
||||
$request = $this->{{operationId}}Request({{^vendorExtensions.x-group-parameters}}{{#allParams}}${{paramName}}{{#hasMore}}, {{/hasMore}}{{/allParams}}{{/vendorExtensions.x-group-parameters}}{{#vendorExtensions.x-group-parameters}}$associative_array{{/vendorExtensions.x-group-parameters}});
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
|
||||
@@ -2807,7 +2807,7 @@ class FakeApi
|
||||
*/
|
||||
public function testGroupParametersWithHttpInfo($associative_array)
|
||||
{
|
||||
$request = $this->testGroupParametersRequest($associative_array['required_string_group'], $associative_array['required_boolean_group'], $associative_array['required_int64_group'], $associative_array['string_group'], $associative_array['boolean_group'], $associative_array['int64_group']);
|
||||
$request = $this->testGroupParametersRequest($associative_array);
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
|
||||
@@ -2841,7 +2841,7 @@ class FakeApi
|
||||
*/
|
||||
public function testGroupParametersWithHttpInfo($associative_array)
|
||||
{
|
||||
$request = $this->testGroupParametersRequest($associative_array['required_string_group'], $associative_array['required_boolean_group'], $associative_array['required_int64_group'], $associative_array['string_group'], $associative_array['boolean_group'], $associative_array['int64_group']);
|
||||
$request = $this->testGroupParametersRequest($associative_array);
|
||||
|
||||
try {
|
||||
$options = $this->createHttpClientOption();
|
||||
|
||||
Reference in New Issue
Block a user