Repository navigation
Conversation
Add an RFC_4122 urn def to common and point bom.serialNumber at it. The pattern is unchanged. Fixes CycloneDX#1225 Signed-off-by: Srinivas Chippagiri <[email protected]>
…mber wording The pattern only matches lowercase urn:uuid values, so say so in the definition name, and keep 'must conform to RFC 4122' instead of rewording the requirement. Signed-off-by: Srinivas Chippagiri <[email protected]>
… lowercase Signed-off-by: Srinivas Chippagiri <[email protected]>
RFC 9562 obsoletes RFC 4122 and keeps the same UUID string format and urn:uuid namespace, so the pattern is unchanged. Signed-off-by: Srinivas Chippagiri <[email protected]>
|
I moved the references to RFC 9562 in a separate commit, since it obsoletes RFC 4122 and keeps the same string format and |
2090f30 to
fc80d41
Compare
| "serialNumber": { | ||
| "type": "string", | ||
| "title": "BOM Serial Number", | ||
| "description": "Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number must conform to [RFC 4122](https://www.ietf.org/rfc/rfc4122.html). Use of serial numbers is recommended.", |
There was a problem hiding this comment.
| "$defs": { | ||
| "urn:uuid-LC": { | ||
| "title": "RFC 4122 UUID URN (lowercase)", | ||
| "description": "A UUID in its lowercase string representation, prefixed with the `urn:uuid:` namespace, as defined by [RFC 4122](https://www.ietf.org/rfc/rfc4122.html).", |
There was a problem hiding this comment.
| "$defs": { | ||
| "urn:uuid-LC": { | ||
| "title": "RFC 9562 UUID URN (lowercase)", | ||
| "description": "A UUID in its lowercase string representation, prefixed with the `urn:uuid:` namespace, as defined by [RFC 9562](https://www.ietf.org/rfc/rfc9562.html).", |
There was a problem hiding this comment.
the RFC 9562 is NOT about any urn format - it is about how the UUID is crafted.
therefore, this usage here does not actually make sense.
|
thanks for working on the topic I dont think the applied implementation makes any sense for us here closing. |
the very verbose description you suggested is pretty good. @cvas22 could you open a pull-reqest just improving the existing description of the serial number? |
This adds an
RFC_4122group to common, same shape asISO_3166in #1220, with aurndef forurn:uuid:values.bom.serialNumberin the root schema now$refs it and the description links RFC 4122 on rfc-editor.org. The pattern is the exact same lowercase one as before, so validation doesn't change.Notes
serialNumber was the only real usage. The BOM-Link patterns embed the same UUID syntax inside a bigger regex, so there's nothing to
$refthere, and I left the JSS module alone since its identifier comes from X.590. That's also why the edit touches the root schema and not only modules.One question: RFC 4122 has been obsoleted by RFC 9562. Should the name and links move to RFC 9562 in 2.0, or stay on 4122 for now? I kept 4122 to match the issue title.
I checked locally that every 2.0 test resource validates the same before and after.