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

fix(validation): fix error generation in expression validator #765

Merged
merged 1 commit into from
Sep 28, 2023

Conversation

maxhbr
Copy link
Member

@maxhbr maxhbr commented Sep 27, 2023

This closes #764

@maxhbr maxhbr force-pushed the maxhbr/fix764 branch 5 times, most recently from 432d9e9 to 20fbe55 Compare September 27, 2023 08:02
Signed-off-by: Maximilian Huber <maximilian.huber@tngtech.com>
"Error parsing LicenseExpression: \"LGPL-2.1, GPL-2.0, GPL-3.0\": Invalid license key: the valid characters are: letters and numbers, underscore, dot, colon or hyphen signs and spaces: 'LGPL-2.1, GPL-2.0, GPL-3.0'" # noqa: E501
],
),
("Apache License (2.0)", ['Error parsing LicenseExpression: "Apache License (2.0)"']),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not too helpful, but if the license-expression library does not return any message, we can't do anything about here, I guess.

@armintaenzertng armintaenzertng merged commit 40d1d8e into spdx:main Sep 28, 2023
32 checks passed
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

Successfully merging this pull request may close these issues.

IndexError on parsing failure
3 participants