Skip to content

fix: reject pipeline dates for days that do not exist - #84

Open
VolodymyrLinuxovich wants to merge 1 commit into
mainfrom
fix/pipeline-real-calendar-dates
Open

VolodymyrLinuxovich wants to merge 1 commit into
mainfrom
fix/pipeline-real-calendar-dates

Conversation

@VolodymyrLinuxovich

Copy link
Copy Markdown
Owner

Fixes #81

Summary

The date only branch of optionalDate in schemas.ts now checks that the day exists. February 31 and month 13 are rejected with a validation error. Before they were saved as March 3 or as no date. Leap days still pass.

Validation

  • New test in opportunity-pipeline.test.ts. It fails on main.
  • npm test passes.
  • npm run typecheck and lint pass.

@vercel

vercel Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
largevcmodel Ready Ready Preview Oct 17, 2026 12:56pm UTC

This branch was successfully deployed

1 active deployment
Preview — e6b4f2fe Deployed Oct 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Pipeline accepts next action dates that do not exist

1 participant