diff --git a/schema/v5.0/CVE_JSON_5.0_schema.json b/schema/v5.0/CVE_JSON_5.0_schema.json index effc3f63204..f5131dcb674 100644 --- a/schema/v5.0/CVE_JSON_5.0_schema.json +++ b/schema/v5.0/CVE_JSON_5.0_schema.json @@ -247,7 +247,8 @@ "minLength": 1, "maxLength": 4096 } - } + }, + "additionalProperties": false } }, "platforms": { @@ -288,11 +289,10 @@ "maxProperties": 3 }, { - "required": ["version", "status", "versionType"], - "oneOf": [ - {"required": ["lessThan"]}, - {"required": ["lessThanOrEqual"]} - ] + "required": ["version", "status", "versionType", "lessThan"] + }, + { + "required": ["version", "status", "versionType", "lessThanOrEqual"] } ], "properties": { @@ -348,7 +348,8 @@ } } } - } + }, + "additionalProperties": false } } } @@ -722,7 +723,8 @@ "required": [ "type", "value" - ] + ], + "additionalProperties": false } } }, @@ -883,7 +885,8 @@ "required": [ "lang", "value" - ] + ], + "additionalProperties": false } }, "cvssV3_1": {"$ref": "file:imports/cvss/cvss-v3.1.json"}, @@ -905,13 +908,15 @@ }, "content": { "type": "object", + "$comment": "additionalProperties are allowed here, since this construct supports arbitrary JSON.", "description": "JSON object not covered by another metrics format.", "minProperties": 1 } - } - }, - "additionalProperties": false - } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } }, "configurations": { @@ -1100,10 +1105,12 @@ "minLength": 1, "maxLength": 2048 } - } + }, + "additionalProperties": false } } - } + }, + "additionalProperties": false } }, "tagExtension": {