Skip to content

Commit 289e81a

Browse files
committed
fetch schema 1.6 JSON
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 0449de2 commit 289e81a

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

cyclonedx/schema/_res/bom-1.6.SNAPSHOT.schema.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"items": {"$ref": "#/definitions/dependency"},
7373
"uniqueItems": true,
7474
"title": "Dependencies",
75-
"description": "Provides the ability to document dependency relationships."
75+
"description": "Provides the ability to document dependency relationships including provided & implemented components."
7676
},
7777
"compositions": {
7878
"type": "array",
@@ -966,19 +966,19 @@
966966
"cpe": {
967967
"type": "string",
968968
"title": "Common Platform Enumeration (CPE)",
969-
"description": "Specifies a well-formed CPE name that conforms to the CPE 2.2 or 2.3 specification. See [https://nvd.nist.gov/products/cpe](https://nvd.nist.gov/products/cpe)",
969+
"description": "Asserts the identity of the component using CPE. The CPE must conform to the CPE 2.2 or 2.3 specification. See [https://nvd.nist.gov/products/cpe](https://nvd.nist.gov/products/cpe). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
970970
"examples": ["cpe:2.3:a:acme:component_framework:-:*:*:*:*:*:*:*"]
971971
},
972972
"purl": {
973973
"type": "string",
974974
"title": "Package URL (purl)",
975-
"description": "Specifies the package-url (purl). The purl, if specified, MUST be valid and conform to the specification defined at: [https://github.com/package-url/purl-spec](https://github.com/package-url/purl-spec)",
975+
"description": "Asserts the identity of the component using package-url (purl). The purl, if specified, MUST be valid and conform to the specification defined at: [https://github.com/package-url/purl-spec](https://github.com/package-url/purl-spec). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
976976
"examples": ["pkg:maven/com.acme/[email protected]?packaging=jar"]
977977
},
978978
"omniborId": {
979979
"type": "array",
980980
"title": "OmniBOR Artifact Identifier (gitoid)",
981-
"description": "Specifies the OmniBOR Artifact ID. The OmniBOR, if specified, MUST be valid and conform to the specification defined at: [https://www.iana.org/assignments/uri-schemes/prov/gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid)",
981+
"description": "Asserts the identity of the component using the OmniBOR Artifact ID. The OmniBOR, if specified, MUST be valid and conform to the specification defined at: [https://www.iana.org/assignments/uri-schemes/prov/gitoid](https://www.iana.org/assignments/uri-schemes/prov/gitoid). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
982982
"items": { "type": "string" },
983983
"examples": [
984984
"gitoid:blob:sha1:a94a8fe5ccb19ba61c4c0873d391e987982fbbd3",
@@ -988,14 +988,14 @@
988988
"swhid": {
989989
"type": "array",
990990
"title": "SoftWare Heritage Identifier",
991-
"description": "Specifies the Software Heritage persistent identifier (SWHID). The SWHID, if specified, MUST be valid and conform to the specification defined at: [https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html](https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html)",
991+
"description": "Asserts the identity of the component using the Software Heritage persistent identifier (SWHID). The SWHID, if specified, MUST be valid and conform to the specification defined at: [https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html](https://docs.softwareheritage.org/devel/swh-model/persistent-identifiers.html). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity.",
992992
"items": { "type": "string" },
993993
"examples": ["swh:1:cnt:94a9ed024d3859793618152ea559a168bbcbb5e2"]
994994
},
995995
"swid": {
996996
"$ref": "#/definitions/swid",
997997
"title": "SWID Tag",
998-
"description": "Specifies metadata and content for [ISO-IEC 19770-2 Software Identification (SWID) Tags](https://www.iso.org/standard/65666.html)."
998+
"description": "Asserts the identity of the component using [ISO-IEC 19770-2 Software Identification (SWID) Tags](https://www.iso.org/standard/65666.html). Refer to `@.evidence.identity` to optionally provide evidence that substantiates the assertion of the component's identity."
999999
},
10001000
"modified": {
10011001
"type": "boolean",
@@ -1245,7 +1245,7 @@
12451245
"description": "An optional identifier which can be used to reference the license elsewhere in the BOM. Every bom-ref MUST be unique within the BOM.\nValue SHOULD not start with the BOM-Link intro 'urn:cdx:' to avoid conflicts with BOM-Links."
12461246
},
12471247
"id": {
1248-
"$ref": "spdx.schema.json",
1248+
"$ref": "spdx.SNAPSHOT.schema.json",
12491249
"title": "License ID (SPDX)",
12501250
"description": "A valid SPDX license ID",
12511251
"examples": ["Apache-2.0"]
@@ -1828,7 +1828,7 @@
18281828
"dependency": {
18291829
"type": "object",
18301830
"title": "Dependency",
1831-
"description": "Defines the direct dependencies of a component or service. Components or services that do not have their own dependencies MUST be declared as empty elements within the graph. Components or services that are not represented in the dependency graph MAY have unknown dependencies. It is RECOMMENDED that implementations assume this to be opaque and not an indicator of an object being dependency-free. It is RECOMMENDED to leverage compositions to indicate unknown dependency graphs.",
1831+
"description": "Defines the direct dependencies of a component, service, or the components provided/implemented by a given component. Components or services that do not have their own dependencies MUST be declared as empty elements within the graph. Components or services that are not represented in the dependency graph MAY have unknown dependencies. It is RECOMMENDED that implementations assume this to be opaque and not an indicator of an object being dependency-free. It is RECOMMENDED to leverage compositions to indicate unknown dependency graphs.",
18321832
"required": [
18331833
"ref"
18341834
],
@@ -5011,7 +5011,7 @@
50115011
}
50125012
},
50135013
"signature": {
5014-
"$ref": "jsf-0.82.schema.json#/definitions/signature",
5014+
"$ref": "jsf-0.82.SNAPSHOT.schema.json#/definitions/signature",
50155015
"title": "Signature",
50165016
"description": "Enveloped signature in [JSON Signature Format (JSF)](https://cyberphone.github.io/doc/security/jsf.html)."
50175017
},
@@ -5020,6 +5020,9 @@
50205020
"title": "Cryptographic Properties",
50215021
"description": "Cryptographic assets have properties that uniquely define them and that make them actionable for further reasoning. As an example, it makes a difference if one knows the algorithm family (e.g. AES) or the specific variant or instantiation (e.g. AES-128-GCM). This is because the security level and the algorithm primitive (authenticated encryption) are only defined by the definition of the algorithm variant. The presence of a weak cryptographic algorithm like SHA1 vs. HMAC-SHA1 also makes a difference.",
50225022
"additionalProperties": false,
5023+
"required": [
5024+
"assetType"
5025+
],
50235026
"properties": {
50245027
"assetType": {
50255028
"type": "string",

tools/schema-downloader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
_DEFAULTS_WITH_PATERN_REPL = r''
6060

6161
BOM_JSON_LAX = {
62-
'versions': ['1.5', '1.4', '1.3', '1.2'],
62+
'versions': ['1.6', '1.5', '1.4', '1.3', '1.2'],
6363
'sourcePattern': f'{SOURCE_ROOT}bom-%s.schema.json',
6464
'targetPattern': join(TARGET_ROOT, 'bom-%s.SNAPSHOT.schema.json'),
6565
'replace': [

0 commit comments

Comments
 (0)