Skip to content

Commit 1980189

Browse files
authored
Merge pull request #2800 from opossum-tool/update-schema-with-license-classification
feat: update input file schema to include configurable classifications for signals
2 parents 85d3b0f + a2f8166 commit 1980189

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

src/ElectronBackend/input/OpossumInputFileSchema.json

+21
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@
1111
],
1212
"additionalProperties": false,
1313
"properties": {
14+
"config": {
15+
"type": "object",
16+
"description": "Configuration for OpossumUI.",
17+
"properties": {
18+
"classifications": {
19+
"type": "object",
20+
"description": "Mapping of classification values to human-readable labels. See \"classification\" field of \"externalAttribution\".",
21+
"additionalProperties": false,
22+
"patternProperties": {
23+
"^[0-9]+$": {
24+
"type": "string"
25+
}
26+
}
27+
}
28+
}
29+
},
1430
"resources": {
1531
"id": "#ResourcesSchema",
1632
"type": "object",
@@ -121,6 +137,11 @@
121137
"type": "string",
122138
"description": "Indication on how critical a signal is. Possible values are \"high\" and \"medium\"."
123139
},
140+
"classification": {
141+
"type": "number",
142+
"description": "Signal classification by usage, usually based on the license. Zero corresponds to unrestricted usage while higher levels mean more and more restrictions. Exact values and labels need to be configured in the config section.",
143+
"minimum": 0
144+
},
124145
"copyright": {
125146
"type": "string",
126147
"description": "Copyright of the package"

0 commit comments

Comments
 (0)