From 6403fec542dd50263acae5b53ed360562f4df281 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 12:01:36 +0100 Subject: [PATCH 1/9] streamline ISO 3166 Signed-off-by: Jan Kowalleck --- .../cyclonedx-certification-2.0.schema.json | 8 ++++- .../modules/cyclonedx-common-2.0.schema.json | 32 +++++++++++++++++-- .../modules/cyclonedx-data-2.0.schema.json | 19 ++--------- .../modules/cyclonedx-party-2.0.schema.json | 10 +++--- 4 files changed, 43 insertions(+), 26 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-certification-2.0.schema.json b/schema/2.0/modules/cyclonedx-certification-2.0.schema.json index 19e0adc4f..05249b3d7 100644 --- a/schema/2.0/modules/cyclonedx-certification-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-certification-2.0.schema.json @@ -59,9 +59,15 @@ "description": "Description of the activities, facilities, products, services, or operations covered by the certification." }, "jurisdiction": { - "type": "string", "title": "Jurisdiction", "description": "ISO 3166-1 alpha-2 country code, ISO 3166-2 subdivision, or supranational identifier such as `\"EU\"`, where the certification applies.", + "anyOf": [ + { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" }, + { + "type": "string", + "title": "Supranational identifier" + } + ], "examples": [ "US", "EU", "GB", "AU", "US-CA" ] }, "level": { 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 7c4ae381f..2c1c22cd8 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -445,6 +445,34 @@ "organizationalEntityOrContact": { "$comment": "TODO" }, + "ISO_3166": { + "title": "ISO 3166", + "$comment": "Internal helper. Not part of the public schema API — do not reference externally; may change without notice.", + "not": { "$comment": "This schema provides definitions only and is not intended for direct validation or instantiation." }, + "$defs": { + "alpha-2": { + "title": "ISO 3166-1 alpha-2 country code", + "type": "string", + "pattern": "^[A-Z]{2}$", + "examples": ["CA"] + }, + "subdivision": { + "title": " ISO 3166-2 subdivision code", + "type": "string", + "pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$", + "examples": ["US-CA"] + } + } + }, + "countryOrSubdivision": { + "title": "Country code or subdivision per ISO 3166", + "description": "Country or subdivision, expressed as an ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada) or an ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", + "examples": ["CA", "US-CA"], + "anyOf": [ + { "$ref": "#/$defs/ISO_3166/$defs/alpha-2"}, + { "$ref": "#/$defs/ISO_3166/$defs/subdivision"} + ] + }, "origin": { "type": "object", "title": "Origin", @@ -549,11 +577,9 @@ "required": [ "isoCode", "percentage" ], "properties": { "isoCode": { - "type": "string", "title": "ISO Code", "description": "The country or subdivision of origin, expressed as an ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada) or an ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", - "pattern": "^[A-Z]{2}(-[A-Z0-9]{1,3})?$", - "examples": [ "CA", "US-CA" ] + "$ref": "#/$defs/countryOrSubdivision" }, "value": { "type": "number", diff --git a/schema/2.0/modules/cyclonedx-data-2.0.schema.json b/schema/2.0/modules/cyclonedx-data-2.0.schema.json index e2ab80f49..d266b23f7 100644 --- a/schema/2.0/modules/cyclonedx-data-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-data-2.0.schema.json @@ -687,24 +687,11 @@ "jurisdictions": { "type": "array", "title": "Jurisdictions", - "description": "The geographic or political jurisdictions whose laws and regulations apply. Values should use ISO 3166-1 alpha-2 country codes or ISO 3166-2 subdivision codes for subnational jurisdictions.", + "description": "The geographic or political jurisdictions whose laws and regulations apply.", "uniqueItems": true, "items": { - "type": "string", - "minLength": 2, - "examples": [ - "US", - "GB", - "US-CA" - ] - }, - "examples": [ - [ - "US", - "GB", - "DE" - ] - ] + "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" + } }, "regulations": { "type": "array", diff --git a/schema/2.0/modules/cyclonedx-party-2.0.schema.json b/schema/2.0/modules/cyclonedx-party-2.0.schema.json index f35df3f5a..b812925c8 100644 --- a/schema/2.0/modules/cyclonedx-party-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-party-2.0.schema.json @@ -337,10 +337,9 @@ "description": "The date the organization was dissolved or wound down. When present, the organization is no longer active." }, "jurisdiction": { - "type": "string", "title": "Jurisdiction", "description": "Country of registration as an ISO 3166-1 alpha-2 or alpha-3 code, optionally followed by an ISO 3166-2 subdivision separated by a hyphen.", - "examples": [ "US-DE", "IT-BO", "CHE" ] + "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" }, "identifiers": { "type": "array", @@ -885,7 +884,8 @@ "country": { "type": "string", "title": "Country", - "description": "The country name or the two-letter ISO 3166-1 country code. When the `isoCode` property is present, the value of `isoCode` is authoritative." + "description": "The country name or the two-letter ISO 3166-1 country code. When the `isoCode` property is present, the value of `isoCode` is authoritative.", + "examples": [ "Germany", "DE" ] }, "region": { "type": "string", @@ -894,11 +894,9 @@ "examples": [ "Texas" ] }, "isoCode": { - "type": "string", - "pattern": "^[A-Z]{2}(-[A-Z0-9]{1,3})?$", "title": "ISO Code", "description": "An ISO 3166-1 alpha-2 country code, optionally followed by an ISO 3166-2 subdivision code separated by a hyphen. When present, this property is authoritative over the free-text country and region properties.", - "examples": [ "IT-BO", "US-CA", "DE-BY" ] + "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" }, "locality": { "type": "string", From 629e16211ac19b2b8152d5e5f64f0a852ae4e404 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 12:06:23 +0100 Subject: [PATCH 2/9] refactor Signed-off-by: Jan Kowalleck --- .../modules/cyclonedx-common-2.0.schema.json | 59 ++++++++++--------- 1 file changed, 31 insertions(+), 28 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 2c1c22cd8..43fc99122 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -445,34 +445,6 @@ "organizationalEntityOrContact": { "$comment": "TODO" }, - "ISO_3166": { - "title": "ISO 3166", - "$comment": "Internal helper. Not part of the public schema API — do not reference externally; may change without notice.", - "not": { "$comment": "This schema provides definitions only and is not intended for direct validation or instantiation." }, - "$defs": { - "alpha-2": { - "title": "ISO 3166-1 alpha-2 country code", - "type": "string", - "pattern": "^[A-Z]{2}$", - "examples": ["CA"] - }, - "subdivision": { - "title": " ISO 3166-2 subdivision code", - "type": "string", - "pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$", - "examples": ["US-CA"] - } - } - }, - "countryOrSubdivision": { - "title": "Country code or subdivision per ISO 3166", - "description": "Country or subdivision, expressed as an ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada) or an ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", - "examples": ["CA", "US-CA"], - "anyOf": [ - { "$ref": "#/$defs/ISO_3166/$defs/alpha-2"}, - { "$ref": "#/$defs/ISO_3166/$defs/subdivision"} - ] - }, "origin": { "type": "object", "title": "Origin", @@ -1434,6 +1406,37 @@ } } } + }, + "countryOrSubdivision": { + "title": "Country code or subdivision per ISO 3166", + "description": "Country or subdivision, expressed as an ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada) or an ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", + "examples": ["CA", "US-CA"], + "anyOf": [ + { "$ref": "#/$defs/ISO_3166/$defs/alpha-2"}, + { "$ref": "#/$defs/ISO_3166/$defs/subdivision"} + ] + }, + "ISO_3166": { + "title": "ISO 3166", + "description": "Internal helpers. Not part of the public schema API — do not reference externally; may change without notice.", + "not": { "$comment": "This schema provides definitions only and is not intended for direct validation or instantiation." }, + "$defs": { + "alpha-2": { + "title": "ISO 3166-1 alpha-2 country code", + "description": "ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada)", + "type": "string", + "pattern": "^[A-Z]{2}$", + "examples": ["CA"] + }, + "subdivision": { + "$comment": "Internal helpers. Not part of the public schema API — do not reference externally; may change without notice.", + "title": " ISO 3166-2 subdivision code", + "description": "ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", + "type": "string", + "pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$", + "examples": ["US-CA"] + } + } } } } From eafa42e67264962584a658c1c008ee3c087afa48 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 12:13:05 +0100 Subject: [PATCH 3/9] fix Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-data-2.0.schema.json | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-data-2.0.schema.json b/schema/2.0/modules/cyclonedx-data-2.0.schema.json index d266b23f7..20cbec460 100644 --- a/schema/2.0/modules/cyclonedx-data-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-data-2.0.schema.json @@ -687,10 +687,17 @@ "jurisdictions": { "type": "array", "title": "Jurisdictions", - "description": "The geographic or political jurisdictions whose laws and regulations apply.", + "description": "The geographic or political jurisdictions whose laws and regulations apply. Values should use ISO 3166-1 alpha-2 country codes or ISO 3166-2 subdivision codes for subnational jurisdictions.", "uniqueItems": true, "items": { - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" + "anyOf": [ + {"$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision"}, + { + "title": "Free text", + "description": "Values like supranational identifier such as `\"EU\"`.", + "type": "string" + } + ] } }, "regulations": { From c6ec6514cf569401bcce61e3bf188a2ab11a9847 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 12:19:47 +0100 Subject: [PATCH 4/9] style Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-common-2.0.schema.json | 10 +++++----- schema/2.0/modules/cyclonedx-data-2.0.schema.json | 8 +++++--- 2 files changed, 10 insertions(+), 8 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 43fc99122..6f4948b86 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -1410,10 +1410,10 @@ "countryOrSubdivision": { "title": "Country code or subdivision per ISO 3166", "description": "Country or subdivision, expressed as an ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada) or an ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", - "examples": ["CA", "US-CA"], + "examples": [ "CA", "US-CA" ], "anyOf": [ - { "$ref": "#/$defs/ISO_3166/$defs/alpha-2"}, - { "$ref": "#/$defs/ISO_3166/$defs/subdivision"} + { "$ref": "#/$defs/ISO_3166/$defs/alpha-2" }, + { "$ref": "#/$defs/ISO_3166/$defs/subdivision" } ] }, "ISO_3166": { @@ -1426,7 +1426,7 @@ "description": "ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada)", "type": "string", "pattern": "^[A-Z]{2}$", - "examples": ["CA"] + "examples": [ "CA", "DE", "US" ] }, "subdivision": { "$comment": "Internal helpers. Not part of the public schema API — do not reference externally; may change without notice.", @@ -1434,7 +1434,7 @@ "description": "ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", "type": "string", "pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$", - "examples": ["US-CA"] + "examples": [ "US-CA", "DE-BY" ] } } } diff --git a/schema/2.0/modules/cyclonedx-data-2.0.schema.json b/schema/2.0/modules/cyclonedx-data-2.0.schema.json index 20cbec460..8d3fe07b9 100644 --- a/schema/2.0/modules/cyclonedx-data-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-data-2.0.schema.json @@ -691,11 +691,13 @@ "uniqueItems": true, "items": { "anyOf": [ - {"$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision"}, + { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" }, { "title": "Free text", - "description": "Values like supranational identifier such as `\"EU\"`.", - "type": "string" + "description": "Values like supranational identifier.", + "type": "string", + "minLength": 2, + "examples": [ "EU" ] } ] } From efd15c883c2256586d87cffcda7b7c1526cefee3 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 12:24:09 +0100 Subject: [PATCH 5/9] example Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-certification-2.0.schema.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/schema/2.0/modules/cyclonedx-certification-2.0.schema.json b/schema/2.0/modules/cyclonedx-certification-2.0.schema.json index 05249b3d7..afe33a49f 100644 --- a/schema/2.0/modules/cyclonedx-certification-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-certification-2.0.schema.json @@ -65,10 +65,11 @@ { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" }, { "type": "string", - "title": "Supranational identifier" + "title": "Supranational identifier", + "minLength": 1, + "examples": [ "EU" ] } - ], - "examples": [ "US", "EU", "GB", "AU", "US-CA" ] + ] }, "level": { "type": "string", From 2c1096df06fde0302bb8b43c9d5d6205ed52ec28 Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 12:47:57 +0100 Subject: [PATCH 6/9] docs Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-common-2.0.schema.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 6f4948b86..9d1511af4 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -1424,14 +1424,15 @@ "alpha-2": { "title": "ISO 3166-1 alpha-2 country code", "description": "ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada)", + "$comment": "The pattern validates only the syntactic format of the code. It does not verify whether the value is an officially assigned ISO 3166-1 alpha-2 code. Implementations are responsible for validating values against the applicable ISO 3166-1 code list.", "type": "string", "pattern": "^[A-Z]{2}$", "examples": [ "CA", "DE", "US" ] }, "subdivision": { - "$comment": "Internal helpers. Not part of the public schema API — do not reference externally; may change without notice.", "title": " ISO 3166-2 subdivision code", "description": "ISO 3166-2 subdivision code (for example, `\"US-CA\"` for California, United States).", + "$comment": "The pattern validates only the syntactic format of the code. It does not verify whether the value is an officially assigned ISO 3166-2 subdivision code. Implementations are responsible for validating values against the applicable ISO 3166-2 code list.", "type": "string", "pattern": "^[A-Z]{2}-[A-Z0-9]{1,3}$", "examples": [ "US-CA", "DE-BY" ] From 937c101610101b14a7892fae1f4544dece5275cb Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 13:04:22 +0100 Subject: [PATCH 7/9] fix Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-common-2.0.schema.json | 12 ++++++++++-- schema/2.0/modules/cyclonedx-party-2.0.schema.json | 13 ++++++++++--- 2 files changed, 20 insertions(+), 5 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 9d1511af4..6c08cd113 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -327,9 +327,17 @@ "$ref": "#/$defs/refIdType" }, "country": { - "type": "string", "title": "Country", - "description": "The country name or the two-letter ISO 3166-1 country code." + "description": "The country name or the two-letter ISO 3166-1 alpha-2 country code.", + "anyOf": [ + { + "title": "Country name", + "type": "string", + "minLength": 1, + "examples": [ "Germany" ] + }, + { "$ref": "#/$defs/ISO_3166/$defs/alpha-2" } + ] }, "region": { "type": "string", diff --git a/schema/2.0/modules/cyclonedx-party-2.0.schema.json b/schema/2.0/modules/cyclonedx-party-2.0.schema.json index b812925c8..53534e051 100644 --- a/schema/2.0/modules/cyclonedx-party-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-party-2.0.schema.json @@ -882,10 +882,17 @@ "description": "An identifier that can be used to reference the address from elsewhere. Every `refId` shall be unique within the containing instance." }, "country": { - "type": "string", "title": "Country", - "description": "The country name or the two-letter ISO 3166-1 country code. When the `isoCode` property is present, the value of `isoCode` is authoritative.", - "examples": [ "Germany", "DE" ] + "description": "The country name or the two-letter ISO 3166-1 alpha-2 country code. When the `isoCode` property is present, the value of `isoCode` is authoritative.", + "anyOf": [ + { + "title": "Country name", + "type": "string", + "minLength": 1, + "examples": [ "Germany" ] + }, + { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/ISO_3166/$defs/alpha-2" } + ] }, "region": { "type": "string", From 7a3a8ce26934ff9c7ac2538895cbc181851255eb Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 13:22:40 +0100 Subject: [PATCH 8/9] fix Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-common-2.0.schema.json | 8 ++++++++ schema/2.0/modules/cyclonedx-party-2.0.schema.json | 6 +++++- 2 files changed, 13 insertions(+), 1 deletion(-) 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 6c08cd113..7d17a7ad4 100644 --- a/schema/2.0/modules/cyclonedx-common-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-common-2.0.schema.json @@ -1429,6 +1429,14 @@ "description": "Internal helpers. Not part of the public schema API — do not reference externally; may change without notice.", "not": { "$comment": "This schema provides definitions only and is not intended for direct validation or instantiation." }, "$defs": { + "alpha-3": { + "title": "ISO 3166-1 alpha-2 country code", + "description": "ISO 3166-1 alpha-3 country code (for example, `\"CHE\"` for Switzerland)", + "$comment": "The pattern validates only the syntactic format of the code. It does not verify whether the value is an officially assigned ISO 3166-1 alpha-2 code. Implementations are responsible for validating values against the applicable ISO 3166-1 code list.", + "type": "string", + "pattern": "^[A-Z]{3}$", + "examples": [ "CHE", "AUS", "AUT" ] + }, "alpha-2": { "title": "ISO 3166-1 alpha-2 country code", "description": "ISO 3166-1 alpha-2 country code (for example, `\"CA\"` for Canada)", diff --git a/schema/2.0/modules/cyclonedx-party-2.0.schema.json b/schema/2.0/modules/cyclonedx-party-2.0.schema.json index 53534e051..1cf4d264c 100644 --- a/schema/2.0/modules/cyclonedx-party-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-party-2.0.schema.json @@ -339,7 +339,11 @@ "jurisdiction": { "title": "Jurisdiction", "description": "Country of registration as an ISO 3166-1 alpha-2 or alpha-3 code, optionally followed by an ISO 3166-2 subdivision separated by a hyphen.", - "$ref": "cyclonedx-common-2.0.schema.json#/$defs/countryOrSubdivision" + "anyOf": [ + { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/ISO_3166/$defs/alpha-3" }, + { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/ISO_3166/$defs/alpha-2" }, + { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/ISO_3166/$defs/subdivision" } + ] }, "identifiers": { "type": "array", From b4f09513247ac10f0f291cb4aa95d13091300ddd Mon Sep 17 00:00:00 2001 From: Jan Kowalleck Date: Mon, 16 Nov 2026 13:28:18 +0100 Subject: [PATCH 9/9] docs Signed-off-by: Jan Kowalleck --- schema/2.0/modules/cyclonedx-party-2.0.schema.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/2.0/modules/cyclonedx-party-2.0.schema.json b/schema/2.0/modules/cyclonedx-party-2.0.schema.json index 1cf4d264c..912de97e0 100644 --- a/schema/2.0/modules/cyclonedx-party-2.0.schema.json +++ b/schema/2.0/modules/cyclonedx-party-2.0.schema.json @@ -338,7 +338,7 @@ }, "jurisdiction": { "title": "Jurisdiction", - "description": "Country of registration as an ISO 3166-1 alpha-2 or alpha-3 code, optionally followed by an ISO 3166-2 subdivision separated by a hyphen.", + "description": "Country of registration as an ISO 3166-1 alpha-3, or an ISO 3166-1 alpha-2 code optionally followed by an ISO 3166-2 subdivision separated by a hyphen.", "anyOf": [ { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/ISO_3166/$defs/alpha-3" }, { "$ref": "cyclonedx-common-2.0.schema.json#/$defs/ISO_3166/$defs/alpha-2" },