Skip to content

Commit

Permalink
added enum with license identifiers from opendefinition and spdx
Browse files Browse the repository at this point in the history
  • Loading branch information
jspaaks committed Apr 6, 2022
1 parent 443b45a commit ad5a9ee
Show file tree
Hide file tree
Showing 2 changed files with 527 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.dev.md
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
```
Loading

0 comments on commit ad5a9ee

Please sign in to comment.