Coder Social home page Coder Social logo

Remove certain errors about ajv-errors HOT 5 OPEN

ajv-validator avatar ajv-validator commented on June 11, 2024
Remove certain errors

from ajv-errors.

Comments (5)

coderextreme avatar coderextreme commented on June 11, 2024 4

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.

coderextreme avatar coderextreme commented on June 11, 2024

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.

coderextreme avatar coderextreme commented on June 11, 2024

Your approach will work if it reports errors, but prevents bubbling.

from ajv-errors.

coderextreme avatar coderextreme commented on June 11, 2024

If I could put bubble: false in options that would be great!

from ajv-errors.

coderextreme avatar coderextreme commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.