clearlydefined / service

The service side of clearlydefined.io
MIT License
45 stars 40 forks source link

interpret licenses for missing versions #1098

Open elrayle opened 5 months ago

elrayle commented 5 months ago

Description

If a license is requested for a package that exists in ClearlyDefined data but the specific version requested does not have data, interpret the license from the existing data.

The interpreted license will be each identified license for all versions AND together and including AND LicenseRef-clearlydefined-NODATA. In this way, we do not have do figure out where in the list of versions the requested version lies and attempt to determine which license applies if there are multiple licenses. The LicenseRef-clearlydefined-NODATA tells the consumer that there was no license data for this specific coordinates (package + version) and the return license was interpreted.

Examples...