Skip to content

Commit 5e13837

Browse files
committed
Adopt new OSS tool format for cglicenses.json
1 parent 5288062 commit 5e13837

2 files changed

Lines changed: 63 additions & 25 deletions

File tree

.vscode/cglicenses.schema.json

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,61 @@
11
{
22
"type": "array",
33
"items": {
4-
"type": "object",
5-
"required": [
6-
"name",
7-
"licenseDetail"
8-
],
9-
"properties": {
10-
"name": {
11-
"type": "string",
12-
"description": "The name of the dependency"
4+
"oneOf": [
5+
{
6+
"type": "object",
7+
"required": [
8+
"name",
9+
"prependLicenseText"
10+
],
11+
"properties": {
12+
"name": {
13+
"type": "string",
14+
"description": "The name of the dependency"
15+
},
16+
"fullLicenseText": {
17+
"type": "array",
18+
"description": "The complete license text of the dependency",
19+
"items": {
20+
"type": "string"
21+
}
22+
},
23+
"prependLicenseText": {
24+
"type": "array",
25+
"description": "A piece of text to prepend to the auto-detected license text of the dependency",
26+
"items": {
27+
"type": "string"
28+
}
29+
}
30+
}
1331
},
14-
"licenseDetail": {
15-
"type": "array",
16-
"description": "The complete license text of the dependency",
17-
"items": {
18-
"type": "string"
32+
{
33+
"type": "object",
34+
"required": [
35+
"name",
36+
"fullLicenseText"
37+
],
38+
"properties": {
39+
"name": {
40+
"type": "string",
41+
"description": "The name of the dependency"
42+
},
43+
"fullLicenseText": {
44+
"type": "array",
45+
"description": "The complete license text of the dependency",
46+
"items": {
47+
"type": "string"
48+
}
49+
},
50+
"prependLicenseText": {
51+
"type": "array",
52+
"description": "A piece of text to prepend to the auto-detected license text of the dependency",
53+
"items": {
54+
"type": "string"
55+
}
56+
}
1957
}
2058
}
21-
}
59+
]
2260
}
23-
}
61+
}

cglicenses.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Reason: The license at https://github.com/aadsm/jschardet/blob/master/LICENSE
1111
// does not include a clear Copyright statement and does not credit authors.
1212
"name": "jschardet",
13-
"licenseDetail": [
13+
"fullLicenseText": [
1414
"Chardet was originally ported from C++ by Mark Pilgrim. It is now maintained",
1515
" by Dan Blanchard and Ian Cordasco, and was formerly maintained by Erik Rose.",
1616
" JSChardet was ported from python to JavaScript by António Afonso ",
@@ -530,7 +530,7 @@
530530
// The module `parse5` is shipped via the `extension-editing` built-in extension.
531531
// The module `parse5` does not want to remove it https://github.com/inikulin/parse5/issues/225
532532
"name": "@types/node",
533-
"licenseDetail": [
533+
"fullLicenseText": [
534534
"This project is licensed under the MIT license.",
535535
"Copyrights are respective of each contributor listed at the beginning of each definition file.",
536536
"",
@@ -546,7 +546,7 @@
546546
// https://github.com/Microsoft/TypeScript/blob/master/LICENSE.txt
547547
// because it does not contain a Copyright statement
548548
"name": "typescript",
549-
"licenseDetail": [
549+
"fullLicenseText": [
550550
"Copyright (c) Microsoft Corporation. All rights reserved.",
551551
"",
552552
"Apache License",
@@ -609,7 +609,7 @@
609609
{
610610
// This module comes in from https://github.com/Microsoft/vscode-node-debug2/blob/master/package-lock.json
611611
"name": "@types/source-map",
612-
"licenseDetail": [
612+
"fullLicenseText": [
613613
"This project is licensed under the MIT license.",
614614
"Copyrights are respective of each contributor listed at the beginning of each definition file.",
615615
"",
@@ -622,7 +622,7 @@
622622
},
623623
{
624624
"name": "tunnel-agent",
625-
"licenseDetail": [
625+
"fullLicenseText": [
626626
"Copyright (c) tunnel-agent authors",
627627
"",
628628
"Apache License",
@@ -685,7 +685,7 @@
685685
{
686686
// Waiting for https://github.com/segmentio/noop-logger/issues/2
687687
"name": "noop-logger",
688-
"licenseDetail": [
688+
"fullLicenseText": [
689689
"This project is licensed under the MIT license.",
690690
"Copyrights are respective of each contributor listed at the beginning of each definition file.",
691691
"",
@@ -698,7 +698,7 @@
698698
},
699699
{
700700
"name": "xterm-addon-search",
701-
"licenseDetail": [
701+
"fullLicenseText": [
702702
"Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)",
703703
"",
704704
"Permission is hereby granted, free of charge, to any person obtaining a copy",
@@ -722,7 +722,7 @@
722722
},
723723
{
724724
"name": "xterm-addon-web-links",
725-
"licenseDetail": [
725+
"fullLicenseText": [
726726
"Copyright (c) 2017, The xterm.js authors (https://github.com/xtermjs/xterm.js)",
727727
"",
728728
"Permission is hereby granted, free of charge, to any person obtaining a copy",
@@ -746,7 +746,7 @@
746746
},
747747
{
748748
"name": "atob",
749-
"licenseDetail": [
749+
"fullLicenseText": [
750750
"The MIT License (MIT)",
751751
"",
752752
"Copyright (c) 2015 AJ ONeal",

0 commit comments

Comments
 (0)