-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
Error validating CycloneDX format in version 1.6 #407
Comments
@simonfrancaix When I ran it, I had two instances of empty licenses
which violate the specification as id or name is required. If I remove these two, it validates successfully. |
It seems to report also the oneof cases against which it could not validate, even though another case succeeded, e.g. |
Hi @andreas-hilti |
@simonfrancaix @crimsonvspurple The number of (misleading) validation messages should be significantly reduced with release 0.27.2, and thus it should highlight the actual issue much better. Please give it a try. |
Hello,
I think there are various errors when validating a CycloneDX format in version 1.6.
Requirements:
Steps for reproduction:
Analysis
tools array is deprecated. Tools is object now - https://cyclonedx.org/docs/1.6/json/#tab-pane_metadata_tools_oneOf_i0
License can be id or name - https://cyclonedx.org/docs/1.6/json/#tab-pane_components_items_licenses_oneOf_i0_items_license_oneOf_i1
Licenses is array - why should it be one item? https://cyclonedx.org/docs/1.6/json/#components_items_licenses
Thank you for your attention to this ticket.
The text was updated successfully, but these errors were encountered: