There was an error while loading. Please reload this page.
1 parent ca72ec9 commit 7ee2f71Copy full SHA for 7ee2f71
1 file changed
cyclonedx-bom/src/specs/common/code.rs
@@ -399,6 +399,7 @@ impl FromXml for Patches {
399
pub(crate) struct Patch {
400
#[serde(rename = "type")]
401
patch_type: String,
402
+ #[serde(skip_serializing_if = "Option::is_none")]
403
diff: Option<Diff>,
404
#[serde(skip_serializing_if = "Option::is_none")]
405
resolves: Option<Vec<Issue>>,
0 commit comments