Request for code that validates URL and email inputs for @sanity-typed/zod package.

2 replies
Last updated: Sep 7, 2023
Can anyone point me to the exact code that validates things things like
"type": "url" | "email"
or for validations like
Rule.email()
(namely, the regex that's used)? I'm working on https://www.npmjs.com/package/@sanity-typed/zod and it would be cool to have it perform the exact same validations.
Sep 7, 2023, 9:40 PM
This is the good stuff. Thank you!
Sep 7, 2023, 9:43 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?