Skip to content

Commit

Permalink
Merge pull request #723 from ctron/feature/fix_15_1
Browse files Browse the repository at this point in the history
fix: process detected 1.5 spec version
  • Loading branch information
Shnatsel authored Jun 3, 2024
2 parents 1a2ab63 + 3cc431f commit 11a4051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cyclonedx-bom/src/models/bom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ impl Bom {
match SpecVersion::from_str(version)? {
SpecVersion::V1_3 => Ok(crate::specs::v1_3::bom::Bom::deserialize(json)?.into()),
SpecVersion::V1_4 => Ok(crate::specs::v1_4::bom::Bom::deserialize(json)?.into()),
_ => Err(BomError::UnsupportedSpecVersion(version.to_string()).into()),
SpecVersion::V1_5 => Ok(crate::specs::v1_5::bom::Bom::deserialize(json)?.into()),
}
} else {
Err(BomError::UnsupportedSpecVersion("No field 'specVersion' found".to_string()).into())
Expand Down

0 comments on commit 11a4051

Please sign in to comment.