Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ScoreMethod.CVSSV31 serialization #261

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

dzsibi
Copy link
Contributor

@dzsibi dzsibi commented Sep 28, 2023

The CycloneDX schema for both JSON and XML defines the possible values for the field that uses ScoreMethod as its type:

https://cyclonedx.org/docs/1.5/json/#vulnerabilities_items_ratings_items_method
https://cyclonedx.org/docs/1.5/xml/#type_scoreSourceType

In both of these cases the correct representation of CVSS v3.1 seems to be the string "CVSSv31". For some reason, the library serializes this as "CVSSv3.1", and thus generated files fail schema validation.

Signed-off-by: Bálint József Jánvári <[email protected]>
@dzsibi
Copy link
Contributor Author

dzsibi commented Oct 12, 2023

@coderpatros Could you help me with merging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants