From 259264b966b3fde0cfcfb44e8047206c58917268 Mon Sep 17 00:00:00 2001 From: jld3103 Date: Wed, 14 Jun 2023 14:43:41 +0200 Subject: files: Add OpenAPI spec Signed-off-by: jld3103 --- lib/public/Files/Template/TemplateFileCreator.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/public/Files') diff --git a/lib/public/Files/Template/TemplateFileCreator.php b/lib/public/Files/Template/TemplateFileCreator.php index 3a1e62c6f5c..43e96b6f21b 100644 --- a/lib/public/Files/Template/TemplateFileCreator.php +++ b/lib/public/Files/Template/TemplateFileCreator.php @@ -31,10 +31,13 @@ namespace OCP\Files\Template; */ final class TemplateFileCreator implements \JsonSerializable { protected $appId; + /** @var string[] $mimetypes */ protected $mimetypes = []; protected $actionName; protected $fileExtension; + /** @var ?string $iconClass */ protected $iconClass; + /** @var ?float $ratio */ protected $ratio = null; protected $order = 100; /** @@ -124,6 +127,7 @@ final class TemplateFileCreator implements \JsonSerializable { /** * @since 21.0.0 + * @return array{app: string, label: string, extension: string, iconClass: ?string, mimetypes: string[], ratio: ?float, actionLabel: string} */ public function jsonSerialize(): array { return [ -- cgit v1.2.3