Comments (5)
Can you give an estimate for the cost of fixing this, or suggest a better JSON validator for use? Email [email protected]. I am getting 209 errors in Ajv. I have a feeling there's only 1 or 2 real errors in the whole bunch. Your approach is WRONG, and higher level errors in the JSON hierarchy (closer to the trunk) should not be reported when there's a lower level error in the hierarchy (farther away from the trunk) that causes the higher level error. The JSON in question has deeply nested repeated structures, so I don't think your approach above will work. I can't suppress error messages at any level. The error messages should not be generated.
from ajv-errors.
To give you an idea of the scope of the problem, I have 41 files to validate, with 2721 keyword errors. So around 65 errors per file. These are files that DO validate with our other schema. We're trying to design an automatically generated schema. However, we have been changing the standard, and we need to catch files out of compliance. There are some important differences, and we added oneOf's to catch files out of compliance, but they aren't in our old schema yet. We would like to move to the new schema.
from ajv-errors.
Your approach will work if it reports errors, but prevents bubbling.
from ajv-errors.
If I could put bubble: false in options that would be great!
from ajv-errors.
Removing the allErrors and verbose options reduced the number of errors 75%. I may be able to deal with that.
from ajv-errors.
Related Issues (20)
- Reference Error with relative JSON pointer HOT 1
- Custom error for minLength on array property is not working HOT 1
- Be able to set custom keyword for error messages HOT 1
- Receiving error that a dependency is missing after installing ajv-errors.
- Create different error for each validation per attribute HOT 3
- `JSONSchemaType` + `anyOf` corresponding to union over objects cannot correctly determine missing fields HOT 2
- Getting instancePath when using with ajv-keywords and uniqueItemProperties HOT 1
- errorMessage not being set on array of objects? HOT 1
- Keyword error replacement in nested objects it's not working
- Required Keyword Error Message - Error is raised at incorrect level HOT 3
- Question: use enum values in custom error message
- Not getting custom error message for "pattern" keyword
- Is it possible to define a "dictionary" of common error messages?
- errorMessage is not a standard keyword in the JSON Schema specification, hence linting fails HOT 1
- Is this project still being maintained?
- Not working in browser
- Issue when compiling standalone validator with ajv-errors and errorMessage:{ properties:{ HOT 1
- When using ajv-errors package I get this error "Cannot read property 'allErrors' of undefined" HOT 1
- is it possible to add identifier in error, to classify errors
- Generates invalid functions? HOT 3
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 ajv-errors.