@@ -297,10 +297,10 @@ protected function fakeOuterBooleanSerializeRequest($body = null)
297
297
// for model (json/xml)
298
298
if (isset ($ _tempBody )) {
299
299
// $_tempBody is the method argument, if present
300
- $ httpBody = $ _tempBody ;
301
- // \stdClass has no __toString(), so we should encode it manually
302
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
303
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
300
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
301
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
302
+ } else {
303
+ $ httpBody = $ _tempBody ;
304
304
}
305
305
} elseif (count ($ formParams ) > 0 ) {
306
306
if ($ multipart ) {
@@ -554,10 +554,10 @@ protected function fakeOuterCompositeSerializeRequest($outer_composite = null)
554
554
// for model (json/xml)
555
555
if (isset ($ _tempBody )) {
556
556
// $_tempBody is the method argument, if present
557
- $ httpBody = $ _tempBody ;
558
- // \stdClass has no __toString(), so we should encode it manually
559
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
560
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
557
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
558
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
559
+ } else {
560
+ $ httpBody = $ _tempBody ;
561
561
}
562
562
} elseif (count ($ formParams ) > 0 ) {
563
563
if ($ multipart ) {
@@ -811,10 +811,10 @@ protected function fakeOuterNumberSerializeRequest($body = null)
811
811
// for model (json/xml)
812
812
if (isset ($ _tempBody )) {
813
813
// $_tempBody is the method argument, if present
814
- $ httpBody = $ _tempBody ;
815
- // \stdClass has no __toString(), so we should encode it manually
816
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
817
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
814
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
815
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
816
+ } else {
817
+ $ httpBody = $ _tempBody ;
818
818
}
819
819
} elseif (count ($ formParams ) > 0 ) {
820
820
if ($ multipart ) {
@@ -1068,10 +1068,10 @@ protected function fakeOuterStringSerializeRequest($body = null)
1068
1068
// for model (json/xml)
1069
1069
if (isset ($ _tempBody )) {
1070
1070
// $_tempBody is the method argument, if present
1071
- $ httpBody = $ _tempBody ;
1072
- // \stdClass has no __toString(), so we should encode it manually
1073
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1074
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
1071
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1072
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
1073
+ } else {
1074
+ $ httpBody = $ _tempBody ;
1075
1075
}
1076
1076
} elseif (count ($ formParams ) > 0 ) {
1077
1077
if ($ multipart ) {
@@ -1283,10 +1283,10 @@ protected function testBodyWithFileSchemaRequest($file_schema_test_class)
1283
1283
// for model (json/xml)
1284
1284
if (isset ($ _tempBody )) {
1285
1285
// $_tempBody is the method argument, if present
1286
- $ httpBody = $ _tempBody ;
1287
- // \stdClass has no __toString(), so we should encode it manually
1288
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1289
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
1286
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1287
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
1288
+ } else {
1289
+ $ httpBody = $ _tempBody ;
1290
1290
}
1291
1291
} elseif (count ($ formParams ) > 0 ) {
1292
1292
if ($ multipart ) {
@@ -1513,10 +1513,10 @@ protected function testBodyWithQueryParamsRequest($query, $user)
1513
1513
// for model (json/xml)
1514
1514
if (isset ($ _tempBody )) {
1515
1515
// $_tempBody is the method argument, if present
1516
- $ httpBody = $ _tempBody ;
1517
- // \stdClass has no __toString(), so we should encode it manually
1518
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1519
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
1516
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1517
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
1518
+ } else {
1519
+ $ httpBody = $ _tempBody ;
1520
1520
}
1521
1521
} elseif (count ($ formParams ) > 0 ) {
1522
1522
if ($ multipart ) {
@@ -1780,10 +1780,10 @@ protected function testClientModelRequest($client)
1780
1780
// for model (json/xml)
1781
1781
if (isset ($ _tempBody )) {
1782
1782
// $_tempBody is the method argument, if present
1783
- $ httpBody = $ _tempBody ;
1784
- // \stdClass has no __toString(), so we should encode it manually
1785
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1786
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
1783
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
1784
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
1785
+ } else {
1786
+ $ httpBody = $ _tempBody ;
1787
1787
}
1788
1788
} elseif (count ($ formParams ) > 0 ) {
1789
1789
if ($ multipart ) {
@@ -2183,10 +2183,10 @@ protected function testEndpointParametersRequest($number, $double, $pattern_with
2183
2183
// for model (json/xml)
2184
2184
if (isset ($ _tempBody )) {
2185
2185
// $_tempBody is the method argument, if present
2186
- $ httpBody = $ _tempBody ;
2187
- // \stdClass has no __toString(), so we should encode it manually
2188
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2189
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
2186
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2187
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
2188
+ } else {
2189
+ $ httpBody = $ _tempBody ;
2190
2190
}
2191
2191
} elseif (count ($ formParams ) > 0 ) {
2192
2192
if ($ multipart ) {
@@ -2470,10 +2470,10 @@ protected function testEnumParametersRequest($enum_header_string_array = null, $
2470
2470
// for model (json/xml)
2471
2471
if (isset ($ _tempBody )) {
2472
2472
// $_tempBody is the method argument, if present
2473
- $ httpBody = $ _tempBody ;
2474
- // \stdClass has no __toString(), so we should encode it manually
2475
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2476
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
2473
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2474
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
2475
+ } else {
2476
+ $ httpBody = $ _tempBody ;
2477
2477
}
2478
2478
} elseif (count ($ formParams ) > 0 ) {
2479
2479
if ($ multipart ) {
@@ -2689,10 +2689,10 @@ protected function testInlineAdditionalPropertiesRequest($request_body)
2689
2689
// for model (json/xml)
2690
2690
if (isset ($ _tempBody )) {
2691
2691
// $_tempBody is the method argument, if present
2692
- $ httpBody = $ _tempBody ;
2693
- // \stdClass has no __toString(), so we should encode it manually
2694
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2695
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
2692
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2693
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
2694
+ } else {
2695
+ $ httpBody = $ _tempBody ;
2696
2696
}
2697
2697
} elseif (count ($ formParams ) > 0 ) {
2698
2698
if ($ multipart ) {
@@ -2924,10 +2924,10 @@ protected function testJsonFormDataRequest($param, $param2)
2924
2924
// for model (json/xml)
2925
2925
if (isset ($ _tempBody )) {
2926
2926
// $_tempBody is the method argument, if present
2927
- $ httpBody = $ _tempBody ;
2928
- // \stdClass has no __toString(), so we should encode it manually
2929
- if ( $ httpBody instanceof \stdClass && $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2930
- $ httpBody = \ GuzzleHttp \json_encode ( $ httpBody ) ;
2927
+ if ( $ headers [ ' Content-Type ' ] === ' application/json ' ) {
2928
+ $ httpBody = \ GuzzleHttp \json_encode (ObjectSerializer:: sanitizeForSerialization ( $ _tempBody ));
2929
+ } else {
2930
+ $ httpBody = $ _tempBody ;
2931
2931
}
2932
2932
} elseif (count ($ formParams ) > 0 ) {
2933
2933
if ($ multipart ) {
0 commit comments