@@ -598,7 +598,7 @@ public function testBodyApplicationOctetstreamBinaryRequest(
598598 if (isset ($ body )) {
599599 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
600600 # if Content-Type contains "application/json", json_encode the body
601- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ body ));
601+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ body ), JSON_THROW_ON_ERROR );
602602 } else {
603603 $ httpBody = $ body ;
604604 }
@@ -619,7 +619,7 @@ public function testBodyApplicationOctetstreamBinaryRequest(
619619
620620 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
621621 # if Content-Type contains "application/json", json_encode the form parameters
622- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
622+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
623623 } else {
624624 // for HTTP post (form)
625625 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -896,7 +896,7 @@ public function testBodyMultipartFormdataArrayOfBinaryRequest(
896896
897897 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
898898 # if Content-Type contains "application/json", json_encode the form parameters
899- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
899+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
900900 } else {
901901 // for HTTP post (form)
902902 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -1167,7 +1167,7 @@ public function testBodyMultipartFormdataSingleBinaryRequest(
11671167
11681168 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
11691169 # if Content-Type contains "application/json", json_encode the form parameters
1170- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
1170+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
11711171 } else {
11721172 // for HTTP post (form)
11731173 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -1415,7 +1415,7 @@ public function testEchoBodyAllOfPetRequest(
14151415 if (isset ($ pet )) {
14161416 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
14171417 # if Content-Type contains "application/json", json_encode the body
1418- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ pet ));
1418+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ pet ), JSON_THROW_ON_ERROR );
14191419 } else {
14201420 $ httpBody = $ pet ;
14211421 }
@@ -1436,7 +1436,7 @@ public function testEchoBodyAllOfPetRequest(
14361436
14371437 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
14381438 # if Content-Type contains "application/json", json_encode the form parameters
1439- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
1439+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
14401440 } else {
14411441 // for HTTP post (form)
14421442 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -1684,7 +1684,7 @@ public function testEchoBodyFreeFormObjectResponseStringRequest(
16841684 if (isset ($ body )) {
16851685 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
16861686 # if Content-Type contains "application/json", json_encode the body
1687- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ body ));
1687+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ body ), JSON_THROW_ON_ERROR );
16881688 } else {
16891689 $ httpBody = $ body ;
16901690 }
@@ -1705,7 +1705,7 @@ public function testEchoBodyFreeFormObjectResponseStringRequest(
17051705
17061706 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
17071707 # if Content-Type contains "application/json", json_encode the form parameters
1708- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
1708+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
17091709 } else {
17101710 // for HTTP post (form)
17111711 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -1953,7 +1953,7 @@ public function testEchoBodyPetRequest(
19531953 if (isset ($ pet )) {
19541954 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
19551955 # if Content-Type contains "application/json", json_encode the body
1956- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ pet ));
1956+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ pet ), JSON_THROW_ON_ERROR );
19571957 } else {
19581958 $ httpBody = $ pet ;
19591959 }
@@ -1974,7 +1974,7 @@ public function testEchoBodyPetRequest(
19741974
19751975 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
19761976 # if Content-Type contains "application/json", json_encode the form parameters
1977- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
1977+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
19781978 } else {
19791979 // for HTTP post (form)
19801980 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -2222,7 +2222,7 @@ public function testEchoBodyPetResponseStringRequest(
22222222 if (isset ($ pet )) {
22232223 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
22242224 # if Content-Type contains "application/json", json_encode the body
2225- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ pet ));
2225+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ pet ), JSON_THROW_ON_ERROR );
22262226 } else {
22272227 $ httpBody = $ pet ;
22282228 }
@@ -2243,7 +2243,7 @@ public function testEchoBodyPetResponseStringRequest(
22432243
22442244 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
22452245 # if Content-Type contains "application/json", json_encode the form parameters
2246- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
2246+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
22472247 } else {
22482248 // for HTTP post (form)
22492249 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -2491,7 +2491,7 @@ public function testEchoBodyStringEnumRequest(
24912491 if (isset ($ body )) {
24922492 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
24932493 # if Content-Type contains "application/json", json_encode the body
2494- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ body ));
2494+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ body ), JSON_THROW_ON_ERROR );
24952495 } else {
24962496 $ httpBody = $ body ;
24972497 }
@@ -2512,7 +2512,7 @@ public function testEchoBodyStringEnumRequest(
25122512
25132513 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
25142514 # if Content-Type contains "application/json", json_encode the form parameters
2515- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
2515+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
25162516 } else {
25172517 // for HTTP post (form)
25182518 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
@@ -2760,7 +2760,7 @@ public function testEchoBodyTagResponseStringRequest(
27602760 if (isset ($ tag )) {
27612761 if (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
27622762 # if Content-Type contains "application/json", json_encode the body
2763- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ tag ));
2763+ $ httpBody = json_encode (ObjectSerializer::sanitizeForSerialization ($ tag ), JSON_THROW_ON_ERROR );
27642764 } else {
27652765 $ httpBody = $ tag ;
27662766 }
@@ -2781,7 +2781,7 @@ public function testEchoBodyTagResponseStringRequest(
27812781
27822782 } elseif (stripos ($ headers ['Content-Type ' ], 'application/json ' ) !== false ) {
27832783 # if Content-Type contains "application/json", json_encode the form parameters
2784- $ httpBody = \ GuzzleHttp \Utils:: jsonEncode ($ formParams );
2784+ $ httpBody = json_encode ($ formParams, JSON_THROW_ON_ERROR );
27852785 } else {
27862786 // for HTTP post (form)
27872787 $ httpBody = ObjectSerializer::buildQuery ($ formParams );
0 commit comments