Skip to content

Commit b2f7add

Browse files
committed
Rerun generator with 7.2.0
1 parent d3a5da8 commit b2f7add

File tree

78 files changed

+920
-341
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+920
-341
lines changed

lib/Api/CategoriesApi.php

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0.0
1818
* Generated by: https://openapi-generator.tech
19-
* OpenAPI Generator version: 7.0.0
19+
* OpenAPI Generator version: 7.2.0
2020
*/
2121

2222
/**
@@ -76,7 +76,7 @@ class CategoriesApi
7676
],
7777
];
7878

79-
/**
79+
/**
8080
* @param ClientInterface $client
8181
* @param Configuration $config
8282
* @param HeaderSelector $selector
@@ -132,7 +132,7 @@ public function getConfig()
132132
* @param bool $classes_only A flag used to only return classes (optional)
133133
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
134134
*
135-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
135+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
136136
* @throws \InvalidArgumentException
137137
* @return \Aternos\CurseForgeApi\Model\GetCategoriesResponse
138138
*/
@@ -152,7 +152,7 @@ public function getCategories($game_id, $class_id = null, $classes_only = null,
152152
* @param bool $classes_only A flag used to only return classes (optional)
153153
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getCategories'] to see the possible values for this operation
154154
*
155-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
155+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
156156
* @throws \InvalidArgumentException
157157
* @return array of \Aternos\CurseForgeApi\Model\GetCategoriesResponse, HTTP status code, HTTP response headers (array of strings)
158158
*/
@@ -202,7 +202,19 @@ public function getCategoriesWithHttpInfo($game_id, $class_id = null, $classes_o
202202
} else {
203203
$content = (string) $response->getBody();
204204
if ('\Aternos\CurseForgeApi\Model\GetCategoriesResponse' !== 'string') {
205-
$content = json_decode($content);
205+
try {
206+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
207+
} catch (\JsonException $exception) {
208+
throw new ApiException(
209+
sprintf(
210+
'Error JSON decoding server response (%s)',
211+
$request->getUri()
212+
),
213+
$statusCode,
214+
$response->getHeaders(),
215+
$content
216+
);
217+
}
206218
}
207219
}
208220

@@ -219,7 +231,19 @@ public function getCategoriesWithHttpInfo($game_id, $class_id = null, $classes_o
219231
} else {
220232
$content = (string) $response->getBody();
221233
if ($returnType !== 'string') {
222-
$content = json_decode($content);
234+
try {
235+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
236+
} catch (\JsonException $exception) {
237+
throw new ApiException(
238+
sprintf(
239+
'Error JSON decoding server response (%s)',
240+
$request->getUri()
241+
),
242+
$statusCode,
243+
$response->getHeaders(),
244+
$content
245+
);
246+
}
223247
}
224248
}
225249

lib/Api/FilesApi.php

Lines changed: 142 additions & 22 deletions
Large diffs are not rendered by default.

lib/Api/FingerprintsApi.php

Lines changed: 114 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0.0
1818
* Generated by: https://openapi-generator.tech
19-
* OpenAPI Generator version: 7.0.0
19+
* OpenAPI Generator version: 7.2.0
2020
*/
2121

2222
/**
@@ -85,7 +85,7 @@ class FingerprintsApi
8585
],
8686
];
8787

88-
/**
88+
/**
8989
* @param ClientInterface $client
9090
* @param Configuration $config
9191
* @param HeaderSelector $selector
@@ -139,7 +139,7 @@ public function getConfig()
139139
* @param \Aternos\CurseForgeApi\Model\GetFuzzyMatchesRequestBody $get_fuzzy_matches_request_body get_fuzzy_matches_request_body (required)
140140
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintFuzzyMatches'] to see the possible values for this operation
141141
*
142-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
142+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
143143
* @throws \InvalidArgumentException
144144
* @return \Aternos\CurseForgeApi\Model\GetFingerprintFuzzyMatchesResponse
145145
*/
@@ -157,7 +157,7 @@ public function getFingerprintFuzzyMatches($get_fuzzy_matches_request_body, stri
157157
* @param \Aternos\CurseForgeApi\Model\GetFuzzyMatchesRequestBody $get_fuzzy_matches_request_body (required)
158158
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintFuzzyMatches'] to see the possible values for this operation
159159
*
160-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
160+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
161161
* @throws \InvalidArgumentException
162162
* @return array of \Aternos\CurseForgeApi\Model\GetFingerprintFuzzyMatchesResponse, HTTP status code, HTTP response headers (array of strings)
163163
*/
@@ -207,7 +207,19 @@ public function getFingerprintFuzzyMatchesWithHttpInfo($get_fuzzy_matches_reques
207207
} else {
208208
$content = (string) $response->getBody();
209209
if ('\Aternos\CurseForgeApi\Model\GetFingerprintFuzzyMatchesResponse' !== 'string') {
210-
$content = json_decode($content);
210+
try {
211+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
212+
} catch (\JsonException $exception) {
213+
throw new ApiException(
214+
sprintf(
215+
'Error JSON decoding server response (%s)',
216+
$request->getUri()
217+
),
218+
$statusCode,
219+
$response->getHeaders(),
220+
$content
221+
);
222+
}
211223
}
212224
}
213225

@@ -224,7 +236,19 @@ public function getFingerprintFuzzyMatchesWithHttpInfo($get_fuzzy_matches_reques
224236
} else {
225237
$content = (string) $response->getBody();
226238
if ($returnType !== 'string') {
227-
$content = json_decode($content);
239+
try {
240+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
241+
} catch (\JsonException $exception) {
242+
throw new ApiException(
243+
sprintf(
244+
'Error JSON decoding server response (%s)',
245+
$request->getUri()
246+
),
247+
$statusCode,
248+
$response->getHeaders(),
249+
$content
250+
);
251+
}
228252
}
229253
}
230254

@@ -427,7 +451,7 @@ public function getFingerprintFuzzyMatchesRequest($get_fuzzy_matches_request_bod
427451
* @param \Aternos\CurseForgeApi\Model\GetFuzzyMatchesRequestBody $get_fuzzy_matches_request_body get_fuzzy_matches_request_body (required)
428452
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintFuzzyMatchesByGame'] to see the possible values for this operation
429453
*
430-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
454+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
431455
* @throws \InvalidArgumentException
432456
* @return \Aternos\CurseForgeApi\Model\GetFingerprintFuzzyMatchesResponse
433457
*/
@@ -446,7 +470,7 @@ public function getFingerprintFuzzyMatchesByGame($game_id, $get_fuzzy_matches_re
446470
* @param \Aternos\CurseForgeApi\Model\GetFuzzyMatchesRequestBody $get_fuzzy_matches_request_body (required)
447471
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintFuzzyMatchesByGame'] to see the possible values for this operation
448472
*
449-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
473+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
450474
* @throws \InvalidArgumentException
451475
* @return array of \Aternos\CurseForgeApi\Model\GetFingerprintFuzzyMatchesResponse, HTTP status code, HTTP response headers (array of strings)
452476
*/
@@ -496,7 +520,19 @@ public function getFingerprintFuzzyMatchesByGameWithHttpInfo($game_id, $get_fuzz
496520
} else {
497521
$content = (string) $response->getBody();
498522
if ('\Aternos\CurseForgeApi\Model\GetFingerprintFuzzyMatchesResponse' !== 'string') {
499-
$content = json_decode($content);
523+
try {
524+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
525+
} catch (\JsonException $exception) {
526+
throw new ApiException(
527+
sprintf(
528+
'Error JSON decoding server response (%s)',
529+
$request->getUri()
530+
),
531+
$statusCode,
532+
$response->getHeaders(),
533+
$content
534+
);
535+
}
500536
}
501537
}
502538

@@ -513,7 +549,19 @@ public function getFingerprintFuzzyMatchesByGameWithHttpInfo($game_id, $get_fuzz
513549
} else {
514550
$content = (string) $response->getBody();
515551
if ($returnType !== 'string') {
516-
$content = json_decode($content);
552+
try {
553+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
554+
} catch (\JsonException $exception) {
555+
throw new ApiException(
556+
sprintf(
557+
'Error JSON decoding server response (%s)',
558+
$request->getUri()
559+
),
560+
$statusCode,
561+
$response->getHeaders(),
562+
$content
563+
);
564+
}
517565
}
518566
}
519567

@@ -733,7 +781,7 @@ public function getFingerprintFuzzyMatchesByGameRequest($game_id, $get_fuzzy_mat
733781
* @param \Aternos\CurseForgeApi\Model\GetFingerprintMatchesRequestBody $get_fingerprint_matches_request_body get_fingerprint_matches_request_body (required)
734782
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintMatches'] to see the possible values for this operation
735783
*
736-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
784+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
737785
* @throws \InvalidArgumentException
738786
* @return \Aternos\CurseForgeApi\Model\GetFingerprintMatchesResponse
739787
*/
@@ -751,7 +799,7 @@ public function getFingerprintMatches($get_fingerprint_matches_request_body, str
751799
* @param \Aternos\CurseForgeApi\Model\GetFingerprintMatchesRequestBody $get_fingerprint_matches_request_body (required)
752800
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintMatches'] to see the possible values for this operation
753801
*
754-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
802+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
755803
* @throws \InvalidArgumentException
756804
* @return array of \Aternos\CurseForgeApi\Model\GetFingerprintMatchesResponse, HTTP status code, HTTP response headers (array of strings)
757805
*/
@@ -801,7 +849,19 @@ public function getFingerprintMatchesWithHttpInfo($get_fingerprint_matches_reque
801849
} else {
802850
$content = (string) $response->getBody();
803851
if ('\Aternos\CurseForgeApi\Model\GetFingerprintMatchesResponse' !== 'string') {
804-
$content = json_decode($content);
852+
try {
853+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
854+
} catch (\JsonException $exception) {
855+
throw new ApiException(
856+
sprintf(
857+
'Error JSON decoding server response (%s)',
858+
$request->getUri()
859+
),
860+
$statusCode,
861+
$response->getHeaders(),
862+
$content
863+
);
864+
}
805865
}
806866
}
807867

@@ -818,7 +878,19 @@ public function getFingerprintMatchesWithHttpInfo($get_fingerprint_matches_reque
818878
} else {
819879
$content = (string) $response->getBody();
820880
if ($returnType !== 'string') {
821-
$content = json_decode($content);
881+
try {
882+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
883+
} catch (\JsonException $exception) {
884+
throw new ApiException(
885+
sprintf(
886+
'Error JSON decoding server response (%s)',
887+
$request->getUri()
888+
),
889+
$statusCode,
890+
$response->getHeaders(),
891+
$content
892+
);
893+
}
822894
}
823895
}
824896

@@ -1021,7 +1093,7 @@ public function getFingerprintMatchesRequest($get_fingerprint_matches_request_bo
10211093
* @param \Aternos\CurseForgeApi\Model\GetFingerprintMatchesRequestBody $get_fingerprint_matches_request_body get_fingerprint_matches_request_body (required)
10221094
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintMatchesByGame'] to see the possible values for this operation
10231095
*
1024-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
1096+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
10251097
* @throws \InvalidArgumentException
10261098
* @return \Aternos\CurseForgeApi\Model\GetFingerprintMatchesResponse
10271099
*/
@@ -1040,7 +1112,7 @@ public function getFingerprintMatchesByGame($game_id, $get_fingerprint_matches_r
10401112
* @param \Aternos\CurseForgeApi\Model\GetFingerprintMatchesRequestBody $get_fingerprint_matches_request_body (required)
10411113
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['getFingerprintMatchesByGame'] to see the possible values for this operation
10421114
*
1043-
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response
1115+
* @throws \Aternos\CurseForgeApi\ApiException on non-2xx response or if the response body is not in the expected format
10441116
* @throws \InvalidArgumentException
10451117
* @return array of \Aternos\CurseForgeApi\Model\GetFingerprintMatchesResponse, HTTP status code, HTTP response headers (array of strings)
10461118
*/
@@ -1090,7 +1162,19 @@ public function getFingerprintMatchesByGameWithHttpInfo($game_id, $get_fingerpri
10901162
} else {
10911163
$content = (string) $response->getBody();
10921164
if ('\Aternos\CurseForgeApi\Model\GetFingerprintMatchesResponse' !== 'string') {
1093-
$content = json_decode($content);
1165+
try {
1166+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1167+
} catch (\JsonException $exception) {
1168+
throw new ApiException(
1169+
sprintf(
1170+
'Error JSON decoding server response (%s)',
1171+
$request->getUri()
1172+
),
1173+
$statusCode,
1174+
$response->getHeaders(),
1175+
$content
1176+
);
1177+
}
10941178
}
10951179
}
10961180

@@ -1107,7 +1191,19 @@ public function getFingerprintMatchesByGameWithHttpInfo($game_id, $get_fingerpri
11071191
} else {
11081192
$content = (string) $response->getBody();
11091193
if ($returnType !== 'string') {
1110-
$content = json_decode($content);
1194+
try {
1195+
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
1196+
} catch (\JsonException $exception) {
1197+
throw new ApiException(
1198+
sprintf(
1199+
'Error JSON decoding server response (%s)',
1200+
$request->getUri()
1201+
),
1202+
$statusCode,
1203+
$response->getHeaders(),
1204+
$content
1205+
);
1206+
}
11111207
}
11121208
}
11131209

0 commit comments

Comments
 (0)