Repository navigation
Conversation
There was a problem hiding this comment.
TO BE DISCUSSED:
What I would like to see is a clarification in the descriptions regarding timezones when issuing - something like "A timezone or Zulu should be provided".
- for
date-timeandtimea "time-offset" exists. - for
datethere is no such thing - we should clarify that the issued date should be Zulu time.
why "should", not "must"/"shall": sometimes it is just not possible to determine a timezone, and we dont want to force users to make one up.
why "should be provided" - we only want to target the issuers of data, not ingesting systems.
see https://json-schema.org/draft/2020-12/draft-bhutton-json-schema-validation-00#rfc.section.7.3.1
|
the JSS descriptions got a revisit lately - per #1255 |
Add RFC_3339 date-time and full-date defs to common and point all inline date-time/date properties at them. The common timestamp def now builds on the date-time def and keeps its Zulu pattern. Fixes CycloneDX#1223 Signed-off-by: Srinivas Chippagiri <[email protected]>
…nk style Signed-off-by: Srinivas Chippagiri <[email protected]>
Signed-off-by: Srinivas Chippagiri <[email protected]>
28305da to
74e155f
Compare
|
Rebased and did the JSS timestamps too in 74e155f, same wording as the common one plus format date-time. The X.590 patterns stay as they are. On the timezone note, I can add the "should be provided" sentence to date-time/time and the Zulu one to date once Steve weighs in. |
The thing is: we dont require Zulu time, but we would prefer it. We want users to provide time zones where possible - a "should be provided, Zulu time preferred" is good here. |
Signed-off-by: Srinivas Chippagiri <[email protected]>
|
Brought the links back and added the time zone wording in 4460f19. date-time says a time zone should be provided, Zulu preferred. date just says Zulu should be preferred when issuing. I kept both vague like you said and left the timestamp description alone since it already requires Z. |
This adds an
RFC_3339group to common, shaped like theISO_3166one in #1220, with adate-timeand afull-datedef. All 60 inline"type": "string", "format": "date-time"and"format": "date"properties across the modules now$refone of them and keep their own title and description. The existingtimestampdef builds ondate-timetoo and keeps its Zulu-only pattern.Validation should be the same as before. The defs only use
format, no new pattern, so nothing gets stricter or looser. I kept the JSS module as is since its timestamp follows X.590 and is stricter on purpose.Notes
The common
timestampdef (Zulu only) isn't referenced anywhere right now, all the usages allow offsets. I left that alone, happy to switch usages over if that's the intent. Same if you'd rather have a light pattern on the RFC 3339 defs instead of relying onformat.I checked locally that every 2.0 test resource validates the same before and after. Bundles aren't regenerated here, same as #1206.