Skip to content

fix: bump embedded SPDX license list to v1.1-3.28.0 (closes #12)#161

Open
nissessenap wants to merge 1 commit into
CycloneDX:mainfrom
nissessenap:12_impl
Open

fix: bump embedded SPDX license list to v1.1-3.28.0 (closes #12)#161
nissessenap wants to merge 1 commit into
CycloneDX:mainfrom
nissessenap:12_impl

Conversation

@nissessenap

@nissessenap nissessenap commented Jul 21, 2026

Copy link
Copy Markdown

The embedded SPDX license enum was pinned to SPDX 3.26.0, so validate
rejected CycloneDX documents carrying valid, recently-added SPDX license
ids (e.g. Artistic-dist, added in SPDX 3.27.0 and emitted by trivy from
Debian/Ubuntu perl-base metadata) with an enum schema error.

Replace resources/schema/cyclonedx/common/spdx.schema.json with the
canonical copy from CycloneDX/specification master (v1.1-3.28.0),
preserving $id and $schema. All CDX bom schemas $ref this one file, so this fixes validation across spec versions 1.2-1.7.

Add a positive fixture + test asserting a CDX 1.6 SBOM with license.id "Artistic-dist" validates cleanly.

Closes #12

🤖 Generated with Claude Code

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

The embedded SPDX license enum was pinned to SPDX 3.26.0, so `validate`
rejected CycloneDX documents carrying valid, recently-added SPDX license
ids (e.g. `Artistic-dist`, added in SPDX 3.27.0 and emitted by trivy from
Debian/Ubuntu perl-base metadata) with an enum schema error.

Replace resources/schema/cyclonedx/common/spdx.schema.json with the
canonical copy from CycloneDX/specification master (v1.1-3.28.0),
preserving $id and $schema. All CDX bom schemas $ref this one file, so
this fixes validation across spec versions 1.2-1.7.

Add a positive fixture + test asserting a CDX 1.6 SBOM with
license.id "Artistic-dist" validates cleanly.

Closes CycloneDX#12

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Edvin Norling <edvin.norling@kognic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update license.json to include entries for all SPDX 3.21 License templates

1 participant