diff --git a/rust/src/lockfile.rs b/rust/src/lockfile.rs index 4216a57f..4fac7ee2 100644 --- a/rust/src/lockfile.rs +++ b/rust/src/lockfile.rs @@ -118,12 +118,13 @@ struct LockfileConfigMetadata { } #[derive(Serialize, Deserialize, Debug)] +#[serde(deny_unknown_fields)] struct LockfileRepoMetadata { generated: DateTime, } #[derive(Serialize, Deserialize, Debug)] -#[serde(untagged)] +#[serde(untagged, deny_unknown_fields)] enum LockedPackage { Evr { evr: String,