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

Commit 79e0d85

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

File tree

96 files changed

+123
-123
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

+123
-123
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/

Controller/AuthenticationController.php

Lines changed: 9 additions & 9 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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
2121
* Generated by: https://github.com/openapitools/openapi-generator.git
2222
*/
@@ -59,7 +59,7 @@ class AuthenticationController extends Controller
5959
public function authenticationDeleteAction(Request $request)
6060
{
6161
// Handle authentication
62-
// Authentication 'BearerAuth' required
62+
$securityBearerAuth = $request->headers->get('authorization');
6363

6464
// Read out all input parameter values into variables
6565
$x_refresh = $request->headers->get('X-Refresh');
@@ -143,7 +143,7 @@ public function authenticationDeleteAction(Request $request)
143143
public function authenticationGetAction(Request $request)
144144
{
145145
// Handle authentication
146-
// Authentication 'BearerAuth' required
146+
$securityBearerAuth = $request->headers->get('authorization');
147147

148148
// Read out all input parameter values into variables
149149

@@ -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->getContentType());
230+
$inputFormat = $request->getMimeType($request->getRequestFormat());
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());
@@ -321,7 +321,7 @@ public function authenticationPostAction(Request $request)
321321
}
322322

323323
// Handle authentication
324-
// Authentication 'BearerAuth' required
324+
$securityBearerAuth = $request->headers->get('authorization');
325325

326326
// Read out all input parameter values into variables
327327
$login_request = $request->getContent();
@@ -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->getContentType());
333+
$inputFormat = $request->getMimeType($request->getRequestFormat());
334334
$login_request = $this->deserialize($login_request, 'OpenAPI\Server\Model\LoginRequest', $inputFormat);
335335
} catch (SerializerRuntimeException $exception) {
336336
return $this->createBadRequestResponse($exception->getMessage());
@@ -424,7 +424,7 @@ public function authenticationRefreshPostAction(Request $request)
424424
}
425425

426426
// Handle authentication
427-
// Authentication 'BearerAuth' required
427+
$securityBearerAuth = $request->headers->get('authorization');
428428

429429
// Read out all input parameter values into variables
430430
$refresh_request = $request->getContent();
@@ -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->getContentType());
436+
$inputFormat = $request->getMimeType($request->getRequestFormat());
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->getContentType());
538+
$inputFormat = $request->getMimeType($request->getRequestFormat());
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.0
19+
* The version of the OpenAPI document: v1.4.1
2020
* Contact: webmaster@catrobat.org
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->getContentType();
217+
$currentFormat = $request->getRequestFormat();
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->getContentType();
228+
$currentFormat = $request->getRequestFormat();
229229
}
230230

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

0 commit comments

Comments
 (0)