mirror of
https://github.com/tristanpenman/valijson.git
synced 2024-12-12 18:20:27 +01:00
fail with the first unmet constraint to avoid running into type mismatches
This commit is contained in:
parent
f716227d0a
commit
aee67d58f0
@ -120,7 +120,7 @@ public:
|
|||||||
{
|
{
|
||||||
bool allTrue = true;
|
bool allTrue = true;
|
||||||
for (auto &&constraint : m_constraints) {
|
for (auto &&constraint : m_constraints) {
|
||||||
allTrue = applyFunction(*constraint) && allTrue;
|
allTrue = allTrue && applyFunction(*constraint);
|
||||||
}
|
}
|
||||||
|
|
||||||
return allTrue;
|
return allTrue;
|
||||||
|
Loading…
Reference in New Issue
Block a user