Open aportagain opened 6 years ago
Maybe just reference RFC3339? I very much agree with the statement there that "the complete grammar for ISO 8601 is deemed too complex for most Internet protocols" :) This would align nicely with OpenAPI which also just references that RFC, and provides corresponding data types (well, data type "string", with format modifiers "date" and "date-time").
More or less related "datetime string format" issues: https://github.com/metocean/api-conventions/issues/9 https://github.com/metocean/api-conventions/issues/14 https://github.com/metocean/api-conventions/issues/15
Andre and I discussed this recently in the context of our internal APIs (https://github.com/metocean/api-conventions/issues/9), but maybe we could also consider restricting the string representation of time variables in cf-json to just a subset of the ISO8601 formats / textual representations?