Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ use {{invokerPackage}}\ObjectSerializer;
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [{{#operation}}
'{{{operationId}}}' => [{{#consumes}}
'{{{mediaType}}}',{{/consumes}}
Expand Down Expand Up @@ -307,14 +307,21 @@ use {{invokerPackage}}\ObjectSerializer;
}
{{/-last}}
{{/responses}}
{{#responses}}{{#dataType}}{{#isRange}}{{^isWildcard}}
{{#responses}}
{{#dataType}}
{{#isRange}}
{{^isWildcard}}
if ($this->responseWithinRangeCode('{{code}}', $statusCode)) {
return $this->handleResponseWithDataType(
'{{{dataType}}}',
$request,
$response,
);
}{{/isWildcard}}{{/isRange}}{{/dataType}}{{/responses}}
}
{{/isWildcard}}
{{/isRange}}
{{/dataType}}
{{/responses}}

if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class AuthApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testAuthHttpBasic' => [
'application/json',
Expand Down Expand Up @@ -195,7 +195,6 @@ public function testAuthHttpBasicWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -454,7 +453,6 @@ public function testAuthHttpBearerWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class BodyApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testBinaryGif' => [
'application/json',
Expand Down Expand Up @@ -219,7 +219,6 @@ public function testBinaryGifWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -477,7 +476,6 @@ public function testBodyApplicationOctetstreamBinaryWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -749,7 +747,6 @@ public function testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1029,7 +1026,6 @@ public function testBodyMultipartFormdataSingleBinaryWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1303,7 +1299,6 @@ public function testEchoBodyAllOfPetWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1575,7 +1570,6 @@ public function testEchoBodyFreeFormObjectResponseStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1847,7 +1841,6 @@ public function testEchoBodyPetWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2119,7 +2112,6 @@ public function testEchoBodyPetResponseStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2391,7 +2383,6 @@ public function testEchoBodyStringEnumWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2663,7 +2654,6 @@ public function testEchoBodyTagResponseStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class FormApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testFormIntegerBooleanString' => [
'application/x-www-form-urlencoded',
Expand Down Expand Up @@ -210,7 +210,6 @@ public function testFormIntegerBooleanStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -500,7 +499,6 @@ public function testFormObjectMultipartWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -800,7 +798,6 @@ public function testFormOneofWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class HeaderApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testHeaderIntegerBooleanStringEnums' => [
'application/json',
Expand Down Expand Up @@ -212,7 +212,6 @@ public function testHeaderIntegerBooleanStringEnumsWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class PathApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath' => [
'application/json',
Expand Down Expand Up @@ -208,7 +208,6 @@ public function testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathE
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class QueryApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testEnumRefString' => [
'application/json',
Expand Down Expand Up @@ -230,7 +230,6 @@ public function testEnumRefStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -528,7 +527,6 @@ public function testQueryDatetimeDateStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -842,7 +840,6 @@ public function testQueryIntegerBooleanStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1148,7 +1145,6 @@ public function testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1422,7 +1418,6 @@ public function testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1696,7 +1691,6 @@ public function testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -1970,7 +1964,6 @@ public function testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2244,7 +2237,6 @@ public function testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2518,7 +2510,6 @@ public function testQueryStyleFormExplodeTrueObjectWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -2792,7 +2783,6 @@ public function testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -3070,7 +3060,6 @@ public function testQueryStyleJsonSerializationObjectWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
4 changes: 1 addition & 3 deletions samples/client/echo_api/php-nextgen/src/Api/AuthApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class AuthApi
*/
protected int $hostIndex;

/** @var string[] $contentTypes **/
/** @var array<string,string[]> $contentTypes **/
public const contentTypes = [
'testAuthHttpBasic' => [
'application/json',
Expand Down Expand Up @@ -195,7 +195,6 @@ public function testAuthHttpBasicWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down Expand Up @@ -454,7 +453,6 @@ public function testAuthHttpBearerWithHttpInfo(
$response,
);
}


if ($statusCode < 200 || $statusCode > 299) {
throw new ApiException(
Expand Down
Loading
Loading