You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A valid SPDX license identifier. If specified, this value must be one of the enumeration of valid SPDX license identifiers defined in the spdx.schema.json (or spdx.xml) subschema which is synchronized with the official SPDX license list.
stringid=1;
problem
Using arbitrary strings for license.id means, that there is just no baked-in safety.
To improve this, I propose to use a dedicated ProtoBuf package that can be maintained and released outside the regular CDX release cycle, just like the enum for JSON and XML.
this is currently in RFC phase.
If you have any opinion on that, please let us know.
jkowalleck
changed the title
[FEATURE]: ProtoBuf - move SPDX licenses ID enum to own package
[FEATURE]: ProtoBuf - make license.id an (external) enum
Jan 13, 2025
currently(CDX 1.6), we have the following situation:
string
):specification/schema/bom-1.6.proto
Lines 397 to 400 in b50ff0d
problem
Using arbitrary strings for
license.id
means, that there is just no baked-in safety.To improve this, I propose to use a dedicated ProtoBuf package that can be maintained and released outside the regular CDX release cycle, just like the enum for JSON and XML.
possible solution
spdx.proto
cyclonedx.spdx
spdx.*
schema filesbom-1.x.proto
file, use that enum (pseudocode)consideration & research
The text was updated successfully, but these errors were encountered: