diff options
author | provokateurin <kate@provokateurin.de> | 2024-02-27 18:06:42 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-03-14 11:33:38 +0000 |
commit | 34c1a56e55b2465d4a2e6c43737a69a7bf693a5e (patch) | |
tree | fee279b027c86392f5d15e73c49b8aa6ffc60062 /apps/provisioning_api/lib | |
parent | 9f0028c8d7e61b252b9ce72aac897a14572fa986 (diff) | |
download | nextcloud-server-34c1a56e55b2465d4a2e6c43737a69a7bf693a5e.tar.gz nextcloud-server-34c1a56e55b2465d4a2e6c43737a69a7bf693a5e.zip |
fix(provisioning_api): Fix AppInfo schema for OpenAPI
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/provisioning_api/lib')
-rw-r--r-- | apps/provisioning_api/lib/Controller/AppsController.php | 6 | ||||
-rw-r--r-- | apps/provisioning_api/lib/ResponseDefinitions.php | 42 |
2 files changed, 1 insertions, 47 deletions
diff --git a/apps/provisioning_api/lib/Controller/AppsController.php b/apps/provisioning_api/lib/Controller/AppsController.php index 534b1644262..2a63717324b 100644 --- a/apps/provisioning_api/lib/Controller/AppsController.php +++ b/apps/provisioning_api/lib/Controller/AppsController.php @@ -30,7 +30,6 @@ declare(strict_types=1); namespace OCA\Provisioning_API\Controller; use OC_App; -use OCA\Provisioning_API\ResponseDefinitions; use OCP\App\AppPathNotFoundException; use OCP\App\IAppManager; use OCP\AppFramework\Http; @@ -39,9 +38,6 @@ use OCP\AppFramework\OCS\OCSException; use OCP\AppFramework\OCSController; use OCP\IRequest; -/** - * @psalm-import-type Provisioning_APIAppInfo from ResponseDefinitions - */ class AppsController extends OCSController { /** @var IAppManager */ private $appManager; @@ -94,7 +90,7 @@ class AppsController extends OCSController { * Get the app info for an app * * @param string $app ID of the app - * @return DataResponse<Http::STATUS_OK, Provisioning_APIAppInfo, array{}> + * @return DataResponse<Http::STATUS_OK, array<string, ?mixed>, array{}> * @throws OCSException * * 200: App info returned diff --git a/apps/provisioning_api/lib/ResponseDefinitions.php b/apps/provisioning_api/lib/ResponseDefinitions.php index 0b4a3d1ebbc..07777f1f35f 100644 --- a/apps/provisioning_api/lib/ResponseDefinitions.php +++ b/apps/provisioning_api/lib/ResponseDefinitions.php @@ -82,48 +82,6 @@ namespace OCA\Provisioning_API; * websiteScope?: string, * } * - * @psalm-type Provisioning_APIAppInfo = array{ - * active: bool|null, - * activity: ?mixed, - * author: ?mixed, - * background-jobs: ?mixed, - * bugs: ?mixed, - * category: ?mixed, - * collaboration: ?mixed, - * commands: ?mixed, - * default_enable: ?mixed, - * dependencies: ?mixed, - * description: string, - * discussion: ?mixed, - * documentation: ?mixed, - * groups: ?mixed, - * id: string, - * info: ?mixed, - * internal: bool|null, - * level: int|null, - * licence: ?mixed, - * name: string, - * namespace: ?mixed, - * navigations: ?mixed, - * preview: ?mixed, - * previewAsIcon: bool|null, - * public: ?mixed, - * remote: ?mixed, - * removable: bool|null, - * repair-steps: ?mixed, - * repository: ?mixed, - * sabre: ?mixed, - * screenshot: ?mixed, - * settings: ?mixed, - * summary: string, - * trash: ?mixed, - * two-factor-providers: ?mixed, - * types: ?mixed, - * version: string, - * versions: ?mixed, - * website: ?mixed, - * } - * * @psalm-type Provisioning_APIGroupDetails = array{ * id: string, * displayname: string, |