zod icon indicating copy to clipboard operation
zod copied to clipboard

Add `mask` parameter to `.required` method

Open ftzi opened this issue 3 years ago • 1 comments

This solves the #1176 by adding the mask parameter to the .required() method.

  • I have used as base the .partial(mask) method.
  • I have also added the .required to the README (it didn't exist before) with its new mask explanation.
  • Tests added and renamed the with mask test to partial with mask as we now have the required with mask.
  • Deno support

ftzi avatar Aug 05 '22 13:08 ftzi

Deploy Preview for guileless-rolypoly-866f8a ready!

Built without sensitive environment variables

Name Link
Latest commit b4eb7cd2b6c7bd43e1d4019f050961ec16376ade
Latest deploy log https://app.netlify.com/sites/guileless-rolypoly-866f8a/deploys/633cd43b8cff910008d59180
Deploy Preview https://deploy-preview-1315--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 settings.

netlify[bot] avatar Aug 05 '22 13:08 netlify[bot]

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 04 '22 19:10 stale[bot]

Up

ftzi avatar Oct 04 '22 19:10 ftzi

No noticeable changes in the benchmarks for the existing functionality, so I'd say this is ready to merge! Thanks @SrBrahma for the contribution.

scotttrinh avatar Oct 05 '22 00:10 scotttrinh

🤝

ftzi avatar Oct 05 '22 03:10 ftzi