Skip to content

"primaryPackagePurpose": "application" should be flagged as invalid #812

Description

@vargenau

merge.spdx.json

 "packages": [
  {
   "name": "merge",
   "SPDXID": "SPDXRef-RootPackage-25a7cf47-382b-459a-b9b0-d66923553704",
   "versionInfo": "1",
   "supplier": "NOASSERTION",
   "downloadLocation": "NOASSERTION",
   "filesAnalyzed": true,
   "copyrightText": "NOASSERTION",
   "primaryPackagePurpose": "application"
  },

The spec only allows upper case, it should be "APPLICATION".

Java Tools flag it as invalid:

Analysis exception processing SPDX file: Error parsing JSON field for ID SPDXRef-RootPackage-25a7cf47-382b-459a-b9b0-d66923553704: Could not find enum constants for application property primaryPackagePurpose

Activity

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

    validationAn issue concerning the validation of SPDX documents

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions