Skip to content

Idea: require that timestamps start with time_ #5

@david-crespo

Description

@david-crespo

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_*.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions