Skip to content

Fails to validate datetime string #169

@DrewMcArthur

Description

@DrewMcArthur
 EnforcerException: Invalid value
    at: timestamp
      Expected a valid date object. Received: "2025-11-24T22:52:03.329Z"

I'm getting this error validating a schema - using timestamp: new Date().toISOString(), is this a bug in the validation, or is toISOString not the right method to be using for a schema expecting:

timestamp:
  type: string
  format: date-time
  description: Current server timestamp
  example: "2024-06-01T12:00:00Z"

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