|
531 | 531 | },
|
532 | 532 | "vulnerability_adjustments": {
|
533 | 533 | "type": "object",
|
534 |
| - "title": "Vulnerability Factor Adjustments", |
535 |
| - "description": "Dictionary containing vulnerability adjustments with vulnerability ID as integer keys and adjustment factors as float values.", |
536 |
| - "patternProperties": { |
537 |
| - "^[0-9]+$": { |
538 |
| - "type": "number", |
539 |
| - "minimum": 0 |
| 534 | + "title": "Vulnerability Adjustments", |
| 535 | + "description": "Object containing vulnerability adjustments and replacements.", |
| 536 | + "properties": { |
| 537 | + "adjustments": { |
| 538 | + "type": "object", |
| 539 | + "title": "Vulnerability Factor Adjustments", |
| 540 | + "description": "Dictionary containing vulnerability adjustments with vulnerability ID as integer keys and adjustment factors as float values.", |
| 541 | + "patternProperties": { |
| 542 | + "^[0-9]+$": { |
| 543 | + "type": "number", |
| 544 | + "minimum": 0 |
| 545 | + } |
| 546 | + }, |
| 547 | + "additionalProperties": false |
| 548 | + }, |
| 549 | + "replace_data": { |
| 550 | + "type": "object", |
| 551 | + "title": "Vulnerability Replacements", |
| 552 | + "description": "Detailed vulnerability replacements.", |
| 553 | + "patternProperties": { |
| 554 | + "^[0-9]+$": { |
| 555 | + "type": "array", |
| 556 | + "items": { |
| 557 | + "type": "array", |
| 558 | + "minItems": 3, |
| 559 | + "maxItems": 3, |
| 560 | + "items": [ |
| 561 | + { "type": "integer" }, |
| 562 | + { "type": "integer" }, |
| 563 | + { "type": "number", "minimum": 0, "maximum": 1 } |
| 564 | + ] |
| 565 | + } |
| 566 | + } |
| 567 | + }, |
| 568 | + "additionalProperties": false |
| 569 | + }, |
| 570 | + "replace_file": { |
| 571 | + "type": "string", |
| 572 | + "title": "Vulnerability Replacement File", |
| 573 | + "description": "Path to a CSV file containing vulnerability data to be replaced." |
540 | 574 | }
|
541 | 575 | },
|
542 | 576 | "additionalProperties": false
|
543 |
| - }, |
544 |
| - "vulnerability_replacements": { |
545 |
| - "type": ["object", "string"], |
546 |
| - "title": "Vulnerability Replacements", |
547 |
| - "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.", |
548 |
| - "oneOf": [ |
549 |
| - { |
550 |
| - "type": "string", |
551 |
| - "description": "Path to a CSV file containing vulnerability data to be replaced." |
552 |
| - }, |
553 |
| - { |
554 |
| - "type": "object", |
555 |
| - "description": "Detailed vulnerability replacements.", |
556 |
| - "patternProperties": { |
557 |
| - "^[0-9]+$": { |
558 |
| - "type": "array", |
559 |
| - "items": { |
560 |
| - "type": "array", |
561 |
| - "minItems": 3, |
562 |
| - "maxItems": 3, |
563 |
| - "items": [ |
564 |
| - { "type": "integer" }, |
565 |
| - { "type": "integer" }, |
566 |
| - { "type": "number", "minimum": 0, "maximum": 1 } |
567 |
| - ] |
568 |
| - } |
569 |
| - } |
570 |
| - }, |
571 |
| - "additionalProperties": false |
572 |
| - } |
573 |
| - ] |
574 |
| - }, |
| 577 | + }, |
575 | 578 | "string_parameters":{
|
576 | 579 | "title":"Single string paramters",
|
577 | 580 | "type":"array",
|
|
0 commit comments