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

Validate Extractor:license:spdx entries #8

Open
PeterKraus opened this issue May 14, 2024 · 0 comments
Open

Validate Extractor:license:spdx entries #8

PeterKraus opened this issue May 14, 2024 · 0 comments

Comments

@PeterKraus
Copy link
Contributor

PR #21 introduced the option to specify licenses of Extractors using the SPDX license identifiers. However, we're not checking whether the supplied string is an actual identifier.

Option one is to check against a release of the SPDX data "statically".

Option two would be to probe an up-to-date online SPDX Identifier database. These seem to be queryable using the following format:

https://spdx.org/licenses/${identifier}.html

and will return a 404 if the ${identifier} is not a valid SPDX license identifier. We could leverage this and validate the provided entries against the live data.

From: marda-alliance/metadata_extractors_schema#24

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

1 participant