cf-json / cf-json.github.io

Apache License 2.0
0 stars 2 forks source link

Restrict string representations of time variables to just a subset of ISO8601? RFC3339? #7

Open aportagain opened 6 years ago

aportagain commented 6 years ago

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?

aportagain commented 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").

aportagain commented 6 years ago

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