File tree 8 files changed +10
-10
lines changed
modules/openapi-generator/src/main/resources/php-nextgen
php-nextgen-streaming/src/Api
petstore/php-nextgen/OpenAPIClient-php/src/Api
8 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -711,7 +711,7 @@ use {{invokerPackage}}\ObjectSerializer;
711
711
{ {#queryParams} }
712
712
// query params
713
713
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
714
- ${ {paramName} },
714
+ ${ {paramName} }{ {#isEnumRef } }->value { {/isEnumRef } } ,
715
715
'{ {baseName} }', // param base name
716
716
'{ {#schema} }{ {openApiType} }{ {/schema} }', // openApiType
717
717
'{ {style} }', // style
@@ -728,7 +728,7 @@ use {{invokerPackage}}\ObjectSerializer;
728
728
}
729
729
{ {/collectionFormat} }
730
730
if (${ {paramName} } !== null) {
731
- $headerParams [' {{baseName}}' ] = ObjectSerializer::toHeaderValue(${{paramName} });
731
+ $headerParams [' {{baseName}}' ] = ObjectSerializer::toHeaderValue(${{paramName} }{ {#isEnumRef } }->value { {/isEnumRef } } );
732
732
}
733
733
{ {/headerParams} }
734
734
@@ -742,7 +742,7 @@ use {{invokerPackage}}\ObjectSerializer;
742
742
if (${ {paramName} } !== null) {
743
743
$resourcePath = str_replace(
744
744
' {' . ' {{baseName}}' . ' }' ,
745
- ObjectSerializer::toPathValue(${{paramName} }),
745
+ ObjectSerializer::toPathValue(${{paramName} }{ {#isEnumRef } }->value { {/isEnumRef } } ),
746
746
$resourcePath
747
747
);
748
748
}
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ public function testHeaderIntegerBooleanStringEnumsRequest(
438
438
}
439
439
// header params
440
440
if ($ enum_ref_string_header !== null ) {
441
- $ headerParams ['enum_ref_string_header ' ] = ObjectSerializer::toHeaderValue ($ enum_ref_string_header );
441
+ $ headerParams ['enum_ref_string_header ' ] = ObjectSerializer::toHeaderValue ($ enum_ref_string_header-> value );
442
442
}
443
443
444
444
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE
462
462
if ($ enum_ref_string_path !== null ) {
463
463
$ resourcePath = str_replace (
464
464
'{ ' . 'enum_ref_string_path ' . '} ' ,
465
- ObjectSerializer::toPathValue ($ enum_ref_string_path ),
465
+ ObjectSerializer::toPathValue ($ enum_ref_string_path-> value ),
466
466
$ resourcePath
467
467
);
468
468
}
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ public function testEnumRefStringRequest(
424
424
) ?? []);
425
425
// query params
426
426
$ queryParams = array_merge ($ queryParams , ObjectSerializer::toQueryValue (
427
- $ enum_ref_string_query ,
427
+ $ enum_ref_string_query-> value ,
428
428
'enum_ref_string_query ' , // param base name
429
429
'StringEnumRef ' , // openApiType
430
430
'form ' , // style
Original file line number Diff line number Diff line change @@ -438,7 +438,7 @@ public function testHeaderIntegerBooleanStringEnumsRequest(
438
438
}
439
439
// header params
440
440
if ($ enum_ref_string_header !== null ) {
441
- $ headerParams ['enum_ref_string_header ' ] = ObjectSerializer::toHeaderValue ($ enum_ref_string_header );
441
+ $ headerParams ['enum_ref_string_header ' ] = ObjectSerializer::toHeaderValue ($ enum_ref_string_header-> value );
442
442
}
443
443
444
444
Original file line number Diff line number Diff line change @@ -462,7 +462,7 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE
462
462
if ($ enum_ref_string_path !== null ) {
463
463
$ resourcePath = str_replace (
464
464
'{ ' . 'enum_ref_string_path ' . '} ' ,
465
- ObjectSerializer::toPathValue ($ enum_ref_string_path ),
465
+ ObjectSerializer::toPathValue ($ enum_ref_string_path-> value ),
466
466
$ resourcePath
467
467
);
468
468
}
Original file line number Diff line number Diff line change @@ -424,7 +424,7 @@ public function testEnumRefStringRequest(
424
424
) ?? []);
425
425
// query params
426
426
$ queryParams = array_merge ($ queryParams , ObjectSerializer::toQueryValue (
427
- $ enum_ref_string_query ,
427
+ $ enum_ref_string_query-> value ,
428
428
'enum_ref_string_query ' , // param base name
429
429
'StringEnumRef ' , // openApiType
430
430
'form ' , // style
Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ public function fakeEnumEndpointRequest(
773
773
774
774
// query params
775
775
$ queryParams = array_merge ($ queryParams , ObjectSerializer::toQueryValue (
776
- $ enum_class ,
776
+ $ enum_class-> value ,
777
777
'enum-class ' , // param base name
778
778
'EnumClass ' , // openApiType
779
779
'form ' , // style
You can’t perform that action at this time.
0 commit comments