-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
licenseChoice
streamlined
#205
Conversation
97ef87d
to
a3ad114
Compare
a3ad114
to
14fe986
Compare
0d28fe0
to
29e7d66
Compare
}, | ||
{ | ||
"required": ["expression"] | ||
"additionalItems": false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
defined items as a list(tuple!) with only one item and set additionalItems
to false.
this causes validators and other to see: this list must have exactly one item with the defined predicates.
29e7d66
to
05cf5ca
Compare
Signed-off-by: Jan Kowalleck <[email protected]>
05cf5ca
to
4c85896
Compare
What do we have to do when the tool raises a LicenseExpressionAlongWithOthersException ? |
It is expected to be either an expression, or a list of licenses; not both. |
I don't understand at all what I'm doing but, if I keep only one licence element in that conanfile.py, this fixes the error. |
This is the repository of CycloneDX specification - the international standard. |
OK, thanks, I will suggest on Conan's repository to combine the the 2 license expressions into one with and AND operator:
Perhaps multiple WITH clauses are allowed, but my guess is that would mean the same. |
fixes #204
proposal to streamline
licenses
: make JSON meat the existing XML specthis does not change the actual SBOM structure in any way.
it only puts a constraint on the document to have exactly one expression in the list, if there is any expression.