There was an error while loading. Please reload this page.
2 parents ca72ec9 + 7ee2f71 commit 9ee6f21Copy full SHA for 9ee6f21
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