Skip to content

Conversation

@guptapratykshh
Copy link

@guptapratykshh guptapratykshh commented Nov 21, 2025

Description

The documentDescribes field is deprecated in SPDX 2.3+ and should not be used. Per the SPDX 2.3.1 schema, relationships should be used instead to describe relationships between packages in the SBOM.
Reference: https://github.com/spdx/spdx-spec/blob/support/2.3.1/schemas/spdx-schema.json

Solution

  • For SPDX 2.3+: Removed documentDescribes field, added DESCRIBES relationships from SPDXRef-DOCUMENT to described elements
  • For SPDX 2.2: Kept documentDescribes for backward compatibility
  • Reading documents: Updated Document.from_data() to handle both old (documentDescribes) and new (DESCRIBES relationships) formats

Fixes #1958

…ps in SPDX 2.3+

Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
@guptapratykshh
Copy link
Author

please review this @tdruez

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.

Use of deprecated field to state relationships in SBOM

1 participant