Skip to content

Commit

Permalink
Remove CVSS validation (#178)
Browse files Browse the repository at this point in the history
Based on conversation on #168, the CVSS validation by pure regex is too
strict, so remove.

Fixes: #168

Signed-off-by: Andrew Pollock <[email protected]>
  • Loading branch information
andrewpollock authored Jul 19, 2023
1 parent ce10afb commit a2972fc
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions validation/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit a2972fc

Please sign in to comment.