-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added enum with license identifiers from opendefinition and spdx
- Loading branch information
Showing
2 changed files
with
527 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Developer notes | ||
|
||
|
||
```shell | ||
# get the list of licenses from opendefinition | ||
LIST0=`curl https://licenses.opendefinition.org/licenses/groups/all.json | jq '.[].id'` | ||
|
||
#get the list of licenses from spdx | ||
LIST1=`curl https://raw.githubusercontent.com/spdx/license-list-data/master/json/licenses.json | jq '.licenses[].licenseId'` | ||
|
||
# combine, unique, add trailing comma | ||
echo -e "$LIST0\n$LIST1" | sort | uniq | sed s/$/,/g | ||
|
||
# then, copy paste into schema.json | ||
``` |
Oops, something went wrong.