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

The LicenseRef prefix should not be required for standard licenses #804

Open
Zhuochengyu opened this issue Apr 24, 2024 · 1 comment
Open

Comments

@Zhuochengyu
Copy link

Zhuochengyu commented Apr 24, 2024

I noticed this error when validating my SPDX JSON file:

license_id must only contain letters, numbers, "." and "-" and must begin with "LicenseRef-", but is: Apache-1.1

Apache-1.1 is on the standard license list according to https://spdx.org/licenses/Apache-1.1.html. The LicenseRef prefix shouldn't be required for this license.

Spec (https://spdx.org/rdf/spdx-terms-v2.3):

The license ID is either on the standard license list or the form "LicenseRef-[idString]" where [idString] is a unique string containing letters, numbers, "." or "-". 
@armintaenzertng
Copy link
Collaborator

Hi @Zhuochengyu, thanks for using the spdx-tools!
Unfortunately, I am unable to reproduce your issue. When using for example "licenseDeclared" : "Apache-1.1" in a JSON SPDX file, the file validates just fine.
Can you provide a file that triggers the error you describe?

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

No branches or pull requests

2 participants