lockfile: Add missing serde(deny_unknown_fields)
Match the treefile spec and default to denying unknown fields.
This commit is contained in:
parent
18a00f2825
commit
771361d59b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user