Skip to content

Commit 9c912be

Browse files
committed
rename bomRef to bom-ref
Signed-off-by: Jacob Calvert <[email protected]>
1 parent dc3ec42 commit 9c912be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cyclonedx-bom/src/specs/v1_5/annotation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl FromXml for Annotations {
114114
#[serde(rename_all = "camelCase")]
115115
pub(crate) struct Annotation {
116116
/// Optional identifier to reference the annotation elsewhere in the Bom.
117-
#[serde(skip_serializing_if = "Option::is_none")]
117+
#[serde(rename = "bom-ref", skip_serializing_if = "Option::is_none")]
118118
bom_ref: Option<String>,
119119
/// A list of BOM references, TODO change to `Subjects`
120120
subjects: Vec<String>,

0 commit comments

Comments
 (0)