Comments (2)
I'll add I was able to fix this by changing line 56 of NopeObject.js to const error = validator.validate(entry?.[key], ctx, options);
from nope-validator.
Hi @freddiemixell, thanks for sharing 🐛
I'm trying to reproduce and I couldn't, can you take a look at this file that I created to exemplify or create one where the error happens?
By default, when a schema validates our data, we return undefined
if there are no errors, this is exactly what happens in my example above (in the shared link).
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
- Phone Validator HOT 2
- 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
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.