Standardize recommended formats for 'primitive' Context fields #645
Labels
Context Data & Intents
Contexts & Intents Discussion Group
context-data
FDC3 Context Data Working Group
enhancement
New feature or request
Milestone
Enhancement Request
Add recommended formats (SHOULD) for common field types to the Context specification, where those fields don't (or don't often or always) warrant a full embedded context type. Those field types should reference external standards where possible.
Note recommending a format for fields of these types doesn't preclude them also having a context type. However, if it is decided that they should always be full context types then that should instead be required in the standard and this information distributed amongst each individual type.
Use-case
Providing recommended formats will reduce or prevent competing conventions from being established in both standardized types and in-house types created by app developers - helping to ensure applications can interoperate through FDC3 more reliably.
Further, conversion of a format or code is often trivial if the target format is specified and it can be validated by a schema. Whereas interpretation of diverse formats from a single field can be far more difficult as is validation via a schema.
Examples
For example, the following types of data might have a recommended format:
2022-03-30T15:44:44Z
2022-03-30T15:44:44+00:00
2022-03-30T11:44:44-04:00
let aDate = new Date("2022-03-30T11:44:44-04:00")
YYYY-MM-DD
date format from ISO 8601-1:2019 (already linked to in References page)2022-03-30
let aDate = new Date("2022-03-30")
GB
orUA
GBP
orUAH
The text was updated successfully, but these errors were encountered: