apt-api-types: fix backward compatibility by encoding digest as array

Signed-off-by: Dietmar Maurer <dietmar@proxmox.com>
This commit is contained in:
Dietmar Maurer 2024-07-17 09:35:30 +02:00 committed by Thomas Lamprecht
parent 282e00d429
commit bcca060a93

View File

@ -185,8 +185,9 @@ pub struct APTRepositoryFile {
pub content: Option<String>, pub content: Option<String>,
/// Digest of the original contents. /// Digest of the original contents.
// We cannot use ConfigDigest here for compatibility reasons.
#[serde(skip_serializing_if = "Option::is_none")] #[serde(skip_serializing_if = "Option::is_none")]
pub digest: Option<ConfigDigest>, pub digest: Option<[u8; 32]>,
} }
#[api] #[api]