|
132 | 132 | "allOf": [{"$ref": "#/definitions/refType"}] |
133 | 133 | }, |
134 | 134 | "bomLinkDocumentType": { |
135 | | - "title": "BOM-Link document", |
| 135 | + "title": "BOM-Link Document", |
136 | 136 | "description": "Descriptor for another BOM document. See https://cyclonedx.org/capabilities/bomlink/", |
137 | 137 | "type": "string", |
138 | 138 | "format": "iri-reference", |
139 | 139 | "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]*$", |
140 | 140 | "$comment": "part of the pattern is based on `bom.serialNumber`'s pattern" |
141 | 141 | }, |
142 | 142 | "bomLinkElementType": { |
143 | | - "title": "BOM-Link element", |
144 | | - "description": "Descriptor for an element in another BOM document. See https://cyclonedx.org/capabilities/bomlink/", |
| 143 | + "title": "BOM-Link Element", |
| 144 | + "description": "Descriptor for an element in a BOM document. See https://cyclonedx.org/capabilities/bomlink/", |
145 | 145 | "type": "string", |
146 | 146 | "format": "iri-reference", |
147 | 147 | "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]*#.+$", |
148 | 148 | "$comment": "part of the pattern is based on `bom.serialNumber`'s pattern" |
149 | 149 | }, |
150 | 150 | "bomLink": { |
151 | 151 | "anyOf": [ |
152 | | - {"$ref": "#/definitions/bomLinkDocumentType"}, |
153 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 152 | + { |
| 153 | + "title": "BOM-Link Document", |
| 154 | + "$ref": "#/definitions/bomLinkDocumentType" |
| 155 | + }, |
| 156 | + { |
| 157 | + "title": "BOM-Link Element", |
| 158 | + "$ref": "#/definitions/bomLinkElementType" |
| 159 | + } |
154 | 160 | ] |
155 | 161 | }, |
156 | 162 | "metadata": { |
|
1136 | 1142 | "url": { |
1137 | 1143 | "anyOf": [ |
1138 | 1144 | { |
| 1145 | + "title": "URL", |
1139 | 1146 | "type": "string", |
1140 | 1147 | "format": "iri-reference" |
1141 | 1148 | }, |
1142 | 1149 | { |
| 1150 | + "title": "BOM-Link", |
1143 | 1151 | "$ref": "#/definitions/bomLink" |
1144 | 1152 | } |
1145 | 1153 | ], |
|
1380 | 1388 | "items": { |
1381 | 1389 | "anyOf": [ |
1382 | 1390 | { |
| 1391 | + "title": "URL", |
1383 | 1392 | "type": "string", |
1384 | 1393 | "format": "iri-reference" |
1385 | 1394 | }, |
1386 | 1395 | { |
| 1396 | + "title": "BOM-Link Element", |
1387 | 1397 | "$ref": "#/definitions/bomLinkElementType" |
1388 | 1398 | } |
1389 | 1399 | ] |
|
1396 | 1406 | "items": { |
1397 | 1407 | "anyOf": [ |
1398 | 1408 | { |
| 1409 | + "title": "URL", |
1399 | 1410 | "type": "string", |
1400 | 1411 | "format": "iri-reference" |
1401 | 1412 | }, |
1402 | 1413 | { |
| 1414 | + "title": "BOM-Link Element", |
1403 | 1415 | "$ref": "#/definitions/bomLinkElementType" |
1404 | 1416 | } |
1405 | 1417 | ] |
|
1511 | 1523 | "uniqueItems": true, |
1512 | 1524 | "items": { |
1513 | 1525 | "anyOf": [ |
1514 | | - {"$ref": "#/definitions/refLinkType"}, |
1515 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 1526 | + { |
| 1527 | + "title": "Ref", |
| 1528 | + "$ref": "#/definitions/refLinkType" |
| 1529 | + }, |
| 1530 | + { |
| 1531 | + "title": "BOM-Link Element", |
| 1532 | + "$ref": "#/definitions/bomLinkElementType" |
| 1533 | + } |
1516 | 1534 | ] |
1517 | 1535 | }, |
1518 | 1536 | "title": "BOM References", |
|
1634 | 1652 | "uniqueItems": true, |
1635 | 1653 | "items": { |
1636 | 1654 | "anyOf": [ |
1637 | | - {"$ref": "#/definitions/refLinkType"}, |
1638 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 1655 | + { |
| 1656 | + "title": "Ref", |
| 1657 | + "$ref": "#/definitions/refLinkType" |
| 1658 | + }, |
| 1659 | + { |
| 1660 | + "title": "BOM-Link Element", |
| 1661 | + "$ref": "#/definitions/bomLinkElementType" |
| 1662 | + } |
1639 | 1663 | ] |
1640 | 1664 | }, |
1641 | 1665 | "title": "BOM references", |
|
2219 | 2243 | "properties": { |
2220 | 2244 | "ref": { |
2221 | 2245 | "anyOf": [ |
2222 | | - {"$ref": "#/definitions/refLinkType"}, |
2223 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 2246 | + { |
| 2247 | + "title": "Ref", |
| 2248 | + "$ref": "#/definitions/refLinkType" |
| 2249 | + }, |
| 2250 | + { |
| 2251 | + "title": "BOM-Link Element", |
| 2252 | + "$ref": "#/definitions/bomLinkElementType" |
| 2253 | + } |
2224 | 2254 | ], |
2225 | 2255 | "title": "Reference", |
2226 | 2256 | "description": "References a component or service by the objects bom-ref" |
|
2315 | 2345 | "uniqueItems": true, |
2316 | 2346 | "items": { |
2317 | 2347 | "anyOf": [ |
2318 | | - {"$ref": "#/definitions/refLinkType"}, |
2319 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 2348 | + { |
| 2349 | + "title": "Ref", |
| 2350 | + "$ref": "#/definitions/refLinkType" |
| 2351 | + }, |
| 2352 | + { |
| 2353 | + "title": "BOM-Link Element", |
| 2354 | + "$ref": "#/definitions/bomLinkElementType" |
| 2355 | + } |
2320 | 2356 | ] |
2321 | 2357 | }, |
2322 | 2358 | "title": "BOM References", |
|
2456 | 2492 | "properties": { |
2457 | 2493 | "ref": { |
2458 | 2494 | "anyOf": [ |
2459 | | - {"$ref": "#/definitions/refLinkType"}, |
2460 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 2495 | + { |
| 2496 | + "title": "Ref", |
| 2497 | + "$ref": "#/definitions/refLinkType" |
| 2498 | + }, |
| 2499 | + { |
| 2500 | + "title": "BOM-Link Element", |
| 2501 | + "$ref": "#/definitions/bomLinkElementType" |
| 2502 | + } |
2461 | 2503 | ], |
2462 | 2504 | "title": "Reference", |
2463 | 2505 | "description": "References a data component by the components bom-ref attribute" |
|
3646 | 3688 | "title": "BOM Reference", |
3647 | 3689 | "description": "References an object by its bom-ref attribute", |
3648 | 3690 | "anyOf": [ |
3649 | | - {"$ref": "#/definitions/refLinkType"}, |
3650 | | - {"$ref": "#/definitions/bomLinkElementType"} |
| 3691 | + { |
| 3692 | + "title": "Ref", |
| 3693 | + "$ref": "#/definitions/refLinkType" |
| 3694 | + }, |
| 3695 | + { |
| 3696 | + "title": "BOM-Link Element", |
| 3697 | + "$ref": "#/definitions/bomLinkElementType" |
| 3698 | + } |
3651 | 3699 | ] |
3652 | 3700 | }, |
3653 | 3701 | "externalReference": { |
|
0 commit comments