@colinhacks ("Colin McDonnell") wrote:
Toying with the idea of a .filter() method on array schemas that filter out invalid elements instead of throwing errors. First proposed here: https://github.com/colinhacks/zod/issues/725
I suppose it violates Zod's parse/transform separation principle but so does z.object().strip() 🤷♂️
Thoughts?
