Conversation
|
Added comments, plus: New required fields not present in examples: product on the product release, component on the component release, belongsTo on the collection, and createdDate on artifacts are absent from the existing examples, so every one of those examples fails the schema it sits under. |
|
I had two questions about modeling that appeared worth clarifying during this tightening process.
Requiring product makes sense if TEA 1.0 intends every release to resolve to a registered Product. The alternative would be to keep it optional for cases where someone publishes release-level artifacts such as an SBOM or VEX before registering a full Product entity, or where a release may never have one. If every release should always belong to a Product, the new requirement looks right and the related docs can be brought into sync. If not, product should probably move back out of required.
I’d lean toward yes. Requiring the field would distinguish an explicitly empty collection from a missing/unknown value, and it would also simplify generated clients by avoiding Artifact[] | undefined. The main downside I can see is that it removes the ability to use omission to mean “unknown/not disclosed.” If TEA doesn’t need that distinction, a required-but-empty array seems cleaner. Related to that, since |
|
Good questions. I think we have to require a base product to register a product release. A collection for a component release that has no artifacts is kind of strange, but with your additional input I think it should be allowed. |
26268d3 to
21a71a4
Compare
|
Updated |
|
Thanks. Two small leftovers: README still says a Product Release may optionally belong to a TEA Product, but product is now required on productRelease. Worth aligning the README (and related tea-product docs, which has similar wording) with that model. Formats is already required, would it make sense to add Typo: a few checksum examples still use SHA_256/SHA_512 (underscore) instead of the enum's hyphenated form (SHA-256, SHA-512) — looks like it's fixed in some spots but not all. |
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Check RFC 6151 Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
this means that this PR will have to go in after CycloneDX#260 Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
|
ad2dfc6 to
f368b63
Compare
Signed-off-by: Olle E. Johansson <oej@edvina.net>
|
Thanks
|
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Signed-off-by: Olle E. Johansson <oej@edvina.net>
Fixed in recent commits. Please review again. |
|
Thanks LGTM from my side on those points. |
|
Three things left. 1. 2.
3.
|
Adding a set of required fields.
Closes issue #259
Please review!