schema.json: Add example SPDX license identifiers to schema

This commit is contained in:
Richard Kuhnt
2018-11-03 20:43:23 +01:00
parent fbaa89bcb5
commit 696f2e2e22
+28 -2
View File
@@ -348,6 +348,32 @@
"uniqueItems": true
}
]
},
"licenseIdentifiers": {
"type": "string",
"description": "License identifier based on SPDX License List https://spdx.org/licenses/",
"examples": [
"Apache-2.0",
"BSD-3-Clause",
"Freeware",
"GPL-2.0-only",
"GPL-2.0-or-later",
"GPL-3.0-only",
"GPL-3.0-or-later",
"ISC",
"LGPL-2.0-only",
"LGPL-2.0-or-later",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"LGPL-3.0-only",
"LGPL-3.0-or-later",
"MIT",
"MS-PL",
"Proprietary",
"Public Domain",
"Shareware",
"Unlicense"
]
}
},
"properties": {
@@ -423,7 +449,7 @@
"license": {
"anyOf": [
{
"type": "string"
"$ref": "#/definitions/licenseIdentifiers"
},
{
"additionalProperties": false,
@@ -433,7 +459,7 @@
"type": "string"
},
"identifier": {
"type": "string"
"$ref": "#/definitions/licenseIdentifiers"
}
},
"required": [