Is it possible to dynamically generate zod schema?

Imagine a form where a user can add/remove fields of different types, how can we dynamically generate zod schema for that form?
Was this page helpful?