Skip to content

Multiple checksums per entity allowed by spec, but not supported by FIle and Package classes #185

Closed

Description

@njv299

The SPDX spec allows for multiple checksums to be provided for Packages and Files, but the current Package and File classes only allow a single value to be specified.

See the 'Cardinality' section of the following sections of the spec:
image

image

Activity

  1. swinslow commented on Sep 16, 2021

    @swinslow
    Member

    Just adding a note here, from the SPDX Docfest on Sept. 16 -- looks like this issue leads to errors for valid SPDX documents if they include a FileChecksum with the mandatory SHA1, together with additional optional FileChecksums such as SHA256.

  2. dholth commented on Nov 16, 2021

    @dholth
    Contributor

    #197 can serialize multiple checksums. Parsing them back in is additional work.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions