colinhacks / zod

TypeScript-first schema validation with static type inference
https://zod.dev
MIT License
33.92k stars 1.18k forks source link

(docs) email() validation disclaimer #3688

Open dearlordylord opened 3 months ago

dearlordylord commented 3 months ago

This PR makes @colinhacks stance https://github.com/colinhacks/zod/pull/2157 on email validation explicit in docs.

I've seen several validator libraries that have this disclaimer.

https://valibot.dev/api/email/

https://github.com/ianstormtaylor/superstruct?tab=readme-ov-file#why

https://github.com/effect-ts/effect/tree/main/packages/schema#email

https://github.com/jquense/yup?tab=readme-ov-file#stringemailmessage-string--function-schema

The disclaimer wording is stolen (in a shortened form) from effect/schema

netlify[bot] commented 3 months ago

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
Latest commit 592abb2600c947687299a6a6e831ae1d40e5411e
Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/66afbe57e88246000850fd6c
Deploy Preview https://deploy-preview-3688--guileless-rolypoly-866f8a.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.