Comments (2)
hi there, I'll see what I can do
I'll attempt to add a phone validator that can monkey-patch the library, so its fully optional and not included in the bundle by default (phone validator libs can't really be that small...)
In the meantime, you can try using https://www.npmjs.com/package/libphonenumber-js together with Nope.string().test()
from nope-validator.
Thanks @bvego tha would be awesome if you could come up with a super light weight version of this validator, the problem with libphonenumber-js
is that it expect a country code and I do not want to restrict my validation to a specific country.
from nope-validator.
Related Issues (20)
- Optional validation HOT 1
- Is it possible to infer the type of an object schema? HOT 1
- required HOT 1
- No validation on nested schema/data HOT 3
- Security Issue: Request for contact HOT 2
- Add async validation
- Add option to report all errors related to a field, not just the first one
- [Suggestion] add benchmark action to comment on each PR HOT 1
- utils.ts: every HOT 1
- Add default option HOT 1
- Add validateAt and validateAtSync HOT 1
- Using ref with primitive methods
- shape() validation crash on undefined HOT 2
- .trim() functionality HOT 8
- .trim() bug if using as a resolver for react-hook-form HOT 5
- Validate array of objects HOT 1
- 🛠 nope-validator v2.0.0 HOT 1
- Cannot use with ES modules due to package.json
- Nested Object validation doesn't allow for undefined field HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nope-validator.