We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This lib does not fully comply with the CycloneDX v1.4 schema.
The CycloneDX v1.4 schema defines "Properties" property in Vulnerability: https://github.com/CycloneDX/specification/blob/1.4/schema/bom-1.4.schema.json#L1659-L1667 https://cyclonedx.org/docs/1.4/json/#vulnerabilities_items_properties
But the cyclonedx-go library has not yet been updated to support this: https://github.com/CycloneDX/cyclonedx-go/blob/master/cyclonedx.go#L611-L629
Given: var vuln cyclonedx.Vulnerability
var vuln cyclonedx.Vulnerability
Expect: vuln.Properties is accessible for getting or setting
vuln.Properties
This snippet results in compiler error "vuln.Properties undefined (type cyclonedx.Vulnerability has no field or method Properties)":
func test() { var vuln cyclonedx.Vulnerability fmt.Println("len Affects:", len(*vuln.Affects)) // no compiler error fmt.Println("len Properties:", len(*vuln.Properties)) // compiler error! }
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Problem
This lib does not fully comply with the CycloneDX v1.4 schema.
The CycloneDX v1.4 schema defines "Properties" property in Vulnerability:
https://github.com/CycloneDX/specification/blob/1.4/schema/bom-1.4.schema.json#L1659-L1667
https://cyclonedx.org/docs/1.4/json/#vulnerabilities_items_properties
But the cyclonedx-go library has not yet been updated to support this:
https://github.com/CycloneDX/cyclonedx-go/blob/master/cyclonedx.go#L611-L629
Expected Behavior
Given:
var vuln cyclonedx.Vulnerability
Expect:
vuln.Properties
is accessible for getting or settingActual Behavior / Steps to Reproduce
This snippet results in compiler error "vuln.Properties undefined (type cyclonedx.Vulnerability has no field or method Properties)":
Additional Information
The text was updated successfully, but these errors were encountered: