Skip to content

Commit

Permalink
added vulnerability options
Browse files Browse the repository at this point in the history
  • Loading branch information
ncerutti committed Jan 17, 2024
1 parent a2c3530 commit 525ce2f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions ods_tools/data/model_settings_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,49 @@
]
}
},
"vulnerability_adjustments": {
"type": "object",
"title": "Vulnerability Factor Adjustments",
"description": "Dictionary containing vulnerability adjustments with vulnerability ID as integer keys and adjustment factors as float values.",
"patternProperties": {
"^[0-9]+$": {
"type": "number",
"minimum": 0
}
},
"additionalProperties": false
},
"vulnerability_replacements": {
"type": ["object", "string"],
"title": "Vulnerability Replacements",
"description": "This can either be a JSON object with detailed settings (vulnerability ID and associated replacement data) or a path to a csv file with that data.",
"oneOf": [
{
"type": "string",
"description": "Path to a CSV file containing vulnerability data to be replaced."
},
{
"type": "object",
"description": "Detailed vulnerability replacements.",
"patternProperties": {
"^[0-9]+$": {
"type": "array",
"items": {
"type": "array",
"minItems": 3,
"maxItems": 3,
"items": [
{ "type": "integer" },
{ "type": "integer" },
{ "type": "number", "minimum": 0, "maximum": 1 }
]
}
}
},
"additionalProperties": false
}
]
},
"string_parameters":{
"title":"Single string paramters",
"type":"array",
Expand Down

0 comments on commit 525ce2f

Please sign in to comment.