Skip to content

Commit

Permalink
chore: skip empty keys field
Browse files Browse the repository at this point in the history
  • Loading branch information
ctron committed Apr 11, 2024
1 parent 22919b1 commit 6552450
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sbom/src/model/metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ impl From<Url> for Key {
#[derive(Clone, Debug, PartialEq, Eq, serde::Deserialize, serde::Serialize)]
pub struct SourceMetadata {
pub url: Url,
#[serde(default, skip_serializing_if = "Vec::is_empty")]
pub keys: Vec<Key>,
}

Expand Down

0 comments on commit 6552450

Please sign in to comment.