Skip to content

Commit

Permalink
restrict additionalProperties in CVSS 4.0 object to prevent typos in …
Browse files Browse the repository at this point in the history
…fields.
  • Loading branch information
chandanbn committed Oct 16, 2023
1 parent d0f7e1c commit 0660e59
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion schema/v5.0/docs/CVE_JSON_5.1_bundled.json
Original file line number Diff line number Diff line change
Expand Up @@ -1555,7 +1555,8 @@
"vectorString",
"baseScore",
"baseSeverity"
]
],
"additionalProperties": false
},
"cvssV3_1": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
4 changes: 2 additions & 2 deletions schema/v5.0/docs/index.html

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion schema/v5.0/imports/cvss/cvss-v4.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -383,5 +383,6 @@
]
}
],
"required": [ "version", "vectorString", "baseScore", "baseSeverity" ]
"required": [ "version", "vectorString", "baseScore", "baseSeverity" ],
"additionalProperties": false
}
2 changes: 1 addition & 1 deletion schema/v5.0/support/Node_Validator/dist/cve5validator.js

Large diffs are not rendered by default.

0 comments on commit 0660e59

Please sign in to comment.