Skip to content

Commit

Permalink
Fix panda auth warnigs
Browse files Browse the repository at this point in the history
  • Loading branch information
dmetzner committed Jun 3, 2022
1 parent 5a6d352 commit cb74ec8
Show file tree
Hide file tree
Showing 58 changed files with 105 additions and 66 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.5
* The version of the OpenAPI document: v1.1.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down
12 changes: 9 additions & 3 deletions 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.5
* The version of the OpenAPI document: v1.1.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -48,16 +48,17 @@ interface AuthenticationApiInterface
/**
* Sets authentication method PandaAuth.
*
* @param string $value value of the PandaAuth authentication method
* @param string|null $value value of the PandaAuth authentication method
*/
public function setPandaAuth($value);
public function setPandaAuth(?string $value): void;

/**
* Operation authenticationDelete.
*
* Expires refresh token
*
* @param string $x_refresh Refresh Token (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function authenticationDelete(string $x_refresh, int &$responseCode, array &$responseHeaders): void;
Expand All @@ -67,6 +68,7 @@ public function authenticationDelete(string $x_refresh, int &$responseCode, arra
*
* Check token
*
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function authenticationGet(int &$responseCode, array &$responseHeaders): void;
Expand All @@ -77,6 +79,7 @@ public function authenticationGet(int &$responseCode, array &$responseHeaders):
* OAuth Login
*
* @param OAuthLoginRequest $o_auth_login_request (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -89,6 +92,7 @@ public function authenticationOauthPost(OAuthLoginRequest $o_auth_login_request,
* Login
*
* @param LoginRequest $login_request (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -101,6 +105,7 @@ public function authenticationPost(LoginRequest $login_request, int &$responseCo
* Refresh token
*
* @param RefreshRequest $refresh_request (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -113,6 +118,7 @@ public function authenticationRefreshPost(RefreshRequest $refresh_request, int &
* Upgrade a deprecated token to JWT
*
* @param UpgradeTokenRequest $upgrade_token_request (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand Down
6 changes: 5 additions & 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.5
* The version of the OpenAPI document: v1.1.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -47,6 +47,7 @@ interface MediaLibraryApiInterface
*
* @param int $id ID of any given media file (required)
* @param string $attributes (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -62,6 +63,7 @@ public function mediaFileIdGet(int $id, string $attributes, int &$responseCode,
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -79,6 +81,7 @@ public function mediaFilesGet(int $limit, int $offset, string $attributes, strin
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param string $package_name In which package you want to search (for more fine tuned results) (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -94,6 +97,7 @@ public function mediaFilesSearchGet(string $query, int $limit, int $offset, stri
* @param int $limit (optional, default to 20)
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand Down
10 changes: 7 additions & 3 deletions 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.5
* The version of the OpenAPI document: v1.1.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand All @@ -43,9 +43,9 @@ interface NotificationsApiInterface
/**
* Sets authentication method PandaAuth.
*
* @param string $value value of the PandaAuth authentication method
* @param string|null $value value of the PandaAuth authentication method
*/
public function setPandaAuth($value);
public function setPandaAuth(?string $value): void;

/**
* Operation notificationIdReadPut.
Expand All @@ -54,6 +54,7 @@ public function setPandaAuth($value);
*
* @param int $id (required)
* @param string $accept_language (optional, default to 'en')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function notificationIdReadPut(int $id, string $accept_language, int &$responseCode, array &$responseHeaders): void;
Expand All @@ -63,6 +64,7 @@ public function notificationIdReadPut(int $id, string $accept_language, int &$re
*
* Count the number of unseen notifications
*
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -79,6 +81,7 @@ public function notificationsCountGet(int &$responseCode, array &$responseHeader
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $type (optional, default to 'all')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -90,6 +93,7 @@ public function notificationsGet(string $accept_language, int $limit, int $offse
*
* Mark all notifications as read
*
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function notificationsReadPut(int &$responseCode, array &$responseHeaders): void;
Expand Down
21 changes: 18 additions & 3 deletions 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.5
* The version of the OpenAPI document: v1.1.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -47,16 +47,17 @@ interface ProjectsApiInterface
/**
* Sets authentication method PandaAuth.
*
* @param string $value value of the PandaAuth authentication method
* @param string|null $value value of the PandaAuth authentication method
*/
public function setPandaAuth($value);
public function setPandaAuth(?string $value): void;

/**
* Operation projectIdCatrobatGet.
*
* Download the .catrobat (=zip) file of a project
*
* @param string $id (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -69,6 +70,7 @@ public function projectIdCatrobatGet(string $id, int &$responseCode, array &$res
* Delete a project
*
* @param string $id (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function projectIdDelete(string $id, int &$responseCode, array &$responseHeaders): void;
Expand All @@ -79,6 +81,7 @@ public function projectIdDelete(string $id, int &$responseCode, array &$response
* Get the information of a project
*
* @param string $id (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -93,6 +96,7 @@ public function projectIdGet(string $id, int &$responseCode, array &$responseHea
* @param string $id (required)
* @param UpdateProjectRequest $update_project_request (required)
* @param string $accept_language (optional, default to 'en')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -112,6 +116,7 @@ public function projectIdPut(string $id, UpdateProjectRequest $update_project_re
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -125,6 +130,7 @@ public function projectIdRecommendationsGet(string $id, string $category, string
*
* @param string $id (required)
* @param ProjectReportRequest $project_report_request (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*/
public function projectIdReportPost(string $id, ProjectReportRequest $project_report_request, int &$responseCode, array &$responseHeaders): void;
Expand All @@ -137,6 +143,7 @@ public function projectIdReportPost(string $id, ProjectReportRequest $project_re
* @param string $max_version Only shows project with a smaller version number than max version. `Warning!` Current implementation is kinda broken. To ensure correct results use the following format '[0-9].[0-9]{3}' (optional, default to '')
* @param string $flavor (optional, default to '')
* @param string $accept_language (optional, default to 'en')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -149,6 +156,7 @@ public function projectsCategoriesGet(string $max_version, string $flavor, strin
* Get all possible project extensions. Extensions are automatically added to projects based on their bricks.
*
* @param string $accept_language (optional, default to 'en')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -166,6 +174,7 @@ public function projectsExtensionsGet(string $accept_language, int &$responseCod
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -184,6 +193,7 @@ public function projectsFeaturedGet(string $platform, string $max_version, int $
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -200,6 +210,7 @@ public function projectsGet(string $category, string $accept_language, string $m
* @param string $accept_language (optional, default to 'en')
* @param string $flavor The flavor of this project (optional)
* @param bool $private Indicates whether a program should be private (optional, default to false)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand All @@ -217,6 +228,7 @@ public function projectsPost(string $checksum, UploadedFile $file, string $accep
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -229,6 +241,7 @@ public function projectsSearchGet(string $query, string $max_version, int $limit
* Get all possible project tags. Some Tags will only be availabe during events.
*
* @param string $accept_language (optional, default to 'en')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -245,6 +258,7 @@ public function projectsTagsGet(string $accept_language, int &$responseCode, arr
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand All @@ -262,6 +276,7 @@ public function projectsUserGet(string $max_version, int $limit, int $offset, st
* @param int $offset (optional, default to 0)
* @param string $attributes (optional, default to '')
* @param string $flavor (optional, default to '')
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?iterable
Expand Down
3 changes: 2 additions & 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.5
* The version of the OpenAPI document: v1.1.6
* Contact: [email protected]
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -49,6 +49,7 @@ interface SearchApiInterface
* @param string $type (optional)
* @param int $limit (optional, default to 20)
* @param int $offset (optional, default to 0)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return ?object
Expand Down
Loading

0 comments on commit cb74ec8

Please sign in to comment.