Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update input file schema to include configurable classifications for signals #2800

Merged
merged 2 commits into from
Feb 20, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions src/ElectronBackend/input/OpossumInputFileSchema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,22 @@
],
"additionalProperties": false,
"properties": {
"config": {
"type": "object",
"description": "Configuration for OpossumUI.",
"properties": {
"classifications": {
"type": "object",
"description": "Mapping of classification values to human-readable labels. See \"classification\" field of \"externalAttribution\".",
"additionalProperties": false,
"patternProperties": {
"^[0-9]+$": {
"type": "string"
}
}
}
}
},
"resources": {
"id": "#ResourcesSchema",
"type": "object",
Expand Down Expand Up @@ -121,6 +137,11 @@
"type": "string",
"description": "Indication on how critical a signal is. Possible values are \"high\" and \"medium\"."
},
"classification": {
"type": "number",
"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.",
"minimum": 0
},
"copyright": {
"type": "string",
"description": "Copyright of the package"
Expand Down
Loading