src/api2/types.rs: use PROXMOX_SAFE_ID_FORMAT instead of FILENAME_FORMAT

This commit is contained in:
Dietmar Maurer 2019-12-12 14:15:40 +01:00
parent d0adf270fb
commit 1ae5677de0

View File

@ -92,7 +92,7 @@ pub const THIRD_DNS_SERVER_SCHEMA: Schema =
pub const BACKUP_ARCHIVE_NAME_SCHEMA: Schema =
StringSchema::new("Backup archive name.")
.format(&FILENAME_FORMAT)
.format(&PROXMOX_SAFE_ID_FORMAT)
.schema();
pub const BACKUP_TYPE_SCHEMA: Schema =
@ -102,7 +102,7 @@ pub const BACKUP_TYPE_SCHEMA: Schema =
pub const BACKUP_ID_SCHEMA: Schema =
StringSchema::new("Backup ID.")
.format(&FILENAME_FORMAT)
.format(&PROXMOX_SAFE_ID_FORMAT)
.schema();
pub const BACKUP_TIME_SCHEMA: Schema =