Just noticed another benefit of using Zod: It draws attention to bad...


Just noticed another benefit of using Zod: It draws attention to bad endpoint designs.

Example:

Why is the backend returning null if there are no tags? I noticed this in a code review, so we switched the backend to return an empty array if there are no tags.

Result: One less null to handle on the client. 👍

View original on X