diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index ba7f754d..18bb4182 100755 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.4.0 +7.5.0 diff --git a/Api/ApiServer.php b/Api/ApiServer.php index 52527290..74af3355 100755 --- a/Api/ApiServer.php +++ b/Api/ApiServer.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/AuthenticationApiInterface.php b/Api/AuthenticationApiInterface.php index 13c82735..7bf5a165 100755 --- a/Api/AuthenticationApiInterface.php +++ b/Api/AuthenticationApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/MediaLibraryApiInterface.php b/Api/MediaLibraryApiInterface.php index 9ab9ae6c..a7ded174 100755 --- a/Api/MediaLibraryApiInterface.php +++ b/Api/MediaLibraryApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/NotificationsApiInterface.php b/Api/NotificationsApiInterface.php index 55e2eb7e..b1a6e88c 100755 --- a/Api/NotificationsApiInterface.php +++ b/Api/NotificationsApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/ProjectsApiInterface.php b/Api/ProjectsApiInterface.php index 9bb12338..d909d45c 100755 --- a/Api/ProjectsApiInterface.php +++ b/Api/ProjectsApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/SearchApiInterface.php b/Api/SearchApiInterface.php index 8ea31b1c..e46eefdd 100755 --- a/Api/SearchApiInterface.php +++ b/Api/SearchApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/UserApiInterface.php b/Api/UserApiInterface.php index 9beec1f5..4fc97ef1 100755 --- a/Api/UserApiInterface.php +++ b/Api/UserApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/UtilityApiInterface.php b/Api/UtilityApiInterface.php index f7810a9a..b2c006ec 100755 --- a/Api/UtilityApiInterface.php +++ b/Api/UtilityApiInterface.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Controller/AuthenticationController.php b/Controller/AuthenticationController.php index eae555f5..04cadac5 100755 --- a/Controller/AuthenticationController.php +++ b/Controller/AuthenticationController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -59,6 +59,8 @@ class AuthenticationController extends Controller public function authenticationDeleteAction(Request $request) { // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -94,27 +96,14 @@ public function authenticationDeleteAction(Request $request) $handler->authenticationDelete($x_refresh, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Refresh Token expired | Refresh Token has been used more than once (single use)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Refresh Token expired | Refresh Token has been used more than once (single use)', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + default => '', + }; return new Response( '', @@ -143,6 +132,8 @@ public function authenticationDeleteAction(Request $request) public function authenticationGetAction(Request $request) { // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -163,18 +154,11 @@ public function authenticationGetAction(Request $request) $handler->authenticationGet($responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + default => '', + }; return new Response( '', @@ -252,30 +236,15 @@ public function authenticationOauthPostAction(Request $request) $result = $handler->authenticationOauthPost($o_auth_login_request, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid Client ID token'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - case 422: - $message = 'Unprocessable Entity'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid Client ID token', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + 422 => 'Unprocessable Entity', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -321,6 +290,8 @@ public function authenticationPostAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -358,27 +329,14 @@ public function authenticationPostAction(Request $request) $result = $handler->authenticationPost($login_request, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid credentials'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid credentials', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -424,6 +382,8 @@ public function authenticationRefreshPostAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -461,27 +421,14 @@ public function authenticationRefreshPostAction(Request $request) $result = $handler->authenticationRefreshPost($refresh_request, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Refresh Token expired | Refresh Token has been used more than once (single use)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Refresh Token expired | Refresh Token has been used more than once (single use)', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -560,27 +507,14 @@ public function authenticationUpgradePostAction(Request $request) $result = $handler->authenticationUpgradePost($upgrade_token_request, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'The provided deprecated upload token is invalid or has expired'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'The provided deprecated upload token is invalid or has expired', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', diff --git a/Controller/Controller.php b/Controller/Controller.php index 24452139..d12d2878 100755 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -99,7 +99,7 @@ public function createErrorResponse(HttpException $exception): Response $json = $this->exceptionToArray($exception); $json['statusCode'] = $statusCode; - return new Response(json_encode($json, 15, 512), $statusCode, $headers); + return new Response(json_encode($json, 15), $statusCode, $headers); } /** diff --git a/Controller/MediaLibraryController.php b/Controller/MediaLibraryController.php index 8c3850ce..f3f716e7 100755 --- a/Controller/MediaLibraryController.php +++ b/Controller/MediaLibraryController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -107,24 +107,13 @@ public function mediaFileIdGetAction(Request $request, $id) $result = $handler->mediaFileIdGet($id, $attributes, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -220,21 +209,12 @@ public function mediaFilesGetAction(Request $request) $result = $handler->mediaFilesGet($limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -347,21 +327,12 @@ public function mediaFilesSearchGetAction(Request $request) $result = $handler->mediaFilesSearchGet($query, $limit, $offset, $attributes, $flavor, $package_name, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -458,24 +429,13 @@ public function mediaPackageNameGetAction(Request $request, $name) $result = $handler->mediaPackageNameGet($name, $limit, $offset, $attributes, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', diff --git a/Controller/NotificationsController.php b/Controller/NotificationsController.php index 0cbeffcf..99801d56 100755 --- a/Controller/NotificationsController.php +++ b/Controller/NotificationsController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -59,6 +59,8 @@ class NotificationsController extends Controller public function notificationIdReadPutAction(Request $request, $id) { // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -102,21 +104,12 @@ public function notificationIdReadPutAction(Request $request, $id) $handler->notificationIdReadPut($id, $accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'No Content'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 404: - $message = 'Not found'; - break; - } + $message = match ($responseCode) { + 204 => 'No Content', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 404 => 'Not found', + default => '', + }; return new Response( '', @@ -154,6 +147,8 @@ public function notificationsCountGetAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -174,21 +169,12 @@ public function notificationsCountGetAction(Request $request) $result = $handler->notificationsCountGet($responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 403: - $message = 'Insufficient privileges, action not allowed.'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 403 => 'Insufficient privileges, action not allowed.', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -227,6 +213,8 @@ public function notificationsGetAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -297,21 +285,12 @@ public function notificationsGetAction(Request $request) $result = $handler->notificationsGet($accept_language, $limit, $offset, $attributes, $type, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -341,6 +320,8 @@ public function notificationsGetAction(Request $request) public function notificationsReadPutAction(Request $request) { // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -361,24 +342,13 @@ public function notificationsReadPutAction(Request $request) $handler->notificationsReadPut($responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'No Content'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 403: - $message = 'Insufficient privileges, action not allowed.'; - break; - case 404: - $message = 'Not found'; - break; - } + $message = match ($responseCode) { + 204 => 'No Content', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 403 => 'Insufficient privileges, action not allowed.', + 404 => 'Not found', + default => '', + }; return new Response( '', diff --git a/Controller/ProjectsController.php b/Controller/ProjectsController.php index b2f7f7f6..995783c8 100755 --- a/Controller/ProjectsController.php +++ b/Controller/ProjectsController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -99,24 +99,13 @@ public function projectIdCatrobatGetAction(Request $request, $id) $result = $handler->projectIdCatrobatGet($id, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = '.catrobat file successfully downloaded'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 404: - $message = 'Not found'; - break; - case 500: - $message = 'We were not able to create a .catrobat file for this project. There is a high possibility that the project files are missing on the server.'; - break; - } + $message = match ($responseCode) { + 200 => '.catrobat file successfully downloaded', + 400 => 'Bad request (Invalid, or missing parameters)', + 404 => 'Not found', + 500 => 'We were not able to create a .catrobat file for this project. There is a high possibility that the project files are missing on the server.', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -146,6 +135,8 @@ public function projectIdCatrobatGetAction(Request $request, $id) public function projectIdDeleteAction(Request $request, $id) { // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -181,27 +172,14 @@ public function projectIdDeleteAction(Request $request, $id) $handler->projectIdDelete($id, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'Project successfully deleted'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 204 => 'Project successfully deleted', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( '', @@ -270,24 +248,13 @@ public function projectIdGetAction(Request $request, $id) $result = $handler->projectIdGet($id, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -333,6 +300,8 @@ public function projectIdPutAction(Request $request, $id) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -387,33 +356,16 @@ public function projectIdPutAction(Request $request, $id) $result = $handler->projectIdPut($id, $update_project_request, $accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'Project successfully updated'; - break; - case 401: - $message = 'Invalid credentials'; - break; - case 403: - $message = 'Insufficient privileges, action not allowed.'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 422: - $message = 'Unprocessable Entity. (Specific error messages will be translated to the locale)'; - break; - case 500: - $message = 'Server error'; - break; - } + $message = match ($responseCode) { + 204 => 'Project successfully updated', + 401 => 'Invalid credentials', + 403 => 'Insufficient privileges, action not allowed.', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + 422 => 'Unprocessable Entity. (Specific error messages will be translated to the locale)', + 500 => 'Server error', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -544,21 +496,12 @@ public function projectIdRecommendationsGetAction(Request $request, $id) $result = $handler->projectIdRecommendationsGet($id, $category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -595,6 +538,8 @@ public function projectIdReportPostAction(Request $request, $id) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -641,27 +586,14 @@ public function projectIdReportPostAction(Request $request, $id) $handler->projectIdReportPost($id, $project_report_request, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'Project successfully reported'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 204 => 'Project successfully reported', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( '', @@ -745,21 +677,12 @@ public function projectsCategoriesGetAction(Request $request) $result = $handler->projectsCategoriesGet($max_version, $flavor, $accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -828,18 +751,11 @@ public function projectsExtensionsGetAction(Request $request) $result = $handler->projectsExtensionsGet($accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -952,21 +868,12 @@ public function projectsFeaturedGetAction(Request $request) $result = $handler->projectsFeaturedGet($platform, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -1088,21 +995,12 @@ public function projectsGetAction(Request $request) $result = $handler->projectsGet($category, $accept_language, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -1141,6 +1039,8 @@ public function projectsPostAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -1208,30 +1108,15 @@ public function projectsPostAction(Request $request) $result = $handler->projectsPost($checksum, $file, $accept_language, $flavor, $private, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 201: - $message = 'Project successfully uploaded'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 403: - $message = 'Insufficient privileges, action not allowed.'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 422: - $message = 'Upload Error'; - break; - } + $message = match ($responseCode) { + 201 => 'Project successfully uploaded', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 403 => 'Insufficient privileges, action not allowed.', + 406 => 'Not acceptable - client must accept application/json as content type', + 422 => 'Upload Error', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -1344,21 +1229,12 @@ public function projectsSearchGetAction(Request $request) $result = $handler->projectsSearchGet($query, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -1427,18 +1303,11 @@ public function projectsTagsGetAction(Request $request) $result = $handler->projectsTagsGet($accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -1477,6 +1346,8 @@ public function projectsUserGetAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -1546,27 +1417,14 @@ public function projectsUserGetAction(Request $request) $result = $handler->projectsUserGet($max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 403: - $message = 'Insufficient privileges, action not allowed.'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 403 => 'Insufficient privileges, action not allowed.', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -1679,24 +1537,13 @@ public function projectsUserIdGetAction(Request $request, $id) $result = $handler->projectsUserIdGet($id, $max_version, $limit, $offset, $attributes, $flavor, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', diff --git a/Controller/SearchController.php b/Controller/SearchController.php index fbb37f74..4a45a69f 100755 --- a/Controller/SearchController.php +++ b/Controller/SearchController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -126,21 +126,12 @@ public function searchGetAction(Request $request) $result = $handler->searchGet($query, $type, $limit, $offset, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', diff --git a/Controller/UserController.php b/Controller/UserController.php index 7ddb7a72..155e7052 100755 --- a/Controller/UserController.php +++ b/Controller/UserController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -59,6 +59,8 @@ class UserController extends Controller public function userDeleteAction(Request $request) { // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -79,18 +81,11 @@ public function userDeleteAction(Request $request) $handler->userDelete($responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'User successfully deleted.'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - } + $message = match ($responseCode) { + 204 => 'User successfully deleted.', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + default => '', + }; return new Response( '', @@ -128,6 +123,8 @@ public function userGetAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -148,24 +145,13 @@ public function userGetAction(Request $request) $result = $handler->userGet($responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 401: - $message = 'Invalid JWT token | JWT token not found | JWT token expired'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 401 => 'Invalid JWT token | JWT token not found | JWT token expired', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -235,21 +221,12 @@ public function userIdGetAction(Request $request, $id) $result = $handler->userIdGet($id, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -336,30 +313,15 @@ public function userPostAction(Request $request) $result = $handler->userPost($register_request, $accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 201: - $message = 'User successfully registered'; - break; - case 204: - $message = 'Dry-run successful (No Validation Error)'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - case 422: - $message = 'Unprocessable Entity (Specific error messages will be translated to the locale)'; - break; - } + $message = match ($responseCode) { + 201 => 'User successfully registered', + 204 => 'Dry-run successful (No Validation Error)', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + 422 => 'Unprocessable Entity (Specific error messages will be translated to the locale)', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -405,6 +367,8 @@ public function userPutAction(Request $request) } // Handle authentication + // Authentication 'BearerAuth' required + // HTTP bearer authentication required $securityBearerAuth = $request->headers->get('authorization'); // Read out all input parameter values into variables @@ -450,24 +414,13 @@ public function userPutAction(Request $request) $result = $handler->userPut($update_user_request, $accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'User successfully updated'; - break; - case 401: - $message = 'Invalid credentials'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 422: - $message = 'Unprocessable Entity. (Specific error messages will be translated to the locale)'; - break; - } + $message = match ($responseCode) { + 204 => 'User successfully updated', + 401 => 'Invalid credentials', + 406 => 'Not acceptable - client must accept application/json as content type', + 422 => 'Unprocessable Entity. (Specific error messages will be translated to the locale)', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -554,27 +507,14 @@ public function userResetPasswordPostAction(Request $request) $result = $handler->userResetPasswordPost($reset_password_request, $accept_language, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'If an account with this email exists, an email to reset the password will be send to the user'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - case 415: - $message = 'Unsupported Media Type - request must use application/json as content type'; - break; - case 422: - $message = 'Unprocessable Entity. (Specific error messages will be translated to the locale)'; - break; - } + $message = match ($responseCode) { + 204 => 'If an account with this email exists, an email to reset the password will be send to the user', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + 415 => 'Unsupported Media Type - request must use application/json as content type', + 422 => 'Unprocessable Entity. (Specific error messages will be translated to the locale)', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -662,21 +602,12 @@ public function usersGetAction(Request $request) $result = $handler->usersGet($query, $limit, $offset, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', @@ -773,21 +704,12 @@ public function usersSearchGetAction(Request $request) $result = $handler->usersSearchGet($query, $limit, $offset, $attributes, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', diff --git a/Controller/UtilityController.php b/Controller/UtilityController.php index 755fbe09..fa76cfe1 100755 --- a/Controller/UtilityController.php +++ b/Controller/UtilityController.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -75,15 +75,10 @@ public function healthGetAction(Request $request) $handler->healthGet($responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 204: - $message = 'System is alive and healthy!'; - break; - } + $message = match ($responseCode) { + 204 => 'System is alive and healthy!', + default => '', + }; return new Response( '', @@ -168,24 +163,13 @@ public function surveyLangCodeGetAction(Request $request, $lang_code) $result = $handler->surveyLangCodeGet($lang_code, $flavor, $platform, $responseCode, $responseHeaders); - // Find default response message - $message = ''; - - // Find a more specific message, if available - switch ($responseCode) { - case 200: - $message = 'OK'; - break; - case 400: - $message = 'Bad request (Invalid, or missing parameters)'; - break; - case 404: - $message = 'Not found'; - break; - case 406: - $message = 'Not acceptable - client must accept application/json as content type'; - break; - } + $message = match ($responseCode) { + 200 => 'OK', + 400 => 'Bad request (Invalid, or missing parameters)', + 404 => 'Not found', + 406 => 'Not acceptable - client must accept application/json as content type', + default => '', + }; return new Response( null !== $result ? $this->serialize($result, $responseFormat) : '', diff --git a/DependencyInjection/Compiler/OpenAPIServerApiPass.php b/DependencyInjection/Compiler/OpenAPIServerApiPass.php index c08a1792..eecd84cc 100755 --- a/DependencyInjection/Compiler/OpenAPIServerApiPass.php +++ b/DependencyInjection/Compiler/OpenAPIServerApiPass.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/DependencyInjection/OpenAPIServerExtension.php b/DependencyInjection/OpenAPIServerExtension.php index e44a0b39..e6eea411 100755 --- a/DependencyInjection/OpenAPIServerExtension.php +++ b/DependencyInjection/OpenAPIServerExtension.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/BaseUser.php b/Model/BaseUser.php index b38bc5d6..bc59b7f2 100755 --- a/Model/BaseUser.php +++ b/Model/BaseUser.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/BasicUserDataResponse.php b/Model/BasicUserDataResponse.php index fbb9b8e5..c3ebc53a 100755 --- a/Model/BasicUserDataResponse.php +++ b/Model/BasicUserDataResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/DryRun.php b/Model/DryRun.php index 13debb0a..a1777dbd 100755 --- a/Model/DryRun.php +++ b/Model/DryRun.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ExtendedUserDataResponse.php b/Model/ExtendedUserDataResponse.php index 9709ea9a..c45b5585 100755 --- a/Model/ExtendedUserDataResponse.php +++ b/Model/ExtendedUserDataResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ExtensionResponse.php b/Model/ExtensionResponse.php index 40cf0c5c..16b46cc0 100755 --- a/Model/ExtensionResponse.php +++ b/Model/ExtensionResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/FeaturedProjectResponse.php b/Model/FeaturedProjectResponse.php index 630e1dbe..4180e99a 100755 --- a/Model/FeaturedProjectResponse.php +++ b/Model/FeaturedProjectResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/JWTResponse.php b/Model/JWTResponse.php index 30b52abf..18361602 100755 --- a/Model/JWTResponse.php +++ b/Model/JWTResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/LoginRequest.php b/Model/LoginRequest.php index 31d88a9f..8387f1bd 100755 --- a/Model/LoginRequest.php +++ b/Model/LoginRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/MediaCategoryResponse.php b/Model/MediaCategoryResponse.php index fb363acc..731b1e9a 100755 --- a/Model/MediaCategoryResponse.php +++ b/Model/MediaCategoryResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/MediaFileResponse.php b/Model/MediaFileResponse.php index 51b58c01..c69c38e5 100755 --- a/Model/MediaFileResponse.php +++ b/Model/MediaFileResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/MediaPackageResponse.php b/Model/MediaPackageResponse.php index 44c6ef50..f3e9fabc 100755 --- a/Model/MediaPackageResponse.php +++ b/Model/MediaPackageResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationContent.php b/Model/NotificationContent.php index 55c6e717..a92ed995 100755 --- a/Model/NotificationContent.php +++ b/Model/NotificationContent.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationResponse.php b/Model/NotificationResponse.php index 5fdcad8e..f26a3500 100755 --- a/Model/NotificationResponse.php +++ b/Model/NotificationResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/NotificationsCountResponse.php b/Model/NotificationsCountResponse.php index d78a17e4..3a14f350 100755 --- a/Model/NotificationsCountResponse.php +++ b/Model/NotificationsCountResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/OAuthLoginRequest.php b/Model/OAuthLoginRequest.php index f6fd3e9d..527485c8 100755 --- a/Model/OAuthLoginRequest.php +++ b/Model/OAuthLoginRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ProjectReportRequest.php b/Model/ProjectReportRequest.php index cebcf958..9065a162 100755 --- a/Model/ProjectReportRequest.php +++ b/Model/ProjectReportRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ProjectResponse.php b/Model/ProjectResponse.php index 93c80393..d5003f11 100755 --- a/Model/ProjectResponse.php +++ b/Model/ProjectResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -275,11 +275,11 @@ class ProjectResponse * * @SerializedName("not_for_kids") * - * @Assert\Type("float") + * @Assert\Type("int") * - * @Type("float") + * @Type("int") */ - protected ?float $not_for_kids = null; + protected ?int $not_for_kids = null; /** * Constructor. @@ -775,7 +775,7 @@ public function setFilesize(?float $filesize = null): self /** * Gets not_for_kids. */ - public function getNotForKids(): ?float + public function getNotForKids(): ?int { return $this->not_for_kids; } @@ -783,11 +783,11 @@ public function getNotForKids(): ?float /** * Sets not_for_kids. * - * @param float|null $not_for_kids Indicates whether a project is suitable for kids or not (0 = safe for kids, 1 = not safe for kids, 2 = not safe for kids set by moderator) + * @param int|null $not_for_kids Indicates whether a project is suitable for kids or not (0 = safe for kids, 1 = not safe for kids, 2 = not safe for kids set by moderator) * * @return $this */ - public function setNotForKids(?float $not_for_kids = null): self + public function setNotForKids(?int $not_for_kids = null): self { $this->not_for_kids = $not_for_kids; diff --git a/Model/ProjectsCategory.php b/Model/ProjectsCategory.php index 8868b4e1..cddc2afe 100755 --- a/Model/ProjectsCategory.php +++ b/Model/ProjectsCategory.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/RefreshRequest.php b/Model/RefreshRequest.php index 880db1d2..17738df6 100755 --- a/Model/RefreshRequest.php +++ b/Model/RefreshRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/RegisterErrorResponse.php b/Model/RegisterErrorResponse.php index df3fd8c1..8457d82b 100755 --- a/Model/RegisterErrorResponse.php +++ b/Model/RegisterErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/RegisterRequest.php b/Model/RegisterRequest.php index 6699aaec..c59b9256 100755 --- a/Model/RegisterRequest.php +++ b/Model/RegisterRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ResetPasswordErrorResponse.php b/Model/ResetPasswordErrorResponse.php index 61d51af5..4d7a213f 100755 --- a/Model/ResetPasswordErrorResponse.php +++ b/Model/ResetPasswordErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/ResetPasswordRequest.php b/Model/ResetPasswordRequest.php index 218e118f..d4177ed2 100755 --- a/Model/ResetPasswordRequest.php +++ b/Model/ResetPasswordRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/SearchResponse.php b/Model/SearchResponse.php index 2aab391e..ecea6ff1 100755 --- a/Model/SearchResponse.php +++ b/Model/SearchResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/SurveyResponse.php b/Model/SurveyResponse.php index be979f1e..c3151f54 100755 --- a/Model/SurveyResponse.php +++ b/Model/SurveyResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/TagResponse.php b/Model/TagResponse.php index 6665a8d1..6456881f 100755 --- a/Model/TagResponse.php +++ b/Model/TagResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpdateProjectErrorResponse.php b/Model/UpdateProjectErrorResponse.php index 2714e637..7d5ad0ad 100755 --- a/Model/UpdateProjectErrorResponse.php +++ b/Model/UpdateProjectErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpdateProjectFailureResponse.php b/Model/UpdateProjectFailureResponse.php index 72abfe62..474bc3da 100755 --- a/Model/UpdateProjectFailureResponse.php +++ b/Model/UpdateProjectFailureResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpdateProjectRequest.php b/Model/UpdateProjectRequest.php index b5c00e87..e5556f0e 100755 --- a/Model/UpdateProjectRequest.php +++ b/Model/UpdateProjectRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpdateUserErrorResponse.php b/Model/UpdateUserErrorResponse.php index c8c7585e..21459cbe 100755 --- a/Model/UpdateUserErrorResponse.php +++ b/Model/UpdateUserErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpdateUserRequest.php b/Model/UpdateUserRequest.php index 50da83e2..d56950fc 100755 --- a/Model/UpdateUserRequest.php +++ b/Model/UpdateUserRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UpgradeTokenRequest.php b/Model/UpgradeTokenRequest.php index 1aa2c120..5555cf69 100755 --- a/Model/UpgradeTokenRequest.php +++ b/Model/UpgradeTokenRequest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/UploadErrorResponse.php b/Model/UploadErrorResponse.php index 8b76ddc7..e388da69 100755 --- a/Model/UploadErrorResponse.php +++ b/Model/UploadErrorResponse.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/OpenAPIServerBundle.php b/OpenAPIServerBundle.php index a86bb326..e7f30e34 100755 --- a/OpenAPIServerBundle.php +++ b/OpenAPIServerBundle.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/README.md b/README.md index 34101a24..b07dda48 100755 --- a/README.md +++ b/README.md @@ -3,8 +3,8 @@ API for the Catrobat Share Platform This [Symfony](https://symfony.com/) bundle is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.4.2 -- Generator version: 7.4.0 +- API version: v1.4.3 +- Generator version: 7.5.0 - Build package: org.openapitools.codegen.languages.PhpSymfonyServerCodegen For more information, please visit [https://share.catrob.at](https://share.catrob.at) diff --git a/Service/JmsSerializer.php b/Service/JmsSerializer.php index 160ad1ae..8d3bb4f3 100755 --- a/Service/JmsSerializer.php +++ b/Service/JmsSerializer.php @@ -40,14 +40,11 @@ public function deserialize($data, string $type, string $format) private function convertFormat(string $format): ?string { - switch ($format) { - case 'application/json': - return 'json'; - case 'application/xml': - return 'xml'; - } - - return null; + return match ($format) { + 'application/json' => 'json', + 'application/xml' => 'xml', + default => null, + }; } private function deserializeString($data, string $type) @@ -125,22 +122,13 @@ private function deserializeArrayString(string $format, string $type, $data): ar } // Parse the string using the correct separator - switch ($format) { - case 'csv': - $data = explode(',', $data); - break; - case 'ssv': - $data = explode(' ', $data); - break; - case 'tsv': - $data = explode("\t", $data); - break; - case 'pipes': - $data = explode('|', $data); - break; - default: - $data = []; - } + $data = match ($format) { + 'csv' => explode(',', $data), + 'ssv' => explode(' ', $data), + 'tsv' => explode("\t", $data), + 'pipes' => explode('|', $data), + default => [], + }; // Deserialize each of the array elements foreach ($data as $key => $item) { diff --git a/Tests/Api/AuthenticationApiInterfaceTest.php b/Tests/Api/AuthenticationApiInterfaceTest.php index 9ac54912..f1296860 100755 --- a/Tests/Api/AuthenticationApiInterfaceTest.php +++ b/Tests/Api/AuthenticationApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Api/MediaLibraryApiInterfaceTest.php b/Tests/Api/MediaLibraryApiInterfaceTest.php index 78e30cfe..0e61529d 100755 --- a/Tests/Api/MediaLibraryApiInterfaceTest.php +++ b/Tests/Api/MediaLibraryApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Api/NotificationsApiInterfaceTest.php b/Tests/Api/NotificationsApiInterfaceTest.php index c782fb61..ec9bb728 100755 --- a/Tests/Api/NotificationsApiInterfaceTest.php +++ b/Tests/Api/NotificationsApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Api/ProjectsApiInterfaceTest.php b/Tests/Api/ProjectsApiInterfaceTest.php index 679380de..1a78d968 100755 --- a/Tests/Api/ProjectsApiInterfaceTest.php +++ b/Tests/Api/ProjectsApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Api/SearchApiInterfaceTest.php b/Tests/Api/SearchApiInterfaceTest.php index e0d49ff3..fc0ca4c6 100755 --- a/Tests/Api/SearchApiInterfaceTest.php +++ b/Tests/Api/SearchApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Api/UserApiInterfaceTest.php b/Tests/Api/UserApiInterfaceTest.php index 19bdd4e2..23f00c3d 100755 --- a/Tests/Api/UserApiInterfaceTest.php +++ b/Tests/Api/UserApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Api/UtilityApiInterfaceTest.php b/Tests/Api/UtilityApiInterfaceTest.php index e098deeb..f48b0f3a 100755 --- a/Tests/Api/UtilityApiInterfaceTest.php +++ b/Tests/Api/UtilityApiInterfaceTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Controller/ControllerTest.php b/Tests/Controller/ControllerTest.php index 2689a046..c01c5444 100755 --- a/Tests/Controller/ControllerTest.php +++ b/Tests/Controller/ControllerTest.php @@ -15,7 +15,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -70,7 +70,7 @@ public function testIsContentTypeAllowed(?string $contentType, array $consumes, ); } - public function dataProviderIsContentTypeAllowed(): array + public static function dataProviderIsContentTypeAllowed(): array { return [ 'usual JSON content type' => [ diff --git a/Tests/Model/BaseUserTest.php b/Tests/Model/BaseUserTest.php index 70f556ec..0087273c 100755 --- a/Tests/Model/BaseUserTest.php +++ b/Tests/Model/BaseUserTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/BasicUserDataResponseTest.php b/Tests/Model/BasicUserDataResponseTest.php index 20c36f5f..d99cd38b 100755 --- a/Tests/Model/BasicUserDataResponseTest.php +++ b/Tests/Model/BasicUserDataResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/DryRunTest.php b/Tests/Model/DryRunTest.php index d3d37c33..a9690885 100755 --- a/Tests/Model/DryRunTest.php +++ b/Tests/Model/DryRunTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ExtendedUserDataResponseTest.php b/Tests/Model/ExtendedUserDataResponseTest.php index 53c44e0f..687b0762 100755 --- a/Tests/Model/ExtendedUserDataResponseTest.php +++ b/Tests/Model/ExtendedUserDataResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ExtensionResponseTest.php b/Tests/Model/ExtensionResponseTest.php index 7197a2a3..9233cd7c 100755 --- a/Tests/Model/ExtensionResponseTest.php +++ b/Tests/Model/ExtensionResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/FeaturedProjectResponseTest.php b/Tests/Model/FeaturedProjectResponseTest.php index ee2affe4..4bd95080 100755 --- a/Tests/Model/FeaturedProjectResponseTest.php +++ b/Tests/Model/FeaturedProjectResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/JWTResponseTest.php b/Tests/Model/JWTResponseTest.php index 052f7ea5..7c844db2 100755 --- a/Tests/Model/JWTResponseTest.php +++ b/Tests/Model/JWTResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/LoginRequestTest.php b/Tests/Model/LoginRequestTest.php index 34943474..de7f4f94 100755 --- a/Tests/Model/LoginRequestTest.php +++ b/Tests/Model/LoginRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/MediaCategoryResponseTest.php b/Tests/Model/MediaCategoryResponseTest.php index 3cff2ad9..77f1bd4c 100755 --- a/Tests/Model/MediaCategoryResponseTest.php +++ b/Tests/Model/MediaCategoryResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/MediaFileResponseTest.php b/Tests/Model/MediaFileResponseTest.php index 11f90e8b..43e1057a 100755 --- a/Tests/Model/MediaFileResponseTest.php +++ b/Tests/Model/MediaFileResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/MediaPackageResponseTest.php b/Tests/Model/MediaPackageResponseTest.php index 6ef983c6..c4be61d4 100755 --- a/Tests/Model/MediaPackageResponseTest.php +++ b/Tests/Model/MediaPackageResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/NotificationContentTest.php b/Tests/Model/NotificationContentTest.php index 1ebf8406..851ef4b5 100755 --- a/Tests/Model/NotificationContentTest.php +++ b/Tests/Model/NotificationContentTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/NotificationResponseTest.php b/Tests/Model/NotificationResponseTest.php index 042c22eb..25608b3c 100755 --- a/Tests/Model/NotificationResponseTest.php +++ b/Tests/Model/NotificationResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/NotificationsCountResponseTest.php b/Tests/Model/NotificationsCountResponseTest.php index 4b863b4a..bdec1bad 100755 --- a/Tests/Model/NotificationsCountResponseTest.php +++ b/Tests/Model/NotificationsCountResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/OAuthLoginRequestTest.php b/Tests/Model/OAuthLoginRequestTest.php index 51039e0d..af69ed7a 100755 --- a/Tests/Model/OAuthLoginRequestTest.php +++ b/Tests/Model/OAuthLoginRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ProjectReportRequestTest.php b/Tests/Model/ProjectReportRequestTest.php index a4af7ae9..54167d0f 100755 --- a/Tests/Model/ProjectReportRequestTest.php +++ b/Tests/Model/ProjectReportRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ProjectResponseTest.php b/Tests/Model/ProjectResponseTest.php index 438318a2..6e84a468 100755 --- a/Tests/Model/ProjectResponseTest.php +++ b/Tests/Model/ProjectResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ProjectsCategoryTest.php b/Tests/Model/ProjectsCategoryTest.php index de6ad344..3cb606a3 100755 --- a/Tests/Model/ProjectsCategoryTest.php +++ b/Tests/Model/ProjectsCategoryTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/RefreshRequestTest.php b/Tests/Model/RefreshRequestTest.php index 4dbb8137..149a9f36 100755 --- a/Tests/Model/RefreshRequestTest.php +++ b/Tests/Model/RefreshRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/RegisterErrorResponseTest.php b/Tests/Model/RegisterErrorResponseTest.php index 8751f6ef..277b4a49 100755 --- a/Tests/Model/RegisterErrorResponseTest.php +++ b/Tests/Model/RegisterErrorResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/RegisterRequestTest.php b/Tests/Model/RegisterRequestTest.php index eea214ac..1ec07d06 100755 --- a/Tests/Model/RegisterRequestTest.php +++ b/Tests/Model/RegisterRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ResetPasswordErrorResponseTest.php b/Tests/Model/ResetPasswordErrorResponseTest.php index 16022422..28ce007f 100755 --- a/Tests/Model/ResetPasswordErrorResponseTest.php +++ b/Tests/Model/ResetPasswordErrorResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/ResetPasswordRequestTest.php b/Tests/Model/ResetPasswordRequestTest.php index 6ca3db1c..e9a5b4b8 100755 --- a/Tests/Model/ResetPasswordRequestTest.php +++ b/Tests/Model/ResetPasswordRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/SearchResponseTest.php b/Tests/Model/SearchResponseTest.php index e87bdeeb..2513db83 100755 --- a/Tests/Model/SearchResponseTest.php +++ b/Tests/Model/SearchResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/SurveyResponseTest.php b/Tests/Model/SurveyResponseTest.php index 7eaaf085..7018351b 100755 --- a/Tests/Model/SurveyResponseTest.php +++ b/Tests/Model/SurveyResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/TagResponseTest.php b/Tests/Model/TagResponseTest.php index 7d81dbaa..9e7937ff 100755 --- a/Tests/Model/TagResponseTest.php +++ b/Tests/Model/TagResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UpdateProjectErrorResponseTest.php b/Tests/Model/UpdateProjectErrorResponseTest.php index 2345905f..47212319 100755 --- a/Tests/Model/UpdateProjectErrorResponseTest.php +++ b/Tests/Model/UpdateProjectErrorResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UpdateProjectFailureResponseTest.php b/Tests/Model/UpdateProjectFailureResponseTest.php index 60c3b2f2..c7e69d9f 100755 --- a/Tests/Model/UpdateProjectFailureResponseTest.php +++ b/Tests/Model/UpdateProjectFailureResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UpdateProjectRequestTest.php b/Tests/Model/UpdateProjectRequestTest.php index 1ea88c59..54ce243f 100755 --- a/Tests/Model/UpdateProjectRequestTest.php +++ b/Tests/Model/UpdateProjectRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UpdateUserErrorResponseTest.php b/Tests/Model/UpdateUserErrorResponseTest.php index 2fdbcc69..4a2badd9 100755 --- a/Tests/Model/UpdateUserErrorResponseTest.php +++ b/Tests/Model/UpdateUserErrorResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UpdateUserRequestTest.php b/Tests/Model/UpdateUserRequestTest.php index 6f150ee9..8a8f9a63 100755 --- a/Tests/Model/UpdateUserRequestTest.php +++ b/Tests/Model/UpdateUserRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UpgradeTokenRequestTest.php b/Tests/Model/UpgradeTokenRequestTest.php index cc2d507a..0a0ca53c 100755 --- a/Tests/Model/UpgradeTokenRequestTest.php +++ b/Tests/Model/UpgradeTokenRequestTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Tests/Model/UploadErrorResponseTest.php b/Tests/Model/UploadErrorResponseTest.php index 0f49b868..35a1053f 100755 --- a/Tests/Model/UploadErrorResponseTest.php +++ b/Tests/Model/UploadErrorResponseTest.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/autoload.php b/autoload.php index fb83e193..1ad0f779 100755 --- a/autoload.php +++ b/autoload.php @@ -5,7 +5,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.4.2 + * The version of the OpenAPI document: v1.4.3 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/docs/Model/ProjectResponse.md b/docs/Model/ProjectResponse.md index 8ddba1e6..a2eea4a2 100755 --- a/docs/Model/ProjectResponse.md +++ b/docs/Model/ProjectResponse.md @@ -24,7 +24,7 @@ Name | Type | Description | Notes **project_url** | **string** | The url to the project on our official share community platform | [optional] **download_url** | **string** | The url to GET the catrobat file of this project | [optional] **filesize** | **float** | The filesize of the catrobat file in megabytes | [optional] -**not_for_kids** | **float** | Indicates whether a project is suitable for kids or not (0 = safe for kids, 1 = not safe for kids, 2 = not safe for kids set by moderator) | [optional] +**not_for_kids** | **int** | Indicates whether a project is suitable for kids or not (0 = safe for kids, 1 = not safe for kids, 2 = not safe for kids set by moderator) | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/openapitools.json b/openapitools.json index 55716882..cfe74d51 100755 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.4.0" + "version": "7.5.0" } } diff --git a/package.json b/package.json index dfa7e8fa..1383dec7 100755 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { "dependencies": { - "@openapitools/openapi-generator-cli": "^2.13.1" + "@openapitools/openapi-generator-cli": "^2.13.4" } }