Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
vargenau opened this issue Jul 10, 2024 · 0 comments
Open
Labels
validation An issue concerning the validation of SPDX documents

Comments

@vargenau
Copy link
Contributor

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
@armintaenzertng armintaenzertng added the validation An issue concerning the validation of SPDX documents label Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validation An issue concerning the validation of SPDX documents
Projects
None yet
Development

No branches or pull requests

2 participants