You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
docs: detail SPDX compatibility for license key #1022
The license key complies with SPDX, but the field's docs don't state that the value is a license expression, nor the constraints. Users might understand it to be a plain a string.
The docstring that's more commonly consumed for the license is this one. The annotated type isn't used by default to allow downstream apps to decide how strict they want to be.
The downstream models aren't all consistent with one another.
That being said, the docstring I linked could still be more helpful. At the very least, we can include an example for conjunctive licenses and use a nicer link for the spec.
Technically in craft-application this is just just a string. However, we provide the ability for apps to use SpdxLicenseStr (which is actually a string containing a license expression, sigh). I believe only Rockcraft uses that currently.
Activity
syncronize-issues-to-jira commentedon Mar 9, 2026
Thank you for reporting your feedback to us!
The internal ticket has been created: https://warthogs.atlassian.net/browse/CRAFT-5045.
medubelko commentedon Mar 10, 2026
From @jahn-junior:
lengau commentedon Mar 12, 2026
Technically in craft-application this is just just a string. However, we provide the ability for apps to use
SpdxLicenseStr(which is actually a string containing a license expression, sigh). I believe only Rockcraft uses that currently.medubelko commentedon Mar 12, 2026
Should we override the text in the Rockcraft docs? It's inconvenient that the field is the same.