mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-21 02:00:34 +01:00
Revert "fail with the first unmet constraint to avoid running into type mismatches"
This reverts commit aee67d58f05972555bfd1e7ce5451da4333e6348. I believe the original intention of this code was to fall through to later constraints, even if earlier constraints were not satisfied. This is not captured by any of the tests in the test suite, which is an oversight on my part.
This commit is contained in:
parent
aee67d58f0
commit
92b9514bde
@ -120,7 +120,7 @@ public:
|
||||
{
|
||||
bool allTrue = true;
|
||||
for (auto &&constraint : m_constraints) {
|
||||
allTrue = allTrue && applyFunction(*constraint);
|
||||
allTrue = applyFunction(*constraint) && allTrue;
|
||||
}
|
||||
|
||||
return allTrue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user