Make subschema constraint validation clearer

This commit is contained in:
Tristan Penman 2023-08-24 20:45:43 +10:00
parent 0530af0709
commit 0b7efb3763

View File

@ -120,7 +120,12 @@ public:
{ {
bool allTrue = true; bool allTrue = true;
for (auto &&constraint : m_constraints) { for (auto &&constraint : m_constraints) {
allTrue = applyFunction(*constraint) && allTrue; // Even if an application fails, we want to continue checking the
// schema. In that case we set allTrue to false, and then fall
// through to the next constraint
if (!applyFunction(*constraint)) {
allTrue = false;
}
} }
return allTrue; return allTrue;