Skip to content

Commit 626dbbc

Browse files
committed
json types
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 242730c commit 626dbbc

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

schema/bom-1.5.schema.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,20 +114,28 @@
114114
},
115115
"definitions": {
116116
"refType": {
117-
"$comment": "Identifier-DataType for interlinked elements.",
118-
"type": "string"
117+
"description": "Identifier for referable and therefore interlink-able elements.",
118+
"type": "string",
119+
"minLength": 1,
120+
"$comment": "value SHOULD not start with the BOM-Link intro 'urn:cdx:'"
121+
},
122+
"refLinkType": {
123+
"description": "Descriptor for an element identified by the attribute 'bom-ref' in the same BOM document.\nIn contrast to `bomLinkElementType`.",
124+
"allOf": [{"$ref": "#/definitions/refType"}]
119125
},
120126
"bomLinkDocumentType": {
121127
"title": "BOM-Link document",
122128
"description": "Descriptor for another BOM document. See https://cyclonedx.org/capabilities/bomlink/",
123129
"type": "string",
130+
"format": "iri-reference",
124131
"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]*$",
125132
"$comment": "part of the pattern is based on `bom.serialNumber`'s pattern"
126133
},
127134
"bomLinkElementType": {
128135
"title": "BOM-Link element",
129136
"description": "Descriptor for an element in another BOM document. See https://cyclonedx.org/capabilities/bomlink/",
130137
"type": "string",
138+
"format": "iri-reference",
131139
"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]*#.+$",
132140
"$comment": "part of the pattern is based on `bom.serialNumber`'s pattern"
133141
},

0 commit comments

Comments
 (0)