Skip to content

Conversation

@haklir
Copy link
Contributor

@haklir haklir commented May 9, 2025

When trying to generate a CycloneDX BOM that has two vulnerabilities that only differ in their analysis, you get

TypeError: '<' not supported between instances of 'VulnerabilityAnalysis' and 'VulnerabilityAnalysis'

This PR adds the __lt__ method for the VulnerabilityAnalysis model to fix sorting and also includes a test case to verify the fix.

@haklir haklir requested a review from a team as a code owner May 9, 2025 10:49
@jkowalleck jkowalleck added the bug Something isn't working label May 10, 2025
@jkowalleck jkowalleck merged commit 0df2982 into CycloneDX:main May 10, 2025
41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants