Skip to content

Unify date-like validation for document created inputs #43

Description

@NickChristensen

We accept date-like values for the document created field (add/update), but validation is inconsistent. There are existing DateString/DateTimeString types plus the new dateLike flag/parse logic used by documents:list date filters.

Goal:

  • Define a single date-like input strategy for created that reuses shared parsing/validation.
  • Align add/update behavior and error messaging with the documents:list date-like flag.

Notes:

  • Ensure we handle both YYYY-MM-DD and ISO 8601 datetimes consistently.
  • Consider whether the shared logic should live in helpers/flags for reuse across commands.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions