From 4191018c799e1a4490861d76df516c3121882403 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Thu, 23 Jan 2020 13:49:30 +0100 Subject: [PATCH] src/api2/admin/datastore.rs - download_file: use BACKUP_ARCHIVE_NAME_SCHEMA for file-name --- src/api2/admin/datastore.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs index ae553eb0..c95e1f52 100644 --- a/src/api2/admin/datastore.rs +++ b/src/api2/admin/datastore.rs @@ -557,10 +557,7 @@ pub const API_METHOD_DOWNLOAD_FILE: ApiMethod = ApiMethod::new( ("backup-type", false, &BACKUP_TYPE_SCHEMA), ("backup-id", false, &BACKUP_ID_SCHEMA), ("backup-time", false, &BACKUP_TIME_SCHEMA), - ("file-name", false, &StringSchema::new("Raw file name.") - .format(&FILENAME_FORMAT) - .schema() - ), + ("file-name", false, &BACKUP_ARCHIVE_NAME_SCHEMA), ]), ) );