Admin event create/update forms submit empty strings for unset numeric and date fields (maxAttendees, registrationDeadline, ticket quantity, early-bird pricing), which Zod was rejecting. Preprocess empty strings to undefined so the existing optional/nullable validators accept them. |
||
|---|---|---|
| .. | ||
| api | ||
| config | ||
| emails | ||
| middleware | ||
| migrations | ||
| models | ||
| plugins | ||
| routes | ||
| utils | ||