lockfile: Add missing serde(deny_unknown_fields)

Match the treefile spec and default to denying unknown fields.
This commit is contained in:
Jonathan Lebon 2021-05-07 16:15:21 -04:00 committed by Colin Walters
parent 18a00f2825
commit 771361d59b

View File

@ -118,12 +118,13 @@ struct LockfileConfigMetadata {
}
#[derive(Serialize, Deserialize, Debug)]
#[serde(deny_unknown_fields)]
struct LockfileRepoMetadata {
generated: DateTime<Utc>,
}
#[derive(Serialize, Deserialize, Debug)]
#[serde(untagged)]
#[serde(untagged, deny_unknown_fields)]
enum LockedPackage {
Evr {
evr: String,