Skip to content

Commit

Permalink
Enhanced Symfony generator
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetzner committed Jun 4, 2022
1 parent cb74ec8 commit 32054d5
Show file tree
Hide file tree
Showing 60 changed files with 251 additions and 258 deletions.
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.1.6
* The version of the OpenAPI document: v1.1.7
* 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 @@ -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: [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 @@ -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: [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 @@ -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: [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 @@ -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: [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 @@ -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: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/UserApiInterface.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.1.6
* The version of the OpenAPI document: v1.1.7
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
2 changes: 1 addition & 1 deletion Api/UtilityApiInterface.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.1.6
* The version of the OpenAPI document: v1.1.7
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
15 changes: 7 additions & 8 deletions 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.1.6
* The version of the OpenAPI document: v1.1.7
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down
10 changes: 5 additions & 5 deletions 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.1.6
* The version of the OpenAPI document: v1.1.7
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -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);
}
Expand Down
11 changes: 5 additions & 6 deletions 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.1.6
* The version of the OpenAPI document: v1.1.7
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down
11 changes: 5 additions & 6 deletions 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.1.6
* The version of the OpenAPI document: v1.1.7
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand All @@ -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;
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down Expand Up @@ -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));
}
}
Expand Down
Loading

0 comments on commit 32054d5

Please sign in to comment.