Festo-se / cyclonedx-editor-validator

Tool for creating, modifying and validating CycloneDX SBOMs.
https://festo-se.github.io/cyclonedx-editor-validator/
GNU General Public License v3.0
21 stars 4 forks source link

Custom validation applies components requirements to tools #209

Closed mmarseu closed 3 months ago

mmarseu commented 5 months ago

This is a side-effect of the change to the tools field in CDX 1.5. When tools is an object, it can contain two arrays: components and services. The official schema applies the regular schemas for those two types to the arrays, which makes sense for them.

In our custom schema that means that all requirements meant for components automatically also apply to tools - for example, bom-ref, copyright, license, etc. This is arguably nonsense and should be changed.

italvi commented 5 months ago

Would expect that something like that is covered by our tests 😅

CBeck-96 commented 5 months ago

The tests only cover fields contained in our CB specification, tools is not among them.