mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 10:13:51 +01:00
Revert "fail with the first unmet constraint to avoid running into type mismatches"
This reverts commit aee67d58f0
.
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…
Reference in New Issue
Block a user