Support spec version 1.5
The Spec version 1.5 was released last year, therefore support version 1.5 should be added. Initial work has begun in #584, it covers the first 4 items of the list below, but adding everything in a single PR is easily too much to review.
I checked the specification and collected the list of changes from version 1.4 to version 1.5. My hope is that the work can be split into separate PRs to provide better progress updates.
- [x] top level
versionfield not required anymore, see #584 - [x] add top level
annotations, see #584 - [x] add
trustZonetoService, see #584 - [x] add
lifecyclesfield toMetadata, see #584 - [x] expand Component
typeinMetadatawith new enum values, see #654 - [x] update
toolsinMetadata, changed tooneOf. see #656 - [x] add
bom-reffield (refType) toOrganizationalContact, e.g. inauthorsinMetadata, see #658 658 - [x] add
modelCard&datatoComponent, see #660 - [x]
externalReferencetype changed, see #663 - [x]
licenseChoicechanged, either multiple licenses or a single spdx license expression, see commit in b8679b2da7e69e4d52df0cc21ca258656ef2d1f0 - [x]
toolis marked as deprecated inTools - [x]
organizationalEntityalso got abom-ref, same asorganizationalContact, see #674 - [x]
licenseupdated, see #692- [x] add
bom-reffield - [x] add
licensingobject with nested fields, e.g.licensor,licensee,purchaser,licenseTypes
- [x] add
- [x]
datafield inServicechanged toserviceDatafromdataClassificationwith a few more fields, see #673 - [x]
evidenceinComponentexpands with more fields, e.g.identity, see #676 - [x]
Composition- [x] receives
bom-ref, see #678 - [x] has new field
vulnerabilities, see #678 - [x]
assemblieshas now aoneOfrelation, eitherrefLinkTypeorbomLinkElementType - [x]
aggregateTypehas a few more enum values, see #681
- [x] receives
- [x]
method(scoreMethod) inRatinghas new enum values, see #682 - [x]
vulnerabilityhas new fields, see #683- [x]
workaround - [x]
proofOfConcept - [x]
rejected - [x]
toolschanged - [x]
analysishas new fields,firstIssued,lastUpdated
- [x]
- [ ]
refTypeis split intorefLinkType&bomLinkElementType - [x] top level
formulationincluding whole new set of types! #689 - [x] top level
properties, see #675
formulation was added in https://github.com/CycloneDX/cyclonedx-rust-cargo/pull/689
Is refType the last missing item?
I will check off the item. Basically refLinkType & bomLinkElementType are both String types, where the latter one matches a specific pattern (see bomLinkElementType definition vs refType).
This is implemented in latest git, and we're going to ship a release with this soon. Closing.
If you find something that is missing, please let us know by opening an issue!