diff --git a/schema/2.0/modules/cyclonedx-common-2.0.schema.json b/schema/2.0/modules/cyclonedx-common-2.0.schema.json index 77beed6f2..99052fc2d 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -1259,10 +1259,13 @@ "allOf": [ {"$ref": "#/$defs/measure"}, { + "type": "object", "required": ["unit"], "properties": { "unit": {"$ref": "#/$defs/energyUnits"} - } + }, + "additionalProperties": true, + "$comment": "This is a mixin - a constraint on the base schema." } ] }, @@ -1272,10 +1275,13 @@ "allOf": [ {"$ref": "#/$defs/measure"}, { + "type": "object", "required": ["unit"], "properties": { "unit": {"$ref": "#/$defs/co2Units"} - } + }, + "additionalProperties": true, + "$comment": "This is a mixin - a constraint on the base schema." } ] },