HF RL Explorer

Feature Request: Add date-only and time-only string validations to Zod’s string schema

Feature Request: Add date-only and time-only string validations to Zod’s string schema: a task in LegoFlow-SWE (Harbor dataset). Currently, z.string().datetime() only validates full ISO 8601 datetime strings (like 2022‑12‑12T10:30:00Z ). Many APIs and data sources work with plain date strings (…

The task

Currently, `z.string().datetime()` only validates full ISO 8601 datetime strings (like `2022‑12‑12T10:30:00Z`). Many APIs and data sources work with plain date strings (`2022‑12‑12`) or time strings (`10:30:00`). There is no built‑in Zod validator for these formats, forcing developers to write manual regex checks.

Part of Lego-X/LegoFlow-SWE.