Commit 0546677
feat: add basic support for CDX 1.5 (#488)
This PR introduces basic support for CDX 1.5.
Ref:
- #404
**Schema:**
- Extended schema-downloader and added specification files,
- Adapted `README` and `SchemaVersion` for 1.5
**Model:**
- Added `SchemaVersion1Dot5`, serializable annotations,
- Extended `ComponentType` and `ExternalReferenceType` enums
**Tests:**
- Generated snapshots for 1.5.
- In some existing tests `bom-ref` changed, since 1.5 is now listed before 1.4
**Chore:**
- Added `newline = '\n'` to schema-downloader and `writeSnapshot` for cross-platform support
----
* feat: add basic support for CDX 1.5
Signed-off-by: Johannes Feichtner <[email protected]>
* docs: note minversions of `HashAlgorithm` cases
Signed-off-by: Jan Kowalleck <[email protected]>
* docs: set ref after schema download
Signed-off-by: Jan Kowalleck <[email protected]>
* refactor: add the newly missing/TODO elements
Signed-off-by: Jan Kowalleck <[email protected]>
* docs: note minversions of `ComponentType` cases
Signed-off-by: Jan Kowalleck <[email protected]>
* refactor: adjust xml child order for CDX1.5
Signed-off-by: Jan Kowalleck <[email protected]>
* refactor: adjust xml child order for CDX1.5
Signed-off-by: Jan Kowalleck <[email protected]>
* docs: update to latest CDX meta
Signed-off-by: Jan Kowalleck <[email protected]>
* refactor: adjust xml child order for CDX1.5
Signed-off-by: Jan Kowalleck <[email protected]>
* feat: new enum cases fr VulnerabilityScoreSource
Signed-off-by: Jan Kowalleck <[email protected]>
* refactor: adjust xml child order for CDX1.5
Signed-off-by: Jan Kowalleck <[email protected]>
* tests: adjust to latest implementation
Signed-off-by: Jan Kowalleck <[email protected]>
* revert deletion by accident
Signed-off-by: Jan Kowalleck <[email protected]>
---------
Signed-off-by: Johannes Feichtner <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>
Co-authored-by: Jan Kowalleck <[email protected]>
Signed-off-by: Jan Kowalleck <[email protected]>1 parent 78957e6 commit 0546677
File tree
66 files changed
+14624
-150
lines changed- cyclonedx
- model
- output
- schema
- _res
- tests
- _data/snapshots
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
66 files changed
+14624
-150
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
116 | 119 | | |
117 | 120 | | |
118 | 121 | | |
| |||
275 | 278 | | |
276 | 279 | | |
277 | 280 | | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
287 | 290 | | |
288 | | - | |
| 291 | + | |
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| |||
395 | 398 | | |
396 | 399 | | |
397 | 400 | | |
| 401 | + | |
398 | 402 | | |
| 403 | + | |
399 | 404 | | |
400 | 405 | | |
401 | 406 | | |
| 407 | + | |
402 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
403 | 412 | | |
| 413 | + | |
404 | 414 | | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
405 | 419 | | |
406 | 420 | | |
| 421 | + | |
407 | 422 | | |
| 423 | + | |
| 424 | + | |
408 | 425 | | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
409 | 429 | | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
410 | 434 | | |
411 | 435 | | |
412 | 436 | | |
| 437 | + | |
413 | 438 | | |
| 439 | + | |
414 | 440 | | |
415 | 441 | | |
416 | 442 | | |
| |||
541 | 567 | | |
542 | 568 | | |
543 | 569 | | |
| 570 | + | |
544 | 571 | | |
545 | 572 | | |
546 | 573 | | |
| |||
974 | 1001 | | |
975 | 1002 | | |
976 | 1003 | | |
977 | | - | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
978 | 1008 | | |
979 | 1009 | | |
980 | 1010 | | |
| |||
1052 | 1082 | | |
1053 | 1083 | | |
1054 | 1084 | | |
| 1085 | + | |
1055 | 1086 | | |
1056 | 1087 | | |
1057 | 1088 | | |
| |||
0 commit comments