clearlydefined / clearlydefined/service
No license text in /notices response for SPDX licenses with exceptions
- Dominant language
- TypeScript
- Stars
- 51
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
REST API /notice returns only license name instead of full license text.
E.g. for org.openjfx/javafx-base/11.0.2
`curl -X POST "https://api.clearlydefined.io/notices" -H "accept: application/json" -H "Content-Type: application/json" -d "{\"coordinates\":[\"maven/mavencentral/org.openjfx/javafx-base/11.0.2\"],\"options\":{}}"`
```
{
"content": "** org.openjfx/javafx-base; version 11.0.2 -- \n\nGPL-2.0-only WITH Classpath-exception-2.0",
"summary": {
"total": 1,
"warnings": {
"noDefinition": [],
"noLicense": [],
"noCopyright": [
"maven/mavencentral/org.openjfx/javafx-base/11.0.2"
]
}
}
}
```
So it has a license **GPL-2.0-only WITH Classpath-exception-2.0** which is SPDX expression for an exception.
I checked the code and it seems that **spdx-license-list** library which is used to retrieve license text actually doesn't support SPDX expression so is not able to return the text.
Contributor guide
Assessment
This issue has not been assessed yet.