Case-sensitive validation of license expressions?

Open
#121 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
tooling

Research direction

The issue names no file, test, or command; it points instead to parsed LicenseSymbol objects and the SPDX case-sensitivity requirement. Start by tracing how expressions are parsed and how original token text is represented, then clarify the intended validation API and tests needed to show canonical-case matching.

Written by the indexing model from the issue text.

Description

While the latest SPDX standard specifies that license identifiers should (mostly) be treated case-insensitive (https://spdx.github.io/spdx-spec/v3.0.1/annexes/spdx-license-expressions/#case-sensitivity), I have a use case where we'd like to validate that all identifiers in an expression match with the case of the canonical identifier on the SPDX License List. Is there a way to do this with license-expression, e.g, by somehow accessing the original token from the parsed LicenseSymbol?

Dominant language
Python
Stars
74
Forks
38
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aboutcode-org/license-expression

All issues in aboutcode-org/license-expression

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.