Skip to content
This repository was archived by the owner on Mar 28, 2025. It is now read-only.

Commit de33395

Browse files
committed
Bump version & add manual fixes
1 parent 79e0d85 commit de33395

File tree

96 files changed

+107
-107
lines changed

Some content is hidden

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

96 files changed

+107
-107
lines changed

Api/ApiServer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/AuthenticationApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/MediaLibraryApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/NotificationsApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/ProjectsApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/SearchApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/UserApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Api/UtilityApiInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Controller/AuthenticationController.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/
@@ -227,7 +227,7 @@ public function authenticationOauthPostAction(Request $request)
227227

228228
// Deserialize the input values that needs it
229229
try {
230-
$inputFormat = $request->getMimeType($request->getRequestFormat());
230+
$inputFormat = $request->getMimeType($request->getContentTypeFormat());
231231
$o_auth_login_request = $this->deserialize($o_auth_login_request, 'OpenAPI\Server\Model\OAuthLoginRequest', $inputFormat);
232232
} catch (SerializerRuntimeException $exception) {
233233
return $this->createBadRequestResponse($exception->getMessage());
@@ -330,7 +330,7 @@ public function authenticationPostAction(Request $request)
330330

331331
// Deserialize the input values that needs it
332332
try {
333-
$inputFormat = $request->getMimeType($request->getRequestFormat());
333+
$inputFormat = $request->getMimeType($request->getContentTypeFormat());
334334
$login_request = $this->deserialize($login_request, 'OpenAPI\Server\Model\LoginRequest', $inputFormat);
335335
} catch (SerializerRuntimeException $exception) {
336336
return $this->createBadRequestResponse($exception->getMessage());
@@ -433,7 +433,7 @@ public function authenticationRefreshPostAction(Request $request)
433433

434434
// Deserialize the input values that needs it
435435
try {
436-
$inputFormat = $request->getMimeType($request->getRequestFormat());
436+
$inputFormat = $request->getMimeType($request->getContentTypeFormat());
437437
$refresh_request = $this->deserialize($refresh_request, 'OpenAPI\Server\Model\RefreshRequest', $inputFormat);
438438
} catch (SerializerRuntimeException $exception) {
439439
return $this->createBadRequestResponse($exception->getMessage());
@@ -535,7 +535,7 @@ public function authenticationUpgradePostAction(Request $request)
535535

536536
// Deserialize the input values that needs it
537537
try {
538-
$inputFormat = $request->getMimeType($request->getRequestFormat());
538+
$inputFormat = $request->getMimeType($request->getContentTypeFormat());
539539
$upgrade_token_request = $this->deserialize($upgrade_token_request, 'OpenAPI\Server\Model\UpgradeTokenRequest', $inputFormat);
540540
} catch (SerializerRuntimeException $exception) {
541541
return $this->createBadRequestResponse($exception->getMessage());

Controller/Controller.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* API for the Catrobat Share Platform
1818
*
19-
* The version of the OpenAPI document: v1.4.1
19+
* The version of the OpenAPI document: v1.4.2
2020
* Contact: [email protected]
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/
@@ -214,7 +214,7 @@ protected function getOutputFormat(string $accept, array $produced): ?string
214214
public static function isContentTypeAllowed(Request $request, array $consumes = []): bool
215215
{
216216
if (!empty($consumes) && '*/*' !== $consumes[0]) {
217-
$currentFormat = $request->getRequestFormat();
217+
$currentFormat = $request->getContentTypeFormat();
218218
foreach ($consumes as $mimeType) {
219219
// canonize mime type
220220
if (is_string($mimeType) && false !== $pos = strpos($mimeType, ';')) {
@@ -225,7 +225,7 @@ public static function isContentTypeAllowed(Request $request, array $consumes =
225225
// add custom format to request
226226
$format = $mimeType;
227227
$request->setFormat($format, $format);
228-
$currentFormat = $request->getRequestFormat();
228+
$currentFormat = $request->getContentTypeFormat();
229229
}
230230

231231
if ($format === $currentFormat) {

0 commit comments

Comments
 (0)