File tree Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Expand file tree Collapse file tree 2 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 117
117
"$comment" : " Identifier-DataType for interlinked elements." ,
118
118
"type" : " string"
119
119
},
120
+ "bomLinkDocumentType" : {
121
+ "title" : " BOM-Link document" ,
122
+ "description" : " Descriptor for another BOM document. See https://cyclonedx.org/capabilities/bomlink/" ,
123
+ "type" : " string" ,
124
+ "pattern" : " ^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*$" ,
125
+ "$comment" : " part of the pattern is based on `bom.serialNumber`'s pattern"
126
+ },
127
+ "bomLinkElementType" : {
128
+ "title" : " BOM-Link element" ,
129
+ "description" : " Descriptor for an element in another BOM document. See https://cyclonedx.org/capabilities/bomlink/" ,
130
+ "type" : " string" ,
131
+ "pattern" : " ^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/[1-9][0-9]*#.+$" ,
132
+ "$comment" : " part of the pattern is based on `bom.serialNumber`'s pattern"
133
+ },
134
+ "bomLink" : {
135
+ "anyOf" : [
136
+ { "$ref" : " #/definitions/bomLinkDocumentType" },
137
+ { "$ref" : " #/definitions/bomLinkElementType" }
138
+ ]
139
+ },
120
140
"metadata" : {
121
141
"type" : " object" ,
122
142
"title" : " BOM Metadata Object" ,
Original file line number Diff line number Diff line change @@ -42,6 +42,36 @@ limitations under the License.
42
42
<xs : restriction base =" xs:string" />
43
43
</xs : simpleType >
44
44
45
+ <xs : simpleType name =" bomLinkDocumentType" >
46
+ <xs : annotation >
47
+ <xs : documentation xml : lang =" en" >
48
+ Descriptor for another BOM document.
49
+ See https://cyclonedx.org/capabilities/bomlink/
50
+ </xs : documentation >
51
+ </xs : annotation >
52
+ <xs : restriction base =" xs:string" >
53
+ <xs : pattern value =" urn:cdx:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\})/[1-9][0-9]*" >
54
+ <!-- part of the pattern is based on `bom.serialNumber`'s pattern -->
55
+ </xs : pattern >
56
+ </xs : restriction >
57
+ </xs : simpleType >
58
+ <xs : simpleType name =" bomLinkElementType" >
59
+ <xs : annotation >
60
+ <xs : documentation xml : lang =" en" >
61
+ Descriptor for an element in another BOM document.
62
+ See https://cyclonedx.org/capabilities/bomlink/
63
+ </xs : documentation >
64
+ </xs : annotation >
65
+ <xs : restriction base =" xs:string" >
66
+ <xs : pattern value =" urn:cdx:([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})|(\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\})/[1-9][0-9]*#.+" >
67
+ <!-- part of the pattern is based on `bom.serialNumber`'s pattern -->
68
+ </xs : pattern >
69
+ </xs : restriction >
70
+ </xs : simpleType >
71
+ <xs : simpleType name =" bomLinkType" >
72
+ <xs : union memberTypes =" bom:bomLinkDocumentType bom:bomLinkElementType" />
73
+ </xs : simpleType >
74
+
45
75
<xs : complexType name =" metadata" >
46
76
<xs : sequence minOccurs =" 0" maxOccurs =" 1" >
47
77
<xs : element name =" timestamp" type =" xs:dateTime" minOccurs =" 0" >
You can’t perform that action at this time.
0 commit comments