mekanika / skematic

Data model & rule engine for JS objects
9 stars 0 forks source link

Halt on first validation error #10

Open cayuu opened 9 years ago

cayuu commented 9 years ago

This came out of benchmarking. On the server side it can be advantageous to halt validation once the first error has been hit rather than continue processing. On average it should roughly halve the load of validation. Browser validation may not care, so a flag to handle this would be useful.