From 701b471086675cfeaf28d18b49a4c8b44536e847 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Thu, 12 Nov 2026 11:54:58 +0100 Subject: [PATCH] 2.0-dev fix strictness Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-common-2.0.schema.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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." } ] },