Option to fail on first error
Closed this issue · 2 comments
waisbrot commented
A very large JSON object can generate a huge number of validation errors. I'd like an option to abort validation on the first error, rather than continuing to collect them all.
acornejo commented
Good news is that this is the default behavior of jjv. Closing issue, comment if I misunderstood you.
waisbrot commented
Here's a gist that generates a large error (linear in the size of the object under validation): https://gist.github.com/waisbrot/0f5618b2d4244c0b1e51
Maybe I'm misunderstanding the error message. Is this one error that's spitting back a large object?