mozilla / contribute.json

A JSON schema for open-source project contribution data.
https://www.contributejson.org/
Mozilla Public License 2.0
41 stars 29 forks source link

Canonical license identifiers/names #76

Open schumaml opened 7 years ago

schumaml commented 7 years ago

Identifiers for licenses can be written in many different ways - "GPLv3 or later", "GPLv3", "GPL3", ...

To put a stop to identifier proliferation in contribute.json from the start, there could be a preference for identifiers from the SPDX licenses list, https://spdx.org/licenses/ - and warning by the validator if the license doesn't match any of those.

P.S. this means that most existing contribute.json files should be changed from using MPL2 to MPL-2.0 - see https://spdx.org/licenses/MPL-2.0.html

P.P.S. and yes, the WTFPL is part of this list :)

pmac commented 7 years ago

I do like this. And like I said in #75 I think we should use SPDX license expression syntax for specification of multiple licenses as well.

peterbe commented 7 years ago

Cool! I don't think we should break the validation on contributejson.org but we can certainly throw up a warning.

I'm happy to help write that code if you can help with writing the error message that should appear when you do a validation check.

peterbe commented 7 years ago

Our sample is clearly wrong then :) https://github.com/mozilla/contribute.json/blob/master/app/app.py#L27