Adopt new OSS tool format for cglicenses.json

This commit is contained in:
Alex Dima 2019-08-26 12:34:52 +02:00
parent 528806232a
commit 5e13837b56
2 changed files with 63 additions and 25 deletions

View file

@ -1,23 +1,61 @@
{ {
"type": "array", "type": "array",
"items": { "items": {
"type": "object", "oneOf": [
"required": [ {
"name", "type": "object",
"licenseDetail" "required": [
], "name",
"properties": { "prependLicenseText"
"name": { ],
"type": "string", "properties": {
"description": "The name of the dependency" "name": {
"type": "string",
"description": "The name of the dependency"
},
"fullLicenseText": {
"type": "array",
"description": "The complete license text of the dependency",
"items": {
"type": "string"
}
},
"prependLicenseText": {
"type": "array",
"description": "A piece of text to prepend to the auto-detected license text of the dependency",
"items": {
"type": "string"
}
}
}
}, },
"licenseDetail": { {
"type": "array", "type": "object",
"description": "The complete license text of the dependency", "required": [
"items": { "name",
"type": "string" "fullLicenseText"
],
"properties": {
"name": {
"type": "string",
"description": "The name of the dependency"
},
"fullLicenseText": {
"type": "array",
"description": "The complete license text of the dependency",
"items": {
"type": "string"
}
},
"prependLicenseText": {
"type": "array",
"description": "A piece of text to prepend to the auto-detected license text of the dependency",
"items": {
"type": "string"
}
}
} }
} }
} ]
} }
} }

View file

@ -10,7 +10,7 @@
// Reason: The license at https://github.com/aadsm/jschardet/blob/master/LICENSE // Reason: The license at https://github.com/aadsm/jschardet/blob/master/LICENSE
// does not include a clear Copyright statement and does not credit authors. // does not include a clear Copyright statement and does not credit authors.
"name": "jschardet", "name": "jschardet",
"licenseDetail": [ "fullLicenseText": [
"Chardet was originally ported from C++ by Mark Pilgrim. It is now maintained", "Chardet was originally ported from C++ by Mark Pilgrim. It is now maintained",
" by Dan Blanchard and Ian Cordasco, and was formerly maintained by Erik Rose.", " by Dan Blanchard and Ian Cordasco, and was formerly maintained by Erik Rose.",
" JSChardet was ported from python to JavaScript by António Afonso ", " JSChardet was ported from python to JavaScript by António Afonso ",
@ -530,7 +530,7 @@
// The module `parse5` is shipped via the `extension-editing` built-in extension. // The module `parse5` is shipped via the `extension-editing` built-in extension.
// The module `parse5` does not want to remove it https://github.com/inikulin/parse5/issues/225 // The module `parse5` does not want to remove it https://github.com/inikulin/parse5/issues/225
"name": "@types/node", "name": "@types/node",
"licenseDetail": [ "fullLicenseText": [
"This project is licensed under the MIT license.", "This project is licensed under the MIT license.",
"Copyrights are respective of each contributor listed at the beginning of each definition file.", "Copyrights are respective of each contributor listed at the beginning of each definition file.",
"", "",
@ -546,7 +546,7 @@
// https://github.com/Microsoft/TypeScript/blob/master/LICENSE.txt // https://github.com/Microsoft/TypeScript/blob/master/LICENSE.txt
// because it does not contain a Copyright statement // because it does not contain a Copyright statement
"name": "typescript", "name": "typescript",
"licenseDetail": [ "fullLicenseText": [
"Copyright (c) Microsoft Corporation. All rights reserved.", "Copyright (c) Microsoft Corporation. All rights reserved.",
"", "",
"Apache License", "Apache License",
@ -609,7 +609,7 @@
{ {
// This module comes in from https://github.com/Microsoft/vscode-node-debug2/blob/master/package-lock.json // This module comes in from https://github.com/Microsoft/vscode-node-debug2/blob/master/package-lock.json
"name": "@types/source-map", "name": "@types/source-map",
"licenseDetail": [ "fullLicenseText": [
"This project is licensed under the MIT license.", "This project is licensed under the MIT license.",
"Copyrights are respective of each contributor listed at the beginning of each definition file.", "Copyrights are respective of each contributor listed at the beginning of each definition file.",
"", "",
@ -622,7 +622,7 @@
}, },
{ {
"name": "tunnel-agent", "name": "tunnel-agent",
"licenseDetail": [ "fullLicenseText": [
"Copyright (c) tunnel-agent authors", "Copyright (c) tunnel-agent authors",
"", "",
"Apache License", "Apache License",
@ -685,7 +685,7 @@
{ {
// Waiting for https://github.com/segmentio/noop-logger/issues/2 // Waiting for https://github.com/segmentio/noop-logger/issues/2
"name": "noop-logger", "name": "noop-logger",
"licenseDetail": [ "fullLicenseText": [
"This project is licensed under the MIT license.", "This project is licensed under the MIT license.",
"Copyrights are respective of each contributor listed at the beginning of each definition file.", "Copyrights are respective of each contributor listed at the beginning of each definition file.",
"", "",
@ -698,7 +698,7 @@
}, },
{ {
"name": "xterm-addon-search", "name": "xterm-addon-search",
"licenseDetail": [ "fullLicenseText": [
"Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)", "Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)",
"", "",
"Permission is hereby granted, free of charge, to any person obtaining a copy", "Permission is hereby granted, free of charge, to any person obtaining a copy",
@ -722,7 +722,7 @@
}, },
{ {
"name": "xterm-addon-web-links", "name": "xterm-addon-web-links",
"licenseDetail": [ "fullLicenseText": [
"Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)", "Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)",
"", "",
"Permission is hereby granted, free of charge, to any person obtaining a copy", "Permission is hereby granted, free of charge, to any person obtaining a copy",
@ -746,7 +746,7 @@
}, },
{ {
"name": "atob", "name": "atob",
"licenseDetail": [ "fullLicenseText": [
"The MIT License (MIT)", "The MIT License (MIT)",
"", "",
"Copyright (c) 2015 AJ ONeal", "Copyright (c) 2015 AJ ONeal",