diff --git a/include/valijson/subschema.hpp b/include/valijson/subschema.hpp index 10d795a..5e22bf5 100644 --- a/include/valijson/subschema.hpp +++ b/include/valijson/subschema.hpp @@ -120,7 +120,7 @@ public: { bool allTrue = true; for (auto &&constraint : m_constraints) { - allTrue = allTrue && applyFunction(*constraint); + allTrue = applyFunction(*constraint) && allTrue; } return allTrue;