From 32054d543a8994c1a0e4c2646dbddf9ab584eef6 Mon Sep 17 00:00:00 2001 From: Daniel Metzner Date: Sat, 4 Jun 2022 23:31:22 +0200 Subject: [PATCH] Enhanced Symfony generator --- Api/ApiServer.php | 2 +- Api/AuthenticationApiInterface.php | 2 +- Api/MediaLibraryApiInterface.php | 2 +- Api/NotificationsApiInterface.php | 2 +- Api/ProjectsApiInterface.php | 2 +- Api/SearchApiInterface.php | 2 +- Api/UserApiInterface.php | 2 +- Api/UtilityApiInterface.php | 2 +- Controller/AuthenticationController.php | 15 ++++--- Controller/Controller.php | 10 ++--- Controller/MediaLibraryController.php | 11 +++-- Controller/NotificationsController.php | 11 +++-- Controller/ProjectsController.php | 33 ++++++++------- Controller/SearchController.php | 5 +-- Controller/UserController.php | 17 ++++---- Controller/UtilityController.php | 7 ++-- .../Compiler/OpenAPIServerApiPass.php | 2 +- .../OpenAPIServerExtension.php | 2 +- Model/BaseUser.php | 14 +++---- Model/BasicUserDataResponse.php | 18 ++++----- Model/DryRun.php | 4 +- Model/ExtendedUserDataResponse.php | 20 +++++----- Model/ExtendedUserDataResponseAllOf.php | 4 +- Model/ExtensionResponse.php | 6 +-- Model/FeaturedProjectResponse.php | 16 ++++---- Model/JWTResponse.php | 6 +-- Model/LoginRequest.php | 6 +-- Model/MediaCategoryResponse.php | 8 ++-- Model/MediaFileResponse.php | 22 +++++----- Model/MediaPackageResponse.php | 10 ++--- Model/NotificationContent.php | 20 +++++----- Model/NotificationResponse.php | 10 ++--- Model/NotificationsCountResponse.php | 12 +++--- Model/OAuthLoginRequest.php | 6 +-- Model/ProjectReportRequest.php | 4 +- Model/ProjectResponse.php | 40 +++++++++---------- Model/ProjectsCategory.php | 8 ++-- Model/RefreshRequest.php | 4 +- Model/RegisterErrorResponse.php | 8 ++-- Model/RegisterRequest.php | 16 ++++---- Model/ResetPasswordErrorResponse.php | 4 +- Model/ResetPasswordRequest.php | 4 +- Model/SearchResponse.php | 10 ++--- Model/SurveyResponse.php | 4 +- Model/TagResponse.php | 6 +-- Model/UpdateProjectErrorResponse.php | 10 ++--- Model/UpdateProjectFailureResponse.php | 4 +- Model/UpdateProjectRequest.php | 12 +++--- Model/UpdateUserErrorResponse.php | 12 +++--- Model/UpdateUserRequest.php | 18 ++++----- Model/UpdateUserRequestAllOf.php | 4 +- Model/UpgradeTokenRequest.php | 4 +- Model/UploadErrorResponse.php | 4 +- OpenAPIServerBundle.php | 2 +- README.md | 2 +- Service/JmsSerializer.php | 10 ++--- Service/SerializerInterface.php | 2 +- Tests/Controller/ControllerTest.php | 2 +- autoload.php | 2 +- catroweb.yaml | 2 +- 60 files changed, 251 insertions(+), 258 deletions(-) diff --git a/Api/ApiServer.php b/Api/ApiServer.php index f04cf4ef..93fc7e61 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/AuthenticationApiInterface.php b/Api/AuthenticationApiInterface.php index 1418eca1..73feb048 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/MediaLibraryApiInterface.php b/Api/MediaLibraryApiInterface.php index 040f0542..2999dda7 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/NotificationsApiInterface.php b/Api/NotificationsApiInterface.php index 78e20dcf..ed2d570d 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/ProjectsApiInterface.php b/Api/ProjectsApiInterface.php index 815c77d8..5d695c07 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/SearchApiInterface.php b/Api/SearchApiInterface.php index 7c810f53..69def8f1 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/UserApiInterface.php b/Api/UserApiInterface.php index 5b6fd1bf..cff33ecf 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Api/UtilityApiInterface.php b/Api/UtilityApiInterface.php index 43e8deab..a1c4792d 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Controller/AuthenticationController.php b/Controller/AuthenticationController.php index 5820d220..9359d67c 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\AuthenticationApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -129,7 +128,7 @@ public function authenticationDeleteAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -191,7 +190,7 @@ public function authenticationGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -293,7 +292,7 @@ public function authenticationOauthPostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -398,7 +397,7 @@ public function authenticationPostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -503,7 +502,7 @@ public function authenticationRefreshPostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -602,7 +601,7 @@ public function authenticationUpgradePostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/Controller/Controller.php b/Controller/Controller.php index 1d4bfd17..c2883c19 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -118,13 +118,13 @@ protected function serialize($data, string $format): string /** * Deserializes data from a given type format. * - * @param string $data the data to deserialize - * @param string $class the target data class - * @param string $format the source serialization format + * @param string|null $data the data to deserialize + * @param string $class the target data class + * @param string $format the source serialization format * * @return mixed a deserialized data */ - protected function deserialize(string $data, string $class, string $format) + protected function deserialize(?string $data, string $class, string $format) { return $this->serializer->deserialize($data, $class, $format); } diff --git a/Controller/MediaLibraryController.php b/Controller/MediaLibraryController.php index 639292d2..6dfb2bb9 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\MediaLibraryApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -139,7 +138,7 @@ public function mediaFileIdGetAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -249,7 +248,7 @@ public function mediaFilesGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -376,7 +375,7 @@ public function mediaFilesSearchGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -491,7 +490,7 @@ public function mediaPackageNameGetAction(Request $request, $name) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/Controller/NotificationsController.php b/Controller/NotificationsController.php index fc7d0410..f545bac4 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\NotificationsApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -132,7 +131,7 @@ public function notificationIdReadPutAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -207,7 +206,7 @@ public function notificationsCountGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -332,7 +331,7 @@ public function notificationsGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -400,7 +399,7 @@ public function notificationsReadPutAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/Controller/ProjectsController.php b/Controller/ProjectsController.php index c6bc855a..89c43cd3 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\ProjectsApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -131,7 +130,7 @@ public function projectIdCatrobatGetAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -218,7 +217,7 @@ public function projectIdDeleteAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -306,7 +305,7 @@ public function projectIdGetAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -435,7 +434,7 @@ public function projectIdPutAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -581,7 +580,7 @@ public function projectIdRecommendationsGetAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -686,7 +685,7 @@ public function projectIdReportPostAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -785,7 +784,7 @@ public function projectsCategoriesGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -865,7 +864,7 @@ public function projectsExtensionsGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -992,7 +991,7 @@ public function projectsFeaturedGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -1128,7 +1127,7 @@ public function projectsGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -1259,7 +1258,7 @@ public function projectsPostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -1386,7 +1385,7 @@ public function projectsSearchGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -1466,7 +1465,7 @@ public function projectsTagsGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -1596,7 +1595,7 @@ public function projectsUserGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -1727,7 +1726,7 @@ public function projectsUserIdGetAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/Controller/SearchController.php b/Controller/SearchController.php index e2d943ba..45b53666 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\SearchApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -154,7 +153,7 @@ public function searchGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/Controller/UserController.php b/Controller/UserController.php index fd8f441d..4e4c7492 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\UserApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -105,7 +104,7 @@ public function userDeleteAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -183,7 +182,7 @@ public function userGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -268,7 +267,7 @@ public function userIdGetAction(Request $request, $id) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -378,7 +377,7 @@ public function userPostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -488,7 +487,7 @@ public function userPutAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -595,7 +594,7 @@ public function userResetPasswordPostAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -706,7 +705,7 @@ public function usersSearchGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/Controller/UtilityController.php b/Controller/UtilityController.php index 4990034f..37d93171 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,7 +29,6 @@ namespace OpenAPI\Server\Controller; -use Exception; use JMS\Serializer\Exception\RuntimeException as SerializerRuntimeException; use OpenAPI\Server\Api\UtilityApiInterface; use Symfony\Component\HttpFoundation\Request; @@ -96,7 +95,7 @@ public function healthGetAction(Request $request) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } @@ -191,7 +190,7 @@ public function surveyLangCodeGetAction(Request $request, $lang_code) ] ) ); - } catch (Exception $fallthrough) { + } catch (\Throwable $fallthrough) { return $this->createErrorResponse(new HttpException(500, 'An unsuspected error occurred.', $fallthrough)); } } diff --git a/DependencyInjection/Compiler/OpenAPIServerApiPass.php b/DependencyInjection/Compiler/OpenAPIServerApiPass.php index 3a4f978d..df25a10d 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/DependencyInjection/OpenAPIServerExtension.php b/DependencyInjection/OpenAPIServerExtension.php index aa35d17e..4eca664a 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/Model/BaseUser.php b/Model/BaseUser.php index 5dc5c4e5..2be52109 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class BaseUser * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Name of the user | minLength: 3 | maxLength: 180. @@ -56,7 +56,7 @@ class BaseUser * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * A secure password | minLength: 6 | maxLength: 4096. @@ -65,7 +65,7 @@ class BaseUser * @Assert\Type("string") * @Type("string") */ - protected ?string $password; + protected ?string $password = null; /** * The profile picture of the user in data URI scheme. @@ -74,7 +74,7 @@ class BaseUser * @Assert\Type("string") * @Type("string") */ - protected ?string $picture; + protected ?string $picture = null; /** * An introduction of the user. @@ -83,7 +83,7 @@ class BaseUser * @Assert\Type("string") * @Type("string") */ - protected ?string $about; + protected ?string $about = null; /** * A short description about the project the user is currently working on. @@ -92,7 +92,7 @@ class BaseUser * @Assert\Type("string") * @Type("string") */ - protected ?string $currently_working_on; + protected ?string $currently_working_on = null; /** * Constructor. diff --git a/Model/BasicUserDataResponse.php b/Model/BasicUserDataResponse.php index 525ee706..5a1fd181 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class BasicUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $id; + protected ?string $id = null; /** * Nickname of the user. @@ -56,7 +56,7 @@ class BasicUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * The profile picture of the user in data URI scheme. @@ -65,7 +65,7 @@ class BasicUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $picture; + protected ?string $picture = null; /** * An introduction of the user. @@ -74,7 +74,7 @@ class BasicUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $about; + protected ?string $about = null; /** * A short description about the project the user is currently working on. @@ -83,7 +83,7 @@ class BasicUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $currently_working_on; + protected ?string $currently_working_on = null; /** * Amount of projects of the user. @@ -92,7 +92,7 @@ class BasicUserDataResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $projects; + protected ?int $projects = null; /** * Amount of users that follow this user. @@ -101,7 +101,7 @@ class BasicUserDataResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $followers; + protected ?int $followers = null; /** * Amount of users followed by this user. @@ -110,7 +110,7 @@ class BasicUserDataResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $following; + protected ?int $following = null; /** * Constructor. diff --git a/Model/DryRun.php b/Model/DryRun.php index 798da108..0ebf5f16 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class DryRun * @Assert\Type("bool") * @Type("bool") */ - protected ?bool $dry_run; + protected ?bool $dry_run = null; /** * Constructor. diff --git a/Model/ExtendedUserDataResponse.php b/Model/ExtendedUserDataResponse.php index c47a90a7..6eb49554 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class ExtendedUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $id; + protected ?string $id = null; /** * Nickname of the user. @@ -56,7 +56,7 @@ class ExtendedUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * The profile picture of the user in data URI scheme. @@ -65,7 +65,7 @@ class ExtendedUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $picture; + protected ?string $picture = null; /** * An introduction of the user. @@ -74,7 +74,7 @@ class ExtendedUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $about; + protected ?string $about = null; /** * A short description about the project the user is currently working on. @@ -83,7 +83,7 @@ class ExtendedUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $currently_working_on; + protected ?string $currently_working_on = null; /** * Amount of projects of the user. @@ -92,7 +92,7 @@ class ExtendedUserDataResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $projects; + protected ?int $projects = null; /** * Amount of users that follow this user. @@ -101,7 +101,7 @@ class ExtendedUserDataResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $followers; + protected ?int $followers = null; /** * Amount of users followed by this user. @@ -110,7 +110,7 @@ class ExtendedUserDataResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $following; + protected ?int $following = null; /** * EMail of the user. @@ -119,7 +119,7 @@ class ExtendedUserDataResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Constructor. diff --git a/Model/ExtendedUserDataResponseAllOf.php b/Model/ExtendedUserDataResponseAllOf.php index faba27cb..61da5789 100644 --- a/Model/ExtendedUserDataResponseAllOf.php +++ b/Model/ExtendedUserDataResponseAllOf.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class ExtendedUserDataResponseAllOf * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Constructor. diff --git a/Model/ExtensionResponse.php b/Model/ExtensionResponse.php index 321b74e7..f3f3864e 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class ExtensionResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $id; + protected ?string $id = null; /** * The translated text of the project extension. @@ -56,7 +56,7 @@ class ExtensionResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $text; + protected ?string $text = null; /** * Constructor. diff --git a/Model/FeaturedProjectResponse.php b/Model/FeaturedProjectResponse.php index ed606170..40f88a22 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,49 +45,49 @@ class FeaturedProjectResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $id; + protected ?string $id = null; /** * @SerializedName("project_id") * @Assert\Type("string") * @Type("string") */ - protected ?string $project_id; + protected ?string $project_id = null; /** * @SerializedName("project_url") * @Assert\Type("string") * @Type("string") */ - protected ?string $project_url; + protected ?string $project_url = null; /** * @SerializedName("url") * @Assert\Type("string") * @Type("string") */ - protected ?string $url; + protected ?string $url = null; /** * @SerializedName("name") * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * @SerializedName("author") * @Assert\Type("string") * @Type("string") */ - protected ?string $author; + protected ?string $author = null; /** * @SerializedName("featured_image") * @Assert\Type("string") * @Type("string") */ - protected ?string $featured_image; + protected ?string $featured_image = null; /** * Constructor. diff --git a/Model/JWTResponse.php b/Model/JWTResponse.php index a9b520b1..2d20c2da 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,14 +45,14 @@ class JWTResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $token; + protected ?string $token = null; /** * @SerializedName("refresh_token") * @Assert\Type("string") * @Type("string") */ - protected ?string $refresh_token; + protected ?string $refresh_token = null; /** * Constructor. diff --git a/Model/LoginRequest.php b/Model/LoginRequest.php index 9255310e..fd50912f 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -53,7 +53,7 @@ class LoginRequest * min=3 * ) */ - protected ?string $username; + protected ?string $username = null; /** * A secure password. @@ -68,7 +68,7 @@ class LoginRequest * min=6 * ) */ - protected ?string $password; + protected ?string $password = null; /** * Constructor. diff --git a/Model/MediaCategoryResponse.php b/Model/MediaCategoryResponse.php index 30429a4e..6c091ffa 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class MediaCategoryResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $id; + protected ?int $id = null; /** * Name of the category. @@ -56,7 +56,7 @@ class MediaCategoryResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * Shows how important a category is (0 is the least priority). @@ -66,7 +66,7 @@ class MediaCategoryResponse * @Type("int") * @Assert\GreaterThanOrEqual(0) */ - protected ?int $priority; + protected ?int $priority = null; /** * Constructor. diff --git a/Model/MediaFileResponse.php b/Model/MediaFileResponse.php index b69ceb6f..48eba758 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,14 +45,14 @@ class MediaFileResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $id; + protected ?int $id = null; /** * @SerializedName("name") * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * @var string[]|null @@ -62,7 +62,7 @@ class MediaFileResponse * }) * @Type("array") */ - protected ?array $flavors; + protected ?array $flavors = null; /** * @var string[]|null @@ -72,35 +72,35 @@ class MediaFileResponse * }) * @Type("array") */ - protected ?array $packages; + protected ?array $packages = null; /** * @SerializedName("category") * @Assert\Type("string") * @Type("string") */ - protected ?string $category; + protected ?string $category = null; /** * @SerializedName("author") * @Assert\Type("string") * @Type("string") */ - protected ?string $author; + protected ?string $author = null; /** * @SerializedName("extension") * @Assert\Type("string") * @Type("string") */ - protected ?string $extension; + protected ?string $extension = null; /** * @SerializedName("download_url") * @Assert\Type("string") * @Type("string") */ - protected ?string $download_url; + protected ?string $download_url = null; /** * Size of the file in bytes. @@ -109,7 +109,7 @@ class MediaFileResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $size; + protected ?int $size = null; /** * Type of the media file. @@ -119,7 +119,7 @@ class MediaFileResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $file_type; + protected ?string $file_type = null; /** * Constructor. diff --git a/Model/MediaPackageResponse.php b/Model/MediaPackageResponse.php index 473af135..a006714f 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class MediaPackageResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $id; + protected ?int $id = null; /** * Name of the package. @@ -56,7 +56,7 @@ class MediaPackageResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * Absolute path to the package. @@ -65,7 +65,7 @@ class MediaPackageResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $url; + protected ?string $url = null; /** * @var array[]|null @@ -75,7 +75,7 @@ class MediaPackageResponse * }) * @Type("array") */ - protected ?array $categories; + protected ?array $categories = null; /** * Constructor. diff --git a/Model/NotificationContent.php b/Model/NotificationContent.php index 8c8f647d..5319fd61 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $from; + protected ?string $from = null; /** * Username of the user who caused the notification. @@ -56,7 +56,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $from_name; + protected ?string $from_name = null; /** * Id of the program for which the notification is about. @@ -65,7 +65,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $program; + protected ?string $program = null; /** * Name of the program for which the notification is about. @@ -74,7 +74,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $program_name; + protected ?string $program_name = null; /** * Avatar of the user who caused the notification. @@ -83,7 +83,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $avatar; + protected ?string $avatar = null; /** * Id of the remixed program. @@ -92,7 +92,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $remixed_program; + protected ?string $remixed_program = null; /** * Name of the remixed program. @@ -101,7 +101,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $remixed_program_name; + protected ?string $remixed_program_name = null; /** * Notification message. @@ -110,7 +110,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $message; + protected ?string $message = null; /** * Prize for anniversary notifications. @@ -119,7 +119,7 @@ class NotificationContent * @Assert\Type("string") * @Type("string") */ - protected ?string $prize; + protected ?string $prize = null; /** * Constructor. diff --git a/Model/NotificationResponse.php b/Model/NotificationResponse.php index 1fe820d0..b48a5221 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class NotificationResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $id; + protected ?int $id = null; /** * Notification Type. @@ -56,7 +56,7 @@ class NotificationResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $type; + protected ?string $type = null; /** * Seen status of the notification. @@ -65,7 +65,7 @@ class NotificationResponse * @Assert\Type("bool") * @Type("bool") */ - protected ?bool $seen; + protected ?bool $seen = null; /** * @var \OpenAPI\Server\Model\NotificationContent[]|null @@ -75,7 +75,7 @@ class NotificationResponse * }) * @Type("array") */ - protected ?array $content; + protected ?array $content = null; /** * Constructor. diff --git a/Model/NotificationsCountResponse.php b/Model/NotificationsCountResponse.php index 668218c3..eacdbfd8 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,35 +45,35 @@ class NotificationsCountResponse * @Assert\Type("int") * @Type("int") */ - protected ?int $total; + protected ?int $total = null; /** * @SerializedName("like") * @Assert\Type("int") * @Type("int") */ - protected ?int $like; + protected ?int $like = null; /** * @SerializedName("follower") * @Assert\Type("int") * @Type("int") */ - protected ?int $follower; + protected ?int $follower = null; /** * @SerializedName("comment") * @Assert\Type("int") * @Type("int") */ - protected ?int $comment; + protected ?int $comment = null; /** * @SerializedName("remix") * @Assert\Type("int") * @Type("int") */ - protected ?int $remix; + protected ?int $remix = null; /** * Constructor. diff --git a/Model/OAuthLoginRequest.php b/Model/OAuthLoginRequest.php index cf9c4a96..86753d38 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class OAuthLoginRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $id_token; + protected ?string $id_token = null; /** * OAuth provider. @@ -56,7 +56,7 @@ class OAuthLoginRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $resource_owner; + protected ?string $resource_owner = null; /** * Constructor. diff --git a/Model/ProjectReportRequest.php b/Model/ProjectReportRequest.php index cd34c55d..321f7938 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ class ProjectReportRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $category; + protected ?string $category = null; /** * Constructor. diff --git a/Model/ProjectResponse.php b/Model/ProjectResponse.php index b1c39d5f..8d5e989f 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,77 +45,77 @@ class ProjectResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $id; + protected ?string $id = null; /** * @SerializedName("name") * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * @SerializedName("author") * @Assert\Type("string") * @Type("string") */ - protected ?string $author; + protected ?string $author = null; /** * @SerializedName("description") * @Assert\Type("string") * @Type("string") */ - protected ?string $description; + protected ?string $description = null; /** * @SerializedName("version") * @Assert\Type("string") * @Type("string") */ - protected ?string $version; + protected ?string $version = null; /** * @SerializedName("views") * @Assert\Type("int") * @Type("int") */ - protected ?int $views; + protected ?int $views = null; /** * @SerializedName("downloads") * @Assert\Type("int") * @Type("int") */ - protected ?int $downloads; + protected ?int $downloads = null; /** * @SerializedName("reactions") * @Assert\Type("int") * @Type("int") */ - protected ?int $reactions; + protected ?int $reactions = null; /** * @SerializedName("comments") * @Assert\Type("int") * @Type("int") */ - protected ?int $comments; + protected ?int $comments = null; /** * @SerializedName("private") * @Assert\Type("bool") * @Type("bool") */ - protected ?bool $private; + protected ?bool $private = null; /** * @SerializedName("flavor") * @Assert\Type("string") * @Type("string") */ - protected ?string $flavor; + protected ?string $flavor = null; /** * @var string[]|null @@ -125,49 +125,49 @@ class ProjectResponse * }) * @Type("array") */ - protected ?array $tags; + protected ?array $tags = null; /** * @SerializedName("uploaded") * @Assert\Type("int") * @Type("int") */ - protected ?int $uploaded; + protected ?int $uploaded = null; /** * @SerializedName("uploaded_string") * @Assert\Type("string") * @Type("string") */ - protected ?string $uploaded_string; + protected ?string $uploaded_string = null; /** * @SerializedName("screenshot_large") * @Assert\Type("string") * @Type("string") */ - protected ?string $screenshot_large; + protected ?string $screenshot_large = null; /** * @SerializedName("screenshot_small") * @Assert\Type("string") * @Type("string") */ - protected ?string $screenshot_small; + protected ?string $screenshot_small = null; /** * @SerializedName("project_url") * @Assert\Type("string") * @Type("string") */ - protected ?string $project_url; + protected ?string $project_url = null; /** * @SerializedName("download_url") * @Assert\Type("string") * @Type("string") */ - protected ?string $download_url; + protected ?string $download_url = null; /** * filesize in megabytes. @@ -176,7 +176,7 @@ class ProjectResponse * @Assert\Type("float") * @Type("float") */ - protected ?float $filesize; + protected ?float $filesize = null; /** * Constructor. diff --git a/Model/ProjectsCategory.php b/Model/ProjectsCategory.php index cf63f996..ec830f91 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class ProjectsCategory * @Assert\Type("string") * @Type("string") */ - protected ?string $type; + protected ?string $type = null; /** * Translated name according to the language header. @@ -56,7 +56,7 @@ class ProjectsCategory * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * Array of projects. @@ -68,7 +68,7 @@ class ProjectsCategory * }) * @Type("array") */ - protected ?array $projects_list; + protected ?array $projects_list = null; /** * Constructor. diff --git a/Model/RefreshRequest.php b/Model/RefreshRequest.php index dd0ec043..5bd2cc0b 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,7 +45,7 @@ class RefreshRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $refresh_token; + protected ?string $refresh_token = null; /** * Constructor. diff --git a/Model/RegisterErrorResponse.php b/Model/RegisterErrorResponse.php index bef60460..707a835b 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ class RegisterErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * @SerializedName("username") @@ -54,7 +54,7 @@ class RegisterErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * @SerializedName("password") @@ -62,7 +62,7 @@ class RegisterErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $password; + protected ?string $password = null; /** * Constructor. diff --git a/Model/RegisterRequest.php b/Model/RegisterRequest.php index cbe42721..4f577138 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class RegisterRequest * @Assert\Type("bool") * @Type("bool") */ - protected ?bool $dry_run; + protected ?bool $dry_run = null; /** * Email of the user. @@ -56,7 +56,7 @@ class RegisterRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Name of the user | minLength: 3 | maxLength: 180. @@ -65,7 +65,7 @@ class RegisterRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * A secure password | minLength: 6 | maxLength: 4096. @@ -74,7 +74,7 @@ class RegisterRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $password; + protected ?string $password = null; /** * The profile picture of the user in data URI scheme. @@ -83,7 +83,7 @@ class RegisterRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $picture; + protected ?string $picture = null; /** * An introduction of the user. @@ -92,7 +92,7 @@ class RegisterRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $about; + protected ?string $about = null; /** * A short description about the project the user is currently working on. @@ -101,7 +101,7 @@ class RegisterRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $currently_working_on; + protected ?string $currently_working_on = null; /** * Constructor. diff --git a/Model/ResetPasswordErrorResponse.php b/Model/ResetPasswordErrorResponse.php index cddc6c0f..042c146a 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ class ResetPasswordErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Constructor. diff --git a/Model/ResetPasswordRequest.php b/Model/ResetPasswordRequest.php index 11d2f5c4..287a3842 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class ResetPasswordRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Constructor. diff --git a/Model/SearchResponse.php b/Model/SearchResponse.php index 3005f143..5492b635 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,14 +50,14 @@ class SearchResponse * }) * @Type("array") */ - protected ?array $projects; + protected ?array $projects = null; /** * @SerializedName("projects_total") * @Assert\Type("int") * @Type("int") */ - protected ?int $projects_total; + protected ?int $projects_total = null; /** * Array of users. @@ -69,14 +69,14 @@ class SearchResponse * }) * @Type("array") */ - protected ?array $users; + protected ?array $users = null; /** * @SerializedName("users_total") * @Assert\Type("int") * @Type("int") */ - protected ?int $users_total; + protected ?int $users_total = null; /** * Constructor. diff --git a/Model/SurveyResponse.php b/Model/SurveyResponse.php index 2942e9d8..c9ec538a 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class SurveyResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $url; + protected ?string $url = null; /** * Constructor. diff --git a/Model/TagResponse.php b/Model/TagResponse.php index f2a982e5..731b3704 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class TagResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $id; + protected ?string $id = null; /** * The translated text of the project tag. @@ -56,7 +56,7 @@ class TagResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $text; + protected ?string $text = null; /** * Constructor. diff --git a/Model/UpdateProjectErrorResponse.php b/Model/UpdateProjectErrorResponse.php index f602238b..8f0c3186 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ class UpdateProjectErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * @SerializedName("description") @@ -54,7 +54,7 @@ class UpdateProjectErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $description; + protected ?string $description = null; /** * @SerializedName("credits") @@ -62,7 +62,7 @@ class UpdateProjectErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $credits; + protected ?string $credits = null; /** * @SerializedName("screenshot") @@ -70,7 +70,7 @@ class UpdateProjectErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $screenshot; + protected ?string $screenshot = null; /** * Constructor. diff --git a/Model/UpdateProjectFailureResponse.php b/Model/UpdateProjectFailureResponse.php index 4096fb63..443d2b4f 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ class UpdateProjectFailureResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $error; + protected ?string $error = null; /** * Constructor. diff --git a/Model/UpdateProjectRequest.php b/Model/UpdateProjectRequest.php index 7cc923b3..3d42273c 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class UpdateProjectRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $name; + protected ?string $name = null; /** * A description of the project. @@ -56,7 +56,7 @@ class UpdateProjectRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $description; + protected ?string $description = null; /** * Credits and notes for the project. E.g., credits for using ideas, scripts or artwork from other people. @@ -65,7 +65,7 @@ class UpdateProjectRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $credits; + protected ?string $credits = null; /** * Whether a project is publicly visible (false) or only via direct link (true). @@ -74,7 +74,7 @@ class UpdateProjectRequest * @Assert\Type("bool") * @Type("bool") */ - protected ?bool $private; + protected ?bool $private = null; /** * An image representing the project in data URI scheme. @@ -83,7 +83,7 @@ class UpdateProjectRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $screenshot; + protected ?string $screenshot = null; /** * Constructor. diff --git a/Model/UpdateUserErrorResponse.php b/Model/UpdateUserErrorResponse.php index d9bd484a..19f63218 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ class UpdateUserErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * @SerializedName("username") @@ -54,7 +54,7 @@ class UpdateUserErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * @SerializedName("password") @@ -62,7 +62,7 @@ class UpdateUserErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $password; + protected ?string $password = null; /** * @SerializedName("currentPassword") @@ -70,7 +70,7 @@ class UpdateUserErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $current_password; + protected ?string $current_password = null; /** * @SerializedName("picture") @@ -78,7 +78,7 @@ class UpdateUserErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $picture; + protected ?string $picture = null; /** * Constructor. diff --git a/Model/UpdateUserRequest.php b/Model/UpdateUserRequest.php index 265ad51b..bf43bf38 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class UpdateUserRequest * @Assert\Type("bool") * @Type("bool") */ - protected ?bool $dry_run; + protected ?bool $dry_run = null; /** * Email of the user. @@ -56,7 +56,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $email; + protected ?string $email = null; /** * Name of the user | minLength: 3 | maxLength: 180. @@ -65,7 +65,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $username; + protected ?string $username = null; /** * A secure password | minLength: 6 | maxLength: 4096. @@ -74,7 +74,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $password; + protected ?string $password = null; /** * The profile picture of the user in data URI scheme. @@ -83,7 +83,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $picture; + protected ?string $picture = null; /** * An introduction of the user. @@ -92,7 +92,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $about; + protected ?string $about = null; /** * A short description about the project the user is currently working on. @@ -101,7 +101,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $currently_working_on; + protected ?string $currently_working_on = null; /** * The current password of the user. Required for changing the password. @@ -110,7 +110,7 @@ class UpdateUserRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $current_password; + protected ?string $current_password = null; /** * Constructor. diff --git a/Model/UpdateUserRequestAllOf.php b/Model/UpdateUserRequestAllOf.php index 363f4577..3355657f 100644 --- a/Model/UpdateUserRequestAllOf.php +++ b/Model/UpdateUserRequestAllOf.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ class UpdateUserRequestAllOf * @Assert\Type("string") * @Type("string") */ - protected ?string $current_password; + protected ?string $current_password = null; /** * Constructor. diff --git a/Model/UpgradeTokenRequest.php b/Model/UpgradeTokenRequest.php index ac6fce2a..b1a7e9fb 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,7 +45,7 @@ class UpgradeTokenRequest * @Assert\Type("string") * @Type("string") */ - protected ?string $upload_token; + protected ?string $upload_token = null; /** * Constructor. diff --git a/Model/UploadErrorResponse.php b/Model/UploadErrorResponse.php index 5da31167..186c0b67 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,7 +45,7 @@ class UploadErrorResponse * @Assert\Type("string") * @Type("string") */ - protected ?string $error; + protected ?string $error = null; /** * Constructor. diff --git a/OpenAPIServerBundle.php b/OpenAPIServerBundle.php index ef59a99a..6b33ac5a 100644 --- a/OpenAPIServerBundle.php +++ b/OpenAPIServerBundle.php @@ -16,7 +16,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/README.md b/README.md index 62e3bf55..c51a14e4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ 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.1.6 +- API version: v1.1.7 - 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 75fe40a5..514cdd44 100644 --- a/Service/JmsSerializer.php +++ b/Service/JmsSerializer.php @@ -36,7 +36,7 @@ public function serialize($data, string $format): string /** * {@inheritdoc} */ - public function deserialize($data, $type, $format) + public function deserialize(?string $data, string $type, string $format) { if ('string' == $format) { return $this->deserializeString($data, $type); @@ -46,7 +46,7 @@ public function deserialize($data, $type, $format) return $this->serializer->deserialize($data, $type, $this->convertFormat($format)); } - private function convertFormat($format): ?string + private function convertFormat(string $format): ?string { switch ($format) { case 'application/json': @@ -58,7 +58,7 @@ private function convertFormat($format): ?string return null; } - private function deserializeString($data, $type) + private function deserializeString(?string $data, string $type) { // Figure out if we have an array format if (1 === preg_match('/array<(csv|ssv|tsv|pipes),(int|string)>/i', $type, $matches)) { @@ -101,9 +101,9 @@ private function deserializeString($data, $type) return $data; } - private function deserializeArrayString(string $format, string $type, ?array $data): array + private function deserializeArrayString(string $format, string $type, ?string $data): array { - if (null === $data) { + if (empty($data)) { return []; } diff --git a/Service/SerializerInterface.php b/Service/SerializerInterface.php index 96693201..67d8bfdd 100644 --- a/Service/SerializerInterface.php +++ b/Service/SerializerInterface.php @@ -16,5 +16,5 @@ public function serialize($data, string $format): string; * * @return object|array|scalar */ - public function deserialize(string $data, string $type, string $format); + public function deserialize(?string $data, string $type, string $format); } diff --git a/Tests/Controller/ControllerTest.php b/Tests/Controller/ControllerTest.php index 36c6aa9d..62a67e44 100644 --- 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.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/autoload.php b/autoload.php index 93dbc85e..16f458af 100644 --- a/autoload.php +++ b/autoload.php @@ -5,7 +5,7 @@ * * API for the Catrobat Share Platform * - * The version of the OpenAPI document: v1.1.6 + * The version of the OpenAPI document: v1.1.7 * Contact: webmaster@catrobat.org * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/catroweb.yaml b/catroweb.yaml index 84caba29..661cd677 100755 --- a/catroweb.yaml +++ b/catroweb.yaml @@ -2,7 +2,7 @@ openapi: 3.0.3 info: title: "Catroweb API" description: "API for the Catrobat Share Platform" - version: "v1.1.6" + version: "v1.1.7" termsOfService: "https://share.catrob.at/pocketcode/termsOfUse" contact: name: "Catrobat"