CycloneDX / CycloneDX/cyclonedx-core-java
Dependencies within Dependency class should be List<String> not List<Dependency>
Open
- Dominant language
- Java
- Stars
- 120
- Forks
- 90
- Avg merge
- 12h 43m
- Merged PRs (30d)
- 18
Description
the `Dependency` class currently contains a dependencies field which is typed as a `List`, which implies that dependencies can be nested. This is incorrect based on both the current specification and the JSON schema, which has "dependsOn" as a list of bom-refs. This can lead to developers believing dependencies can be nested, and producing invalid BOMs as a result.
To double check this, I also compared this with the JavaScript which does implement the dependencies list as a string.
Contributor guide
Assessment
This issue has not been assessed yet.