diff options
author | jld3103 <jld3103yt@gmail.com> | 2023-10-23 16:47:38 +0200 |
---|---|---|
committer | Kate <26026535+provokateurin@users.noreply.github.com> | 2023-11-02 11:37:15 +0100 |
commit | 755de1e0b57aa9c7275257142b6f852fbcd1961e (patch) | |
tree | f9e993499eb4b7ff32682a9ef437c3e03b374669 /apps/cloud_federation_api | |
parent | 99fa7f77eff6b615c9e40d4afefd1b1d62cb4917 (diff) | |
download | nextcloud-server-755de1e0b57aa9c7275257142b6f852fbcd1961e.tar.gz nextcloud-server-755de1e0b57aa9c7275257142b6f852fbcd1961e.zip |
refactor: Rename OpenAPI type aliases to their namespaces
Signed-off-by: jld3103 <jld3103yt@gmail.com>
Diffstat (limited to 'apps/cloud_federation_api')
-rw-r--r-- | apps/cloud_federation_api/lib/Controller/RequestHandlerController.php | 10 | ||||
-rw-r--r-- | apps/cloud_federation_api/lib/ResponseDefinitions.php | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php index a10dadbbdce..0a536aec431 100644 --- a/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php +++ b/apps/cloud_federation_api/lib/Controller/RequestHandlerController.php @@ -51,9 +51,9 @@ use Psr\Log\LoggerInterface; * * @package OCA\CloudFederationAPI\Controller * - * @psalm-import-type CloudFederationApiAddShare from ResponseDefinitions - * @psalm-import-type CloudFederationApiValidationError from ResponseDefinitions - * @psalm-import-type CloudFederationApiError from ResponseDefinitions + * @psalm-import-type CloudFederationAPIAddShare from ResponseDefinitions + * @psalm-import-type CloudFederationAPIValidationError from ResponseDefinitions + * @psalm-import-type CloudFederationAPIError from ResponseDefinitions */ class RequestHandlerController extends Controller { public function __construct( @@ -90,7 +90,7 @@ class RequestHandlerController extends Controller { * @param string $shareType 'group' or 'user' share * @param string $resourceType 'file', 'calendar',... * - * @return JSONResponse<Http::STATUS_CREATED, CloudFederationApiAddShare, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, CloudFederationApiValidationError, array{}>|JSONResponse<Http::STATUS_NOT_IMPLEMENTED, CloudFederationApiError, array{}> + * @return JSONResponse<Http::STATUS_CREATED, CloudFederationAPIAddShare, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, CloudFederationAPIValidationError, array{}>|JSONResponse<Http::STATUS_NOT_IMPLEMENTED, CloudFederationAPIError, array{}> * 201: The notification was successfully received. The display name of the recipient might be returned in the body * 400: Bad request due to invalid parameters, e.g. when `shareWith` is not found or required properties are missing * 501: Share type or the resource type is not supported @@ -213,7 +213,7 @@ class RequestHandlerController extends Controller { * @param string|null $providerId ID of the share * @param array<string, mixed>|null $notification The actual payload of the notification * - * @return JSONResponse<Http::STATUS_CREATED, array<string, mixed>, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, CloudFederationApiValidationError, array{}>|JSONResponse<Http::STATUS_FORBIDDEN|Http::STATUS_NOT_IMPLEMENTED, CloudFederationApiError, array{}> + * @return JSONResponse<Http::STATUS_CREATED, array<string, mixed>, array{}>|JSONResponse<Http::STATUS_BAD_REQUEST, CloudFederationAPIValidationError, array{}>|JSONResponse<Http::STATUS_FORBIDDEN|Http::STATUS_NOT_IMPLEMENTED, CloudFederationAPIError, array{}> * 201: The notification was successfully received * 400: Bad request due to invalid parameters, e.g. when `type` is invalid or missing * 403: Getting resource is not allowed diff --git a/apps/cloud_federation_api/lib/ResponseDefinitions.php b/apps/cloud_federation_api/lib/ResponseDefinitions.php index 06b8124cc32..7f916d6c6cd 100644 --- a/apps/cloud_federation_api/lib/ResponseDefinitions.php +++ b/apps/cloud_federation_api/lib/ResponseDefinitions.php @@ -26,15 +26,15 @@ declare(strict_types=1); namespace OCA\CloudFederationAPI; /** - * @psalm-type CloudFederationApiAddShare = array{ + * @psalm-type CloudFederationAPIAddShare = array{ * recipientDisplayName: string, * } * - * @psalm-type CloudFederationApiError = array{ + * @psalm-type CloudFederationAPIError = array{ * message: string, * } * - * @psalm-type CloudFederationApiValidationError = CloudFederationApiError&array{ + * @psalm-type CloudFederationAPIValidationError = CloudFederationAPIError&array{ * validationErrors: array{ * name: string, * message: string|null, |