Skip to content

Commit

Permalink
Automated Code Generation
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetzner authored and Catrobot committed Jan 28, 2022
1 parent 3e65148 commit b72fef0
Show file tree
Hide file tree
Showing 54 changed files with 72 additions and 72 deletions.
6 changes: 3 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ Model/DryRun.php
Model/ExtendedUserDataResponse.php
Model/ExtendedUserDataResponseAllOf.php
Model/FeaturedProjectResponse.php
Model/InlineObject.php
Model/JWTResponse.php
Model/LoginRequest.php
Model/MediaCategoryResponse.php
Expand All @@ -42,6 +41,7 @@ Model/ProjectsCategory.php
Model/RefreshRequest.php
Model/RegisterErrorResponse.php
Model/RegisterRequest.php
Model/ResetPasswordRequest.php
Model/SearchResponse.php
Model/SurveyResponse.php
Model/UpdateUserErrorResponse.php
Expand All @@ -65,7 +65,6 @@ Resources/docs/Model/DryRun.md
Resources/docs/Model/ExtendedUserDataResponse.md
Resources/docs/Model/ExtendedUserDataResponseAllOf.md
Resources/docs/Model/FeaturedProjectResponse.md
Resources/docs/Model/InlineObject.md
Resources/docs/Model/JWTResponse.md
Resources/docs/Model/LoginRequest.md
Resources/docs/Model/MediaCategoryResponse.md
Expand All @@ -82,6 +81,7 @@ Resources/docs/Model/ProjectsCategory.md
Resources/docs/Model/RefreshRequest.md
Resources/docs/Model/RegisterErrorResponse.md
Resources/docs/Model/RegisterRequest.md
Resources/docs/Model/ResetPasswordRequest.md
Resources/docs/Model/SearchResponse.md
Resources/docs/Model/SurveyResponse.md
Resources/docs/Model/UpdateUserErrorResponse.md
Expand Down Expand Up @@ -109,7 +109,6 @@ Tests/Model/DryRunTest.php
Tests/Model/ExtendedUserDataResponseAllOfTest.php
Tests/Model/ExtendedUserDataResponseTest.php
Tests/Model/FeaturedProjectResponseTest.php
Tests/Model/InlineObjectTest.php
Tests/Model/JWTResponseTest.php
Tests/Model/LoginRequestTest.php
Tests/Model/MediaCategoryResponseTest.php
Expand All @@ -126,6 +125,7 @@ Tests/Model/ProjectsCategoryTest.php
Tests/Model/RefreshRequestTest.php
Tests/Model/RegisterErrorResponseTest.php
Tests/Model/RegisterRequestTest.php
Tests/Model/ResetPasswordRequestTest.php
Tests/Model/SearchResponseTest.php
Tests/Model/SurveyResponseTest.php
Tests/Model/UpdateUserErrorResponseTest.php
Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.cache

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Api/ApiServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/AuthenticationApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/MediaLibraryApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/NotificationsApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/ProjectsApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/SearchApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
12 changes: 6 additions & 6 deletions Api/UserApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand All @@ -28,8 +28,8 @@

namespace OpenAPI\Server\Api;

use OpenAPI\Server\Model\InlineObject;
use OpenAPI\Server\Model\RegisterRequest;
use OpenAPI\Server\Model\ResetPasswordRequest;
use OpenAPI\Server\Model\UpdateUserRequest;

/**
Expand Down Expand Up @@ -118,11 +118,11 @@ public function userPut(UpdateUserRequest $update_user_request, string $accept_l
*
* Request email to reset password
*
* @param \OpenAPI\Server\Model\InlineObject $inline_object (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
* @param \OpenAPI\Server\Model\ResetPasswordRequest $reset_password_request (required)
* @param \int $responseCode The HTTP response code to return
* @param \array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function userResetPasswordPost(InlineObject $inline_object, &$responseCode, array &$responseHeaders);
public function userResetPasswordPost(ResetPasswordRequest $reset_password_request, &$responseCode, array &$responseHeaders);

/**
* Operation usersSearchGet.
Expand Down
2 changes: 1 addition & 1 deletion Api/UtilityApiInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/AuthenticationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/MediaLibraryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/NotificationsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/ProjectsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Controller/SearchController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
12 changes: 6 additions & 6 deletions Controller/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -509,24 +509,24 @@ public function userResetPasswordPostAction(Request $request)
// Handle authentication

// Read out all input parameter values into variables
$inline_object = $request->getContent();
$reset_password_request = $request->getContent();

// Use the default value if no value was provided

// Deserialize the input values that needs it
try {
$inputFormat = $request->getMimeType($request->getContentType());
$inline_object = $this->deserialize($inline_object, 'OpenAPI\Server\Model\InlineObject', $inputFormat);
$reset_password_request = $this->deserialize($reset_password_request, 'OpenAPI\Server\Model\ResetPasswordRequest', $inputFormat);
} catch (SerializerRuntimeException $exception) {
return $this->createBadRequestResponse($exception->getMessage());
}

// Validate the input values
$asserts = [];
$asserts[] = new Assert\NotNull();
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\InlineObject');
$asserts[] = new Assert\Type('OpenAPI\\Server\\Model\\ResetPasswordRequest');
$asserts[] = new Assert\Valid();
$response = $this->validate($inline_object, $asserts);
$response = $this->validate($reset_password_request, $asserts);
if ($response instanceof Response) {
return $response;
}
Expand All @@ -537,7 +537,7 @@ public function userResetPasswordPostAction(Request $request)
// Make the call to the business logic
$responseCode = 204;
$responseHeaders = [];
$result = $handler->userResetPasswordPost($inline_object, $responseCode, $responseHeaders);
$result = $handler->userResetPasswordPost($reset_password_request, $responseCode, $responseHeaders);

// Find default response message
$message = '';
Expand Down
2 changes: 1 addition & 1 deletion Controller/UtilityController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/Compiler/OpenAPIServerApiPass.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/OpenAPIServerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/BaseUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/BasicUserDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/DryRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/ExtendedUserDataResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/ExtendedUserDataResponseAllOf.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/FeaturedProjectResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/JWTResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/LoginRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/MediaCategoryResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/MediaFileResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/MediaPackageResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Model/NotificationsCountResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* API for the Catrobat Share Platform
*
* The version of the OpenAPI document: v1.0.65
* The version of the OpenAPI document: v1.0.67
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
Loading

0 comments on commit b72fef0

Please sign in to comment.