-
Notifications
You must be signed in to change notification settings - Fork 24
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
Problem with exception symbols when using get_spdx_licensing().validate()
#82
Comments
I think this should be:
I get:
If I do :
I get:
|
Thanks for the quick response, @AyanSinhaMahapatra, I did not think of the additional parameters during parsing. Unfortunately, this does not solve my particular use case. Your example works if I get a String as input, but let's assume I have to validate the expression that someone generated by using this code (of course, they could have used the
So the only thing I get is |
@AyanSinhaMahapatra @pombredanne |
@armintaenzertng help would be much welcomed! |
@armintaenzertng you can go back to the string object by using I think the intended use here was, when we are validating a license expression, we are checking if the @pombredanne what do you think? |
Hi, I am trying to validate a given
LicenseExpression
usingget_spdx_licensing().validate()
. This is very helpful in providing a list of unknown symbols not on the SPDX License and Exception Lists. I encountered the problem, though, that exception symbols are also compared against the SPDX License List and licenses against the Exception list:Example:
yields:
As 389-exception is not a license and MIT not an exception, I would expect an error here. Furthermore, I would find it helpful if there were two separate lists for
invalid_symbols
: For example, oneinvalid_license_symbols
and oneinvalid_exception_symbols
.The text was updated successfully, but these errors were encountered: