|
1117 | 1117 | "additionalProperties": false, |
1118 | 1118 | "properties": { |
1119 | 1119 | "url": { |
1120 | | - "type": "string", |
| 1120 | + "anyOf": [ |
| 1121 | + { |
| 1122 | + "type": "string", |
| 1123 | + "format": "iri-reference" |
| 1124 | + }, |
| 1125 | + { |
| 1126 | + "$ref": "#/definitions/bomLink" |
| 1127 | + } |
| 1128 | + ], |
1121 | 1129 | "title": "URL", |
1122 | | - "description": "The URI (URL or URN) to the external reference. External references are URIs and therefore can accept any URL scheme including https ([RFC-7230](https://www.ietf.org/rfc/rfc7230.txt)), mailto ([RFC-2368](https://www.ietf.org/rfc/rfc2368.txt)), tel ([RFC-3966](https://www.ietf.org/rfc/rfc3966.txt)), and dns ([RFC-4501](https://www.ietf.org/rfc/rfc4501.txt)). External references may also include formally registered URNs such as [CycloneDX BOM-Link](https://cyclonedx.org/capabilities/bomlink/) to reference CycloneDX BOMs or any object within a BOM. BOM-Link transforms applicable external references into relationships that can be expressed in a BOM or across BOMs.", |
1123 | | - "format": "iri-reference" |
| 1130 | + "description": "The URI (URL or URN) to the external reference. External references are URIs and therefore can accept any URL scheme including https ([RFC-7230](https://www.ietf.org/rfc/rfc7230.txt)), mailto ([RFC-2368](https://www.ietf.org/rfc/rfc2368.txt)), tel ([RFC-3966](https://www.ietf.org/rfc/rfc3966.txt)), and dns ([RFC-4501](https://www.ietf.org/rfc/rfc4501.txt)). External references may also include formally registered URNs such as [CycloneDX BOM-Link](https://cyclonedx.org/capabilities/bomlink/) to reference CycloneDX BOMs or any object within a BOM. BOM-Link transforms applicable external references into relationships that can be expressed in a BOM or across BOMs." |
1124 | 1131 | }, |
1125 | 1132 | "comment": { |
1126 | 1133 | "type": "string", |
|
1186 | 1193 | "additionalProperties": false, |
1187 | 1194 | "properties": { |
1188 | 1195 | "ref": { |
1189 | | - "$ref": "#/definitions/refType", |
| 1196 | + "$ref": "#/definitions/refLinkType", |
1190 | 1197 | "title": "Reference", |
1191 | 1198 | "description": "References a component by the components bom-ref attribute" |
1192 | 1199 | }, |
1193 | 1200 | "dependsOn": { |
1194 | 1201 | "type": "array", |
1195 | 1202 | "uniqueItems": true, |
1196 | 1203 | "items": { |
1197 | | - "$ref": "#/definitions/refType" |
| 1204 | + "$ref": "#/definitions/refLinkType" |
1198 | 1205 | }, |
1199 | 1206 | "title": "Depends On", |
1200 | 1207 | "description": "The bom-ref identifiers of the components that are dependencies of this dependency object." |
|
1349 | 1356 | "source": { |
1350 | 1357 | "type": "array", |
1351 | 1358 | "items": { |
1352 | | - "type": "string", |
1353 | | - "format": "iri-reference" |
| 1359 | + "anyOf": [ |
| 1360 | + { |
| 1361 | + "type": "string", |
| 1362 | + "format": "iri-reference" |
| 1363 | + }, |
| 1364 | + { |
| 1365 | + "$ref": "#/definitions/bomLinkElementType" |
| 1366 | + } |
| 1367 | + ] |
1354 | 1368 | }, |
1355 | 1369 | "title": "Source", |
1356 | 1370 | "description": "The URI, URL, or BOM-Link of the components or services the data came in from" |
1357 | 1371 | }, |
1358 | 1372 | "destination": { |
1359 | 1373 | "type": "array", |
1360 | 1374 | "items": { |
1361 | | - "type": "string", |
1362 | | - "format": "iri-reference" |
| 1375 | + "anyOf": [ |
| 1376 | + { |
| 1377 | + "type": "string", |
| 1378 | + "format": "iri-reference" |
| 1379 | + }, |
| 1380 | + { |
| 1381 | + "$ref": "#/definitions/bomLinkElementType" |
| 1382 | + } |
| 1383 | + ] |
1363 | 1384 | }, |
1364 | 1385 | "title": "Destination", |
1365 | 1386 | "description": "The URI, URL, or BOM-Link of the components or services the data is sent to" |
|
1467 | 1488 | "type": "array", |
1468 | 1489 | "uniqueItems": true, |
1469 | 1490 | "items": { |
1470 | | - "$ref": "#/definitions/refType" |
| 1491 | + "anyOf": [ |
| 1492 | + {"$ref": "#/definitions/refLinkType"}, |
| 1493 | + {"$ref": "#/definitions/bomLinkElementType"} |
| 1494 | + ] |
1471 | 1495 | }, |
1472 | 1496 | "title": "BOM References", |
1473 | 1497 | "description": "The object in the BOM identified by its bom-ref. This is often a component or service, but may be any object type supporting bom-refs. Tools used for analysis should already be defined in the BOM, either in the metadata/tools, components, or formulation." |
|
1587 | 1611 | "type": "array", |
1588 | 1612 | "uniqueItems": true, |
1589 | 1613 | "items": { |
1590 | | - "$ref": "#/definitions/refType" |
| 1614 | + "anyOf": [ |
| 1615 | + {"$ref": "#/definitions/refLinkType"}, |
| 1616 | + {"$ref": "#/definitions/bomLinkElementType"} |
| 1617 | + ] |
1591 | 1618 | }, |
1592 | 1619 | "title": "BOM references", |
1593 | 1620 | "description": "The bom-ref identifiers of the components or services being described. Assemblies refer to nested relationships whereby a constituent part may include other constituent parts. References do not cascade to child parts. References are explicit for the specified constituent part only." |
|
2167 | 2194 | "additionalProperties": false, |
2168 | 2195 | "properties": { |
2169 | 2196 | "ref": { |
2170 | | - "$ref": "#/definitions/refType", |
| 2197 | + "anyOf": [ |
| 2198 | + {"$ref": "#/definitions/refLinkType"}, |
| 2199 | + {"$ref": "#/definitions/bomLinkElementType"} |
| 2200 | + ], |
2171 | 2201 | "title": "Reference", |
2172 | 2202 | "description": "References a component or service by the objects bom-ref" |
2173 | 2203 | }, |
|
2260 | 2290 | "type": "array", |
2261 | 2291 | "uniqueItems": true, |
2262 | 2292 | "items": { |
2263 | | - "$ref": "#/definitions/refType" |
| 2293 | + "anyOf": [ |
| 2294 | + {"$ref": "#/definitions/refLinkType"}, |
| 2295 | + {"$ref": "#/definitions/bomLinkElementType"} |
| 2296 | + ] |
2264 | 2297 | }, |
2265 | 2298 | "title": "BOM References", |
2266 | 2299 | "description": "The object in the BOM identified by its bom-ref. This is often a component or service, but may be any object type supporting bom-refs." |
|
2398 | 2431 | "additionalProperties": false, |
2399 | 2432 | "properties": { |
2400 | 2433 | "ref": { |
2401 | | - "$ref": "#/definitions/refType", |
| 2434 | + "anyOf": [ |
| 2435 | + {"$ref": "#/definitions/refLinkType"}, |
| 2436 | + {"$ref": "#/definitions/bomLinkElementType"} |
| 2437 | + ], |
2402 | 2438 | "title": "Reference", |
2403 | 2439 | "description": "References a data component by the components bom-ref attribute" |
2404 | 2440 | } |
|
0 commit comments