From 6dbb3e0e786890556757f0fbe9b8cbc8ae499290 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Thu, 19 Sep 2024 15:19:41 +0200 Subject: [PATCH] schema: adapt description of method's download key MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit with the newly introduced strict checks in the API handler, the download key actually marks which endpoints/methods are allowed to use the download functionality of the REST server, and the "directly return filename to be downloaded" part is no longer supported as a result. Signed-off-by: Fabian Grünbichler --- src/PVE/JSONSchema.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PVE/JSONSchema.pm b/src/PVE/JSONSchema.pm index 115f811..1a37b3a 100644 --- a/src/PVE/JSONSchema.pm +++ b/src/PVE/JSONSchema.pm @@ -1657,7 +1657,7 @@ my $method_schema = { }, download => { type => 'boolean', - description => "Method downloads the file content (filename is the return value of the method).", + description => "Method is allowed to download file contents (download information is the return value of the method).", optional => 1, }, proxyto => {