#tried that too, it doesn't work
1 messages · Page 1 of 1 (latest)
Why specifically did it not work? Is it that there's no way or that it just didn't yield the desired results?
what format are you going to serialize your zod schema to, to send it down to the client, and then convert it back?
JSON schema is lossy, it's not 100% correcrt
the author of the zod to json schema lib also says so
another thing I'm thinking and maybe I should do is:
<Form>
<Input validationRules={} />
</Form>
Just let the user specify the validation rules in the input itself, instead of a separate zod schema
I'm seeing this as a recommendation: https://www.answeroverflow.com/m/1106721797732319336