@cyclonedx/cyclonedx-library 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -2
- package/dist.d/enums/componentType.d.ts +5 -1
- package/dist.d/enums/componentType.d.ts.map +1 -1
- package/dist.d/enums/externalReferenceType.d.ts +23 -0
- package/dist.d/enums/externalReferenceType.d.ts.map +1 -1
- package/dist.d/enums/vulnerability/ratingMethod.d.ts +9 -4
- package/dist.d/enums/vulnerability/ratingMethod.d.ts.map +1 -1
- package/dist.d/models/bomLink.d.ts +66 -0
- package/dist.d/models/bomLink.d.ts.map +1 -0
- package/dist.d/models/bomRef.d.ts +4 -2
- package/dist.d/models/bomRef.d.ts.map +1 -1
- package/dist.d/models/externalReference.d.ts +2 -1
- package/dist.d/models/externalReference.d.ts.map +1 -1
- package/dist.d/models/index.d.ts +1 -0
- package/dist.d/models/index.d.ts.map +1 -1
- package/dist.d/models/vulnerability/affect.d.ts +3 -2
- package/dist.d/models/vulnerability/affect.d.ts.map +1 -1
- package/dist.d/serialize/json/normalize.d.ts.map +1 -1
- package/dist.d/serialize/json/types.d.ts +9 -5
- package/dist.d/serialize/json/types.d.ts.map +1 -1
- package/dist.d/serialize/xml/normalize.d.ts.map +1 -1
- package/dist.d/spec.d.ts +9 -5
- package/dist.d/spec.d.ts.map +1 -1
- package/dist.d/types/integer.d.ts +2 -2
- package/dist.node/enums/componentType.js +4 -0
- package/dist.node/enums/componentType.js.map +1 -1
- package/dist.node/enums/externalReferenceType.js +23 -0
- package/dist.node/enums/externalReferenceType.js.map +1 -1
- package/dist.node/enums/vulnerability/ratingMethod.js +2 -0
- package/dist.node/enums/vulnerability/ratingMethod.js.map +1 -1
- package/dist.node/models/bomLink.js +80 -0
- package/dist.node/models/bomLink.js.map +1 -0
- package/dist.node/models/bomRef.js.map +1 -1
- package/dist.node/models/externalReference.js.map +1 -1
- package/dist.node/models/index.js +1 -0
- package/dist.node/models/index.js.map +1 -1
- package/dist.node/models/vulnerability/affect.js.map +1 -1
- package/dist.node/resources.node.js +15 -12
- package/dist.node/resources.node.js.map +1 -1
- package/dist.node/serialize/json/normalize.js +6 -3
- package/dist.node/serialize/json/normalize.js.map +1 -1
- package/dist.node/serialize/xml/normalize.js +8 -3
- package/dist.node/serialize/xml/normalize.js.map +1 -1
- package/dist.node/spec.js +104 -13
- package/dist.node/spec.js.map +1 -1
- package/dist.web/lib.dev.js +238 -20
- package/dist.web/lib.dev.js.map +1 -1
- package/dist.web/lib.js +1 -1
- package/dist.web/lib.js.map +1 -1
- package/package.json +4 -4
- package/res/schema/README.md +14 -11
- package/res/schema/bom-1.1.SNAPSHOT.xsd +8 -1
- package/res/schema/bom-1.2-strict.SNAPSHOT.schema.json +8 -5
- package/res/schema/bom-1.2.SNAPSHOT.schema.json +8 -4
- package/res/schema/bom-1.2.SNAPSHOT.xsd +10 -3
- package/res/schema/bom-1.3-strict.SNAPSHOT.schema.json +8 -4
- package/res/schema/bom-1.3.SNAPSHOT.schema.json +8 -4
- package/res/schema/bom-1.3.SNAPSHOT.xsd +14 -5
- package/res/schema/bom-1.4.SNAPSHOT.schema.json +2 -2
- package/res/schema/bom-1.4.SNAPSHOT.xsd +4 -2
- package/res/schema/bom-1.5.SNAPSHOT.schema.json +3799 -0
- package/res/schema/bom-1.5.SNAPSHOT.xsd +5464 -0
- package/res/schema/jsf-0.82.SNAPSHOT.schema.json +0 -4
- package/res/schema/spdx.SNAPSHOT.schema.json +569 -486
- package/res/schema/spdx.SNAPSHOT.xsd +1468 -1053
- package/src/enums/componentType.ts +4 -0
- package/src/enums/externalReferenceType.ts +23 -0
- package/src/enums/vulnerability/ratingMethod.ts +9 -4
- package/src/models/bomLink.ts +111 -0
- package/src/models/bomRef.ts +5 -2
- package/src/models/externalReference.ts +2 -1
- package/src/models/index.ts +1 -0
- package/src/models/vulnerability/affect.ts +3 -2
- package/src/resources.node.ts +20 -17
- package/src/serialize/json/normalize.ts +6 -3
- package/src/serialize/json/types.ts +10 -5
- package/src/serialize/xml/normalize.ts +8 -3
- package/src/spec.ts +121 -7
- package/src/types/integer.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyclonedx/cyclonedx-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Core functionality of CycloneDX for JavaScript (Node.js or WebBrowser).",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/mocha": "^10.0.0",
|
|
81
81
|
"@types/node": "ts5.1",
|
|
82
82
|
"@types/spdx-expression-parse": "^3.0.2",
|
|
83
|
-
"c8": "^
|
|
83
|
+
"c8": "^8.0.0",
|
|
84
84
|
"deepmerge": "^4.2.2",
|
|
85
85
|
"eslint": "^8.23.0",
|
|
86
86
|
"eslint-config-standard-with-typescript": "^35.0.0",
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"ts-loader": "9.4.3",
|
|
94
94
|
"typedoc": "^0.24.4",
|
|
95
95
|
"typedoc-plugin-missing-exports": "^2.0.0",
|
|
96
|
-
"typescript": "5.1.
|
|
97
|
-
"webpack": "5.
|
|
96
|
+
"typescript": "5.1.5",
|
|
97
|
+
"webpack": "5.88.0",
|
|
98
98
|
"webpack-cli": "5.1.4"
|
|
99
99
|
},
|
|
100
100
|
"browser": "./dist.web/lib.js",
|
package/res/schema/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
# Resources: Schema files
|
|
2
2
|
|
|
3
|
-
some schema for offline use as download via [script](../../tools/schema-downloader/download.
|
|
4
|
-
original sources: <https://github.com/CycloneDX/specification/
|
|
3
|
+
some schema for offline use as download via [script](../../tools/schema-downloader/download.js).
|
|
4
|
+
original sources: <https://github.com/CycloneDX/specification/blob/1.5>
|
|
5
5
|
|
|
6
6
|
Currently using version
|
|
7
|
-
[
|
|
7
|
+
[c320fc0f0b46873864927d9d5684eea7ba439728](https://github.com/CycloneDX/specification/commit/c320fc0f0b46873864927d9d5684eea7ba439728)
|
|
8
8
|
|
|
9
9
|
| file | note |
|
|
10
10
|
|------|------|
|
|
@@ -13,17 +13,20 @@ Currently using version
|
|
|
13
13
|
| [`bom-1.2.SNAPSHOT.xsd`](bom-1.2.SNAPSHOT.xsd) | applied changes: 1 |
|
|
14
14
|
| [`bom-1.3.SNAPSHOT.xsd`](bom-1.3.SNAPSHOT.xsd) | applied changes: 1 |
|
|
15
15
|
| [`bom-1.4.SNAPSHOT.xsd`](bom-1.4.SNAPSHOT.xsd) | applied changes: 1 |
|
|
16
|
-
| [`bom-1.
|
|
17
|
-
| [`bom-1.
|
|
18
|
-
| [`bom-1.
|
|
19
|
-
| [`bom-1.
|
|
20
|
-
| [`bom-1.
|
|
16
|
+
| [`bom-1.5.SNAPSHOT.xsd`](bom-1.5.SNAPSHOT.xsd) | applied changes: 1 |
|
|
17
|
+
| [`bom-1.2.SNAPSHOT.schema.json`](bom-1.2.SNAPSHOT.schema.json) | applied changes: 2,3,4,5 |
|
|
18
|
+
| [`bom-1.3.SNAPSHOT.schema.json`](bom-1.3.SNAPSHOT.schema.json) | applied changes: 2,3,4,5 |
|
|
19
|
+
| [`bom-1.4.SNAPSHOT.schema.json`](bom-1.4.SNAPSHOT.schema.json) | applied changes: 2,3,4,5 |
|
|
20
|
+
| [`bom-1.5.SNAPSHOT.schema.json`](bom-1.5.SNAPSHOT.schema.json) | applied changes: 2,3,4,5 |
|
|
21
|
+
| [`bom-1.2-strict.SNAPSHOT.schema.json`](bom-1.2-strict.SNAPSHOT.schema.json) | applied changes: 2,3,4,5 |
|
|
22
|
+
| [`bom-1.3-strict.SNAPSHOT.schema.json`](bom-1.3-strict.SNAPSHOT.schema.json) | applied changes: 2,3,4,5 |
|
|
21
23
|
| [`spdx.SNAPSHOT.xsd`](spdx.SNAPSHOT.xsd) | |
|
|
22
24
|
| [`spdx.SNAPSHOT.schema.json`](spdx.SNAPSHOT.schema.json) | |
|
|
23
25
|
| [`jsf-0.82.SNAPSHOT.schema.json`](jsf-0.82.SNAPSHOT.schema.json) | |
|
|
24
26
|
|
|
25
27
|
changes:
|
|
26
|
-
1. `
|
|
28
|
+
1. `https?://cyclonedx.org/schema/spdx` was replaced with `spdx.SNAPSHOT.xsd`
|
|
27
29
|
2. `spdx.schema.json` was replaced with `spdx.SNAPSHOT.schema.json`
|
|
28
|
-
3. `
|
|
29
|
-
4. `
|
|
30
|
+
3. `jsf-0.82.schema.json` was replaced with `jsf-0.82.SNAPSHOT.schema.json`
|
|
31
|
+
4. `properties.$schema.enum` was fixed to match `$id`
|
|
32
|
+
5. `required.version` removed, as it is actually optional with default value
|
|
@@ -38,6 +38,13 @@ limitations under the License.
|
|
|
38
38
|
</xs:documentation>
|
|
39
39
|
</xs:annotation>
|
|
40
40
|
|
|
41
|
+
<xs:simpleType name="refType">
|
|
42
|
+
<xs:annotation>
|
|
43
|
+
<xs:documentation>Identifier-DataType for interlinked elements.</xs:documentation>
|
|
44
|
+
</xs:annotation>
|
|
45
|
+
<xs:restriction base="xs:string" />
|
|
46
|
+
</xs:simpleType>
|
|
47
|
+
|
|
41
48
|
<xs:complexType name="componentsType">
|
|
42
49
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
43
50
|
<xs:element name="component" type="bom:component"/>
|
|
@@ -201,7 +208,7 @@ limitations under the License.
|
|
|
201
208
|
</xs:documentation>
|
|
202
209
|
</xs:annotation>
|
|
203
210
|
</xs:attribute>
|
|
204
|
-
<xs:attribute name="bom-ref" type="
|
|
211
|
+
<xs:attribute name="bom-ref" type="bom:refType">
|
|
205
212
|
<xs:annotation>
|
|
206
213
|
<xs:documentation>
|
|
207
214
|
An optional identifier which can be used to reference the component elsewhere in the BOM.
|
|
@@ -86,6 +86,10 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"definitions": {
|
|
89
|
+
"refType": {
|
|
90
|
+
"$comment": "Identifier-DataType for interlinked elements.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
89
93
|
"metadata": {
|
|
90
94
|
"type": "object",
|
|
91
95
|
"title": "BOM Metadata Object",
|
|
@@ -260,7 +264,7 @@
|
|
|
260
264
|
"pattern": "^[-+a-z0-9.]+/[-+a-z0-9.]+$"
|
|
261
265
|
},
|
|
262
266
|
"bom-ref": {
|
|
263
|
-
"
|
|
267
|
+
"$ref": "#/definitions/refType",
|
|
264
268
|
"title": "BOM Reference",
|
|
265
269
|
"description": "An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref should be unique.",
|
|
266
270
|
"default": "",
|
|
@@ -858,8 +862,7 @@
|
|
|
858
862
|
"additionalProperties": false,
|
|
859
863
|
"properties": {
|
|
860
864
|
"ref": {
|
|
861
|
-
"
|
|
862
|
-
"format": "string",
|
|
865
|
+
"$ref": "#/definitions/refType",
|
|
863
866
|
"title": "Reference",
|
|
864
867
|
"description": "References a component by the components bom-ref attribute"
|
|
865
868
|
},
|
|
@@ -867,7 +870,7 @@
|
|
|
867
870
|
"type": "array",
|
|
868
871
|
"uniqueItems": true,
|
|
869
872
|
"items": {
|
|
870
|
-
"
|
|
873
|
+
"$ref": "#/definitions/refType"
|
|
871
874
|
},
|
|
872
875
|
"title": "Depends On",
|
|
873
876
|
"description": "The bom-ref identifiers of the components that are dependencies of this dependency object."
|
|
@@ -883,7 +886,7 @@
|
|
|
883
886
|
"additionalProperties": false,
|
|
884
887
|
"properties": {
|
|
885
888
|
"bom-ref": {
|
|
886
|
-
"
|
|
889
|
+
"$ref": "#/definitions/refType",
|
|
887
890
|
"title": "BOM Reference",
|
|
888
891
|
"description": "An optional identifier which can be used to reference the service elsewhere in the BOM. Every bom-ref should be unique.",
|
|
889
892
|
"default": "",
|
|
@@ -79,6 +79,10 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"definitions": {
|
|
82
|
+
"refType": {
|
|
83
|
+
"$comment": "Identifier-DataType for interlinked elements.",
|
|
84
|
+
"type": "string"
|
|
85
|
+
},
|
|
82
86
|
"metadata": {
|
|
83
87
|
"type": "object",
|
|
84
88
|
"title": "BOM Metadata Object",
|
|
@@ -248,7 +252,7 @@
|
|
|
248
252
|
"pattern": "^[-+a-z0-9.]+/[-+a-z0-9.]+$"
|
|
249
253
|
},
|
|
250
254
|
"bom-ref": {
|
|
251
|
-
"
|
|
255
|
+
"$ref": "#/definitions/refType",
|
|
252
256
|
"title": "BOM Reference",
|
|
253
257
|
"description": "An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref should be unique.",
|
|
254
258
|
"default": "",
|
|
@@ -832,7 +836,7 @@
|
|
|
832
836
|
],
|
|
833
837
|
"properties": {
|
|
834
838
|
"ref": {
|
|
835
|
-
"
|
|
839
|
+
"$ref": "#/definitions/refType",
|
|
836
840
|
"format": "string",
|
|
837
841
|
"title": "Reference",
|
|
838
842
|
"description": "References a component by the components bom-ref attribute"
|
|
@@ -841,7 +845,7 @@
|
|
|
841
845
|
"type": "array",
|
|
842
846
|
"uniqueItems": true,
|
|
843
847
|
"items": {
|
|
844
|
-
"
|
|
848
|
+
"$ref": "#/definitions/refType"
|
|
845
849
|
},
|
|
846
850
|
"title": "Depends On",
|
|
847
851
|
"description": "The bom-ref identifiers of the components that are dependencies of this dependency object."
|
|
@@ -856,7 +860,7 @@
|
|
|
856
860
|
],
|
|
857
861
|
"properties": {
|
|
858
862
|
"bom-ref": {
|
|
859
|
-
"
|
|
863
|
+
"$ref": "#/definitions/refType",
|
|
860
864
|
"title": "BOM Reference",
|
|
861
865
|
"description": "An optional identifier which can be used to reference the service elsewhere in the BOM. Every bom-ref should be unique.",
|
|
862
866
|
"default": "",
|
|
@@ -38,6 +38,13 @@ limitations under the License.
|
|
|
38
38
|
</xs:documentation>
|
|
39
39
|
</xs:annotation>
|
|
40
40
|
|
|
41
|
+
<xs:simpleType name="refType">
|
|
42
|
+
<xs:annotation>
|
|
43
|
+
<xs:documentation>Identifier-DataType for interlinked elements.</xs:documentation>
|
|
44
|
+
</xs:annotation>
|
|
45
|
+
<xs:restriction base="xs:string" />
|
|
46
|
+
</xs:simpleType>
|
|
47
|
+
|
|
41
48
|
<xs:complexType name="metadata">
|
|
42
49
|
<xs:sequence minOccurs="0" maxOccurs="1">
|
|
43
50
|
<xs:element name="timestamp" type="xs:dateTime" minOccurs="0">
|
|
@@ -395,7 +402,7 @@ limitations under the License.
|
|
|
395
402
|
</xs:documentation>
|
|
396
403
|
</xs:annotation>
|
|
397
404
|
</xs:attribute>
|
|
398
|
-
<xs:attribute name="bom-ref" type="
|
|
405
|
+
<xs:attribute name="bom-ref" type="bom:refType">
|
|
399
406
|
<xs:annotation>
|
|
400
407
|
<xs:documentation>
|
|
401
408
|
An optional identifier which can be used to reference the component elsewhere in the BOM.
|
|
@@ -1144,7 +1151,7 @@ limitations under the License.
|
|
|
1144
1151
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
1145
1152
|
<xs:element name="dependency" type="bom:dependencyType"/>
|
|
1146
1153
|
</xs:sequence>
|
|
1147
|
-
<xs:attribute name="ref" type="
|
|
1154
|
+
<xs:attribute name="ref" type="bom:refType" use="required">
|
|
1148
1155
|
<xs:annotation>
|
|
1149
1156
|
<xs:documentation>References a component or service by the its bom-ref attribute</xs:documentation>
|
|
1150
1157
|
</xs:annotation>
|
|
@@ -1302,7 +1309,7 @@ limitations under the License.
|
|
|
1302
1309
|
</xs:annotation>
|
|
1303
1310
|
</xs:any>
|
|
1304
1311
|
</xs:sequence>
|
|
1305
|
-
<xs:attribute name="bom-ref" type="
|
|
1312
|
+
<xs:attribute name="bom-ref" type="bom:refType">
|
|
1306
1313
|
<xs:annotation>
|
|
1307
1314
|
<xs:documentation>
|
|
1308
1315
|
An optional identifier which can be used to reference the service elsewhere in the BOM.
|
|
@@ -93,6 +93,10 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
"definitions": {
|
|
96
|
+
"refType": {
|
|
97
|
+
"$comment": "Identifier-DataType for interlinked elements.",
|
|
98
|
+
"type": "string"
|
|
99
|
+
},
|
|
96
100
|
"metadata": {
|
|
97
101
|
"type": "object",
|
|
98
102
|
"title": "BOM Metadata Object",
|
|
@@ -266,7 +270,7 @@
|
|
|
266
270
|
"pattern": "^[-+a-z0-9.]+/[-+a-z0-9.]+$"
|
|
267
271
|
},
|
|
268
272
|
"bom-ref": {
|
|
269
|
-
"
|
|
273
|
+
"$ref": "#/definitions/refType",
|
|
270
274
|
"title": "BOM Reference",
|
|
271
275
|
"description": "An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref should be unique."
|
|
272
276
|
},
|
|
@@ -851,7 +855,7 @@
|
|
|
851
855
|
"additionalProperties": false,
|
|
852
856
|
"properties": {
|
|
853
857
|
"ref": {
|
|
854
|
-
"
|
|
858
|
+
"$ref": "#/definitions/refType",
|
|
855
859
|
"title": "Reference",
|
|
856
860
|
"description": "References a component by the components bom-ref attribute"
|
|
857
861
|
},
|
|
@@ -859,7 +863,7 @@
|
|
|
859
863
|
"type": "array",
|
|
860
864
|
"uniqueItems": true,
|
|
861
865
|
"items": {
|
|
862
|
-
"
|
|
866
|
+
"$ref": "#/definitions/refType"
|
|
863
867
|
},
|
|
864
868
|
"title": "Depends On",
|
|
865
869
|
"description": "The bom-ref identifiers of the components that are dependencies of this dependency object."
|
|
@@ -875,7 +879,7 @@
|
|
|
875
879
|
"additionalProperties": false,
|
|
876
880
|
"properties": {
|
|
877
881
|
"bom-ref": {
|
|
878
|
-
"
|
|
882
|
+
"$ref": "#/definitions/refType",
|
|
879
883
|
"title": "BOM Reference",
|
|
880
884
|
"description": "An optional identifier which can be used to reference the service elsewhere in the BOM. Every bom-ref should be unique."
|
|
881
885
|
},
|
|
@@ -86,6 +86,10 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"definitions": {
|
|
89
|
+
"refType": {
|
|
90
|
+
"$comment": "Identifier-DataType for interlinked elements.",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
89
93
|
"metadata": {
|
|
90
94
|
"type": "object",
|
|
91
95
|
"title": "BOM Metadata Object",
|
|
@@ -254,7 +258,7 @@
|
|
|
254
258
|
"pattern": "^[-+a-z0-9.]+/[-+a-z0-9.]+$"
|
|
255
259
|
},
|
|
256
260
|
"bom-ref": {
|
|
257
|
-
"
|
|
261
|
+
"$ref": "#/definitions/refType",
|
|
258
262
|
"title": "BOM Reference",
|
|
259
263
|
"description": "An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref should be unique."
|
|
260
264
|
},
|
|
@@ -825,7 +829,7 @@
|
|
|
825
829
|
],
|
|
826
830
|
"properties": {
|
|
827
831
|
"ref": {
|
|
828
|
-
"
|
|
832
|
+
"$ref": "#/definitions/refType",
|
|
829
833
|
"title": "Reference",
|
|
830
834
|
"description": "References a component by the components bom-ref attribute"
|
|
831
835
|
},
|
|
@@ -833,7 +837,7 @@
|
|
|
833
837
|
"type": "array",
|
|
834
838
|
"uniqueItems": true,
|
|
835
839
|
"items": {
|
|
836
|
-
"
|
|
840
|
+
"$ref": "#/definitions/refType"
|
|
837
841
|
},
|
|
838
842
|
"title": "Depends On",
|
|
839
843
|
"description": "The bom-ref identifiers of the components that are dependencies of this dependency object."
|
|
@@ -848,7 +852,7 @@
|
|
|
848
852
|
],
|
|
849
853
|
"properties": {
|
|
850
854
|
"bom-ref": {
|
|
851
|
-
"
|
|
855
|
+
"$ref": "#/definitions/refType",
|
|
852
856
|
"title": "BOM Reference",
|
|
853
857
|
"description": "An optional identifier which can be used to reference the service elsewhere in the BOM. Every bom-ref should be unique."
|
|
854
858
|
},
|
|
@@ -35,6 +35,13 @@ limitations under the License.
|
|
|
35
35
|
</xs:documentation>
|
|
36
36
|
</xs:annotation>
|
|
37
37
|
|
|
38
|
+
<xs:simpleType name="refType">
|
|
39
|
+
<xs:annotation>
|
|
40
|
+
<xs:documentation>Identifier-DataType for interlinked elements.</xs:documentation>
|
|
41
|
+
</xs:annotation>
|
|
42
|
+
<xs:restriction base="xs:string" />
|
|
43
|
+
</xs:simpleType>
|
|
44
|
+
|
|
38
45
|
<xs:complexType name="metadata">
|
|
39
46
|
<xs:sequence minOccurs="0" maxOccurs="1">
|
|
40
47
|
<xs:element name="timestamp" type="xs:dateTime" minOccurs="0">
|
|
@@ -400,7 +407,7 @@ limitations under the License.
|
|
|
400
407
|
</xs:documentation>
|
|
401
408
|
</xs:annotation>
|
|
402
409
|
</xs:attribute>
|
|
403
|
-
<xs:attribute name="bom-ref" type="
|
|
410
|
+
<xs:attribute name="bom-ref" type="bom:refType">
|
|
404
411
|
<xs:annotation>
|
|
405
412
|
<xs:documentation>
|
|
406
413
|
An optional identifier which can be used to reference the component elsewhere in the BOM.
|
|
@@ -555,7 +562,9 @@ limitations under the License.
|
|
|
555
562
|
<xs:documentation>A hardware device such as a processor, or chip-set. A hardware device
|
|
556
563
|
containing firmware should include a component for the physical hardware itself, and another
|
|
557
564
|
component of type 'firmware' or 'operating-system' (whichever is relevant), describing
|
|
558
|
-
information about the software running on the device
|
|
565
|
+
information about the software running on the device.
|
|
566
|
+
See also the list of known device properties: https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md
|
|
567
|
+
</xs:documentation>
|
|
559
568
|
</xs:annotation>
|
|
560
569
|
</xs:enumeration>
|
|
561
570
|
<xs:enumeration value="firmware">
|
|
@@ -1156,7 +1165,7 @@ limitations under the License.
|
|
|
1156
1165
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
1157
1166
|
<xs:element name="dependency" type="bom:dependencyType"/>
|
|
1158
1167
|
</xs:sequence>
|
|
1159
|
-
<xs:attribute name="ref" type="
|
|
1168
|
+
<xs:attribute name="ref" type="bom:refType" use="required">
|
|
1160
1169
|
<xs:annotation>
|
|
1161
1170
|
<xs:documentation>References a component or service by the its bom-ref attribute</xs:documentation>
|
|
1162
1171
|
</xs:annotation>
|
|
@@ -1309,7 +1318,7 @@ limitations under the License.
|
|
|
1309
1318
|
</xs:annotation>
|
|
1310
1319
|
</xs:any>
|
|
1311
1320
|
</xs:sequence>
|
|
1312
|
-
<xs:attribute name="bom-ref" type="
|
|
1321
|
+
<xs:attribute name="bom-ref" type="bom:refType">
|
|
1313
1322
|
<xs:annotation>
|
|
1314
1323
|
<xs:documentation>
|
|
1315
1324
|
An optional identifier which can be used to reference the service elsewhere in the BOM.
|
|
@@ -1502,7 +1511,7 @@ limitations under the License.
|
|
|
1502
1511
|
</xs:simpleType>
|
|
1503
1512
|
|
|
1504
1513
|
<xs:complexType name="bomReferenceType">
|
|
1505
|
-
<xs:attribute name="ref" type="
|
|
1514
|
+
<xs:attribute name="ref" type="bom:refType" use="required">
|
|
1506
1515
|
<xs:annotation>
|
|
1507
1516
|
<xs:documentation>References a component or service by the its bom-ref attribute</xs:documentation>
|
|
1508
1517
|
</xs:annotation>
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
"file"
|
|
282
282
|
],
|
|
283
283
|
"title": "Component Type",
|
|
284
|
-
"description": "Specifies the type of component. For software components, classify as application if no more specific appropriate classification is available or cannot be determined for the component. Types include:\n\n* __application__ = A software application. Refer to [https://en.wikipedia.org/wiki/Application_software](https://en.wikipedia.org/wiki/Application_software) for information about applications.\n* __framework__ = A software framework. Refer to [https://en.wikipedia.org/wiki/Software_framework](https://en.wikipedia.org/wiki/Software_framework) for information on how frameworks vary slightly from libraries.\n* __library__ = A software library. Refer to [https://en.wikipedia.org/wiki/Library_(computing)](https://en.wikipedia.org/wiki/Library_(computing))\n for information about libraries. All third-party and open source reusable components will likely be a library. If the library also has key features of a framework, then it should be classified as a framework. If not, or is unknown, then specifying library is RECOMMENDED.\n* __container__ = A packaging and/or runtime format, not specific to any particular technology, which isolates software inside the container from software outside of a container through virtualization technology. Refer to [https://en.wikipedia.org/wiki/OS-level_virtualization](https://en.wikipedia.org/wiki/OS-level_virtualization)\n* __operating-system__ = A software operating system without regard to deployment model (i.e. installed on physical hardware, virtual machine, image, etc) Refer to [https://en.wikipedia.org/wiki/Operating_system](https://en.wikipedia.org/wiki/Operating_system)\n* __device__ = A hardware device such as a processor, or chip-set. A hardware device containing firmware SHOULD include a component for the physical hardware itself, and another component of type 'firmware' or 'operating-system' (whichever is relevant), describing information about the software running on the device.\n* __firmware__ = A special type of software that provides low-level control over a devices hardware. Refer to [https://en.wikipedia.org/wiki/Firmware](https://en.wikipedia.org/wiki/Firmware)\n* __file__ = A computer file. Refer to [https://en.wikipedia.org/wiki/Computer_file](https://en.wikipedia.org/wiki/Computer_file) for information about files.",
|
|
284
|
+
"description": "Specifies the type of component. For software components, classify as application if no more specific appropriate classification is available or cannot be determined for the component. Types include:\n\n* __application__ = A software application. Refer to [https://en.wikipedia.org/wiki/Application_software](https://en.wikipedia.org/wiki/Application_software) for information about applications.\n* __framework__ = A software framework. Refer to [https://en.wikipedia.org/wiki/Software_framework](https://en.wikipedia.org/wiki/Software_framework) for information on how frameworks vary slightly from libraries.\n* __library__ = A software library. Refer to [https://en.wikipedia.org/wiki/Library_(computing)](https://en.wikipedia.org/wiki/Library_(computing))\n for information about libraries. All third-party and open source reusable components will likely be a library. If the library also has key features of a framework, then it should be classified as a framework. If not, or is unknown, then specifying library is RECOMMENDED.\n* __container__ = A packaging and/or runtime format, not specific to any particular technology, which isolates software inside the container from software outside of a container through virtualization technology. Refer to [https://en.wikipedia.org/wiki/OS-level_virtualization](https://en.wikipedia.org/wiki/OS-level_virtualization)\n* __operating-system__ = A software operating system without regard to deployment model (i.e. installed on physical hardware, virtual machine, image, etc) Refer to [https://en.wikipedia.org/wiki/Operating_system](https://en.wikipedia.org/wiki/Operating_system)\n* __device__ = A hardware device such as a processor, or chip-set. A hardware device containing firmware SHOULD include a component for the physical hardware itself, and another component of type 'firmware' or 'operating-system' (whichever is relevant), describing information about the software running on the device.\n See also the list of [known device properties](https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md).\n* __firmware__ = A special type of software that provides low-level control over a devices hardware. Refer to [https://en.wikipedia.org/wiki/Firmware](https://en.wikipedia.org/wiki/Firmware)\n* __file__ = A computer file. Refer to [https://en.wikipedia.org/wiki/Computer_file](https://en.wikipedia.org/wiki/Computer_file) for information about files.",
|
|
285
285
|
"examples": ["library"]
|
|
286
286
|
},
|
|
287
287
|
"mime-type": {
|
|
@@ -1640,7 +1640,7 @@
|
|
|
1640
1640
|
},
|
|
1641
1641
|
"range": {
|
|
1642
1642
|
"description": "A version range specified in Package URL Version Range syntax (vers) which is defined at https://github.com/package-url/purl-spec/VERSION-RANGE-SPEC.rst",
|
|
1643
|
-
"$ref": "#/definitions/
|
|
1643
|
+
"$ref": "#/definitions/range"
|
|
1644
1644
|
},
|
|
1645
1645
|
"status": {
|
|
1646
1646
|
"description": "The vulnerability status for the version or range of versions.",
|
|
@@ -577,7 +577,9 @@ limitations under the License.
|
|
|
577
577
|
<xs:documentation>A hardware device such as a processor, or chip-set. A hardware device
|
|
578
578
|
containing firmware SHOULD include a component for the physical hardware itself, and another
|
|
579
579
|
component of type 'firmware' or 'operating-system' (whichever is relevant), describing
|
|
580
|
-
information about the software running on the device
|
|
580
|
+
information about the software running on the device.
|
|
581
|
+
See also the list of known device properties: https://github.com/CycloneDX/cyclonedx-property-taxonomy/blob/main/cdx/device.md
|
|
582
|
+
</xs:documentation>
|
|
581
583
|
</xs:annotation>
|
|
582
584
|
</xs:enumeration>
|
|
583
585
|
<xs:enumeration value="firmware">
|
|
@@ -1969,7 +1971,7 @@ limitations under the License.
|
|
|
1969
1971
|
<xs:element name="target">
|
|
1970
1972
|
<xs:complexType>
|
|
1971
1973
|
<xs:sequence minOccurs="0" maxOccurs="1">
|
|
1972
|
-
<xs:element name="ref" minOccurs="1" maxOccurs="1">
|
|
1974
|
+
<xs:element name="ref" type="bom:refType" minOccurs="1" maxOccurs="1">
|
|
1973
1975
|
<xs:annotation>
|
|
1974
1976
|
<xs:documentation>References a component or service by the objects bom-ref.</xs:documentation>
|
|
1975
1977
|
</xs:annotation>
|