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

properties element missing for vulnerability type in XML schema #147

Closed
nscuro opened this issue May 19, 2022 · 0 comments · Fixed by #148
Closed

properties element missing for vulnerability type in XML schema #147

nscuro opened this issue May 19, 2022 · 0 comments · Fixed by #148

Comments

@nscuro
Copy link
Member

nscuro commented May 19, 2022

While the JSON schema for 1.4 and 1.4.1 defines a properties element for the vulnerability type, the XML schema does not.

Naturally, this causes validation failures when using properties with vulnerabilities.

Steps to reproduce

$ wget https://raw.githubusercontent.com/CycloneDX/cyclonedx-go/75c4a5fce050df541f3c359bd755f5ab8ef9245a/testdata/valid-vulnerability.xml
$ cyclonedx validate --input-file valid-vulnerability.xml --input-version v1_4
Validating XML BOM...
Validation failed at line number 119 and position 14: The element 'vulnerability' in namespace 'http://cyclonedx.org/schema/bom/1.4' has invalid child element 'properties' in namespace 'http://cyclonedx.org/schema/bom/1.4'.
BOM is not valid.
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 a pull request may close this issue.

1 participant