Commit 026d34a
fix(validation): compare date component to reject same-day birth dates (#344)
- Change DateOfBirth predicate from `date < DateTime.UtcNow` to
`date!.Value.Date < DateTime.UtcNow.Date` to reject same-day dates
- Access nullable value via `.Value.Date` consistently in both Must
lambdas, safe within the When(HasValue) guard
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 2264c0d commit 026d34a
1 file changed
Lines changed: 4 additions & 2 deletions
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
51 | 53 | | |
52 | 54 | | |
53 | 55 | | |
| |||
0 commit comments