From 9e40543a2e75661bae79e7f9d30d86c43bdd4bec Mon Sep 17 00:00:00 2001 From: Andrew Pollock Date: Tue, 18 Jul 2023 10:40:41 +1000 Subject: [PATCH] Remove CVSS validation Based on conversation on #168, the CVSS validation by pure regex is too strict, so remove. Fixes: #168 Signed-off-by: Andrew Pollock --- validation/schema.json | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/validation/schema.json b/validation/schema.json index 9cda4c64..0f79679a 100644 --- a/validation/schema.json +++ b/validation/schema.json @@ -296,40 +296,6 @@ "type": "string" } }, - "allOf": [ - { - "if": { - "properties": { - "type": { - "const": "CVSS_V2" - } - } - }, - "then": { - "properties": { - "score": { - "pattern": "AV:[NAL]\\/AC:[LMH]\\/A[Uu]:[NSM]\\/C:[NPC]\\/I:[NPC]\\/A:[NPC]" - } - } - } - }, - { - "if": { - "properties": { - "type": { - "const": "CVSS_V3" - } - } - }, - "then": { - "properties": { - "score": { - "pattern": "CVSS:3\\.[0-9]\\/AV:[NALP]\\/AC:[LH]\\/PR:[NLH]\\/UI:[NR]\\/S:[UC]\\/C:[NLH]\\/I:[NLH]\\/A:[NLH]" - } - } - } - } - ], "required": [ "type", "score"