-
Notifications
You must be signed in to change notification settings - Fork 38
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
Why is there no ListedLicense::getId
in SPDXv3?
#282
Comments
In Spec version 3, we now only refer to licenses in the serialized file with the full URI (e.g. Since we're generating the SPDXv3 code from the model file, it would be a bit hacky to add a You can use the static helper function |
By full URI, you mean I should use |
Isn't I still feel |
Good point on the This would restore the |
Does SPDXv3 now require the full URI format for identifiers? Or is listing the short identifier like /*
* SPDX-License-Identifier: Apache-2.0
*/ still valid in v3? If it's still used, and we need to work with ids directly, then it seems like the plain id should be there in the code. |
@dwalluck I just created spdx/spdx-java-core#25 which should add a I tested to make sure it worked with both spec version 2 listed licenses and spec version 3 listed licenses. The tests were not exhaustive - they only tested one path for created the listed license using the create license by ID - but I think this should resolve this issue. Let me know if you agree. |
I think this is fine. |
Fixed with spdx/spdx-java-core#25 |
SPDXv2 has
SpdxListedLicense::getId
(orSpdxListedLicense::getLicenseId
), but there is no equivalent forListedLicense
in SPDXv3. Actually,ListedLicense::toString
returns exactly theid
, I think, but it's not good to rely ontoString
for something like that.The text was updated successfully, but these errors were encountered: