News for hackers. Stuff that matters.
Re:Zod v4 Beta by gavinray on Sunday April 13, 2025 @05:51AM (#43671534)
That's not necessarily true.

You can write type assertion functions that validate the input is a given shape.

In theory, you'd use these type assertion methods at any API boundaries a single time for external inputs/outputs in a "Parse, Don't Validate" approach to cover your bases.

Re:Zod v4 Beta by mijamo on Sunday April 13, 2025 @06:18AM (#43671678)
Soooo exactly what Zod is doing?