Skip to content

SPDX3 validation failing on CreationInfo #760

Description

@mrybczyn

I'm facing multiple issues with validating SPDX3 files using spdx-tools python version 0.8.1, all related to CreationInfo. I convert them based on spdx_tools.spdx3.bump_from_spdx2.spdx_document. The results is like:

  "@graph": [
    {
      "@type": "Tool",
      "@id": "http://spdx.org/spdxdoc/base-files-ee9424e3-1d7e-5739-b9cd-237a1a6f843f#SPDXRef-Actor-OpenEmbeddedCorecreate-spdx.bbclass",
      "creationInfo": {
        "@type": "CreationInfo",
        "specVersion": "3.0.0",
        "created": "2023-09-08T14:44:06Z",
        "createdBy": [
          "http://spdx.org/spdxdoc/base-files-ee9424e3-1d7e-5739-b9cd-237a1a6f843f#SPDXRef-Actor-OpenEmbedded",
          "http://spdx.org/spdxdoc/base-files-ee9424e3-1d7e-5739-b9cd-237a1a6f843f#SPDXRef-Actor-N/A"
        ],
        "profile": [
          "core",
          "software",
          "licensing"
        ],
        "dataLicense": "https://spdx.org/licenses/CC0-1.0",
        "createdUsing": [
          "http://spdx.org/spdxdoc/base-files-ee9424e3-1d7e-5739-b9cd-237a1a6f843f#SPDXRef-Actor-OpenEmbeddedCorecreate-spdx.bbclass"
        ]
      },
      "name": "OpenEmbedded Core create-spdx.bbclass"
    },
[...]

However, the validation run gives:

spdx_tools.spdx.parser.error.SPDXParsingError: ["Error while parsing document None: ['CreationInfo does not exist.']"]

For information, none of the example files from the model (https://github.com/spdx/spdx-3-model/tree/main/serialization/json_ld) validates, but this is likely expected, taking into account changes in the model.

What path do you recommend to resolve? Fix the file according to the older model or update the module for the new CreationInfo syntax?

Activity

  1. armintaenzertng commented on Sep 14, 2023

    @armintaenzertng
    Collaborator

    Hi @mrybczyn, thanks for your interest in the python-tools! :)
    The problem you encounter is due to the parser only working for SPDX versions 2.2 and 2.3. This library currently only supports writing of SPDX-3.0 documents, but not parsing. There is a proof of concept I did a while ago, which can be found here, but this is very likely outdated by now as the SPDX3 model is still in development.

    If you'd like to contribute to this library, please feel free to put up a PR that implements parsing for SPDX-3.0. :)

  2. alper commented on Jun 29, 2024

    @alper

    I have a similar issue but my Github provided document says it's 2.3:

    "spdxVersion": "SPDX-2.3",
        "creationInfo": {
    
  3. NiklasBr commented on May 22, 2025

    @NiklasBr

    Similar issue with SPDX-2.3 here:

    ERROR:root:There have been issues while parsing the provided document:
    Error while parsing document None: ['CreationInfo does not exist.']
    

    Image

  4. oli-ben commented on Sep 5, 2025

    @oli-ben
    Contributor

    This is still an issue:

    $ pyspdxtools -i spdx-examples/software/example1/spdx3.0/example1.json 
    ERROR:root:There have been issues while parsing the provided document:
    Error while parsing document None: ['CreationInfo does not exist.']
    
  5. xR3b0rn commented on Mar 4, 2026

    @xR3b0rn

    Is there any information available on when parsing SPDX3 is supported?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions