In oxide.ts, I want to parse dates in API responses at runtime. The data required to do that robustly is there in the spec (format: date-time), but I can avoid figuring out how to tag fields with that info for use at runtime if I can instead rely on a name convention. Right now this rule is already almost being followed in Nexus — the only exception is the created field on TimeseriesSchema which is probably (hopefully) a mistake anyway.
Ideally this would be an if-and-only-if situation: time_* fields must be date-time and date-time fields must be time_*.
In oxide.ts, I want to parse dates in API responses at runtime. The data required to do that robustly is there in the spec (
format: date-time), but I can avoid figuring out how to tag fields with that info for use at runtime if I can instead rely on a name convention. Right now this rule is already almost being followed in Nexus — the only exception is thecreatedfield onTimeseriesSchemawhich is probably (hopefully) a mistake anyway.Ideally this would be an if-and-only-if situation:
time_*fields must bedate-timeanddate-timefields must betime_*.