Update date-time formats to RFC 9557 #119
Conversation
RFC 3339 is updated by RFC 9557. By specifying all formats as RFC 9557, values in RFC 9557 format are now also allowed, not just values RFC 3339 format. All entries also use consistent formatting and naming now, including which URL to link to and what the `source_label` is.
|
note to self (just checking myself): Section 4.1 of RFC 9557 explicitly updates the interpretation of the Z offset that was defined in RFC 3339 section 5.6, but it does not replace the whole section or its grammar. What RFC 3339 5.6 says The RFC Editor and datatracker now mark RFC 3339 as “Updated by RFC 9557,” and the errata clarify that 3339’s productions can be referenced in different application contexts (full timestamps vs partial forms). What RFC 9557 4.1 changes ...so it seems that RFC 9557 4.1 updates the semantic interpretation of Z as defined in RFC 3339, narrowing or correcting that previous wording. |
|
so given my notes... does this
make sense? |
|
That's one of the changes, but the other one that is more useful in terms of format is the textual representation of timezones as suffix. See https://www.rfc-editor.org/rfc/rfc9557.html#section-3 E.g. RFC3339 leaves that open and RFC9557 defines an explicit syntax for it. Maybe instead we should introduce a new format for |
karenetheridge
left a comment
There was a problem hiding this comment.
date, date-time, time and duration are formats defined in JSON Schema and we should not change them here, as compatibility is important.
|
I noticed that some of the data in these source files is not actually visible on the website - e.g. https://spec.openapis.org/registry/format/duration.html shows no mention of this format's definition being tied to JSON Schema, or the specific section of RFC3339 where the definition actually lives. We really should make that visible, as it's important to be able to see the source definition of the format. |
RFC 3339 is updated by RFC 9557. By specifying all formats as
RFC 9557, values in RFC 9557 format are now also allowed, not just values RFC 3339 format.
All entries also use consistent formatting and naming now,
including which URL to link to and what the
source_labelis.