Fixing "Required" Tag (#140)

ok ich merge mal ... passt ja soweit
This commit is contained in:
Paulchen-Panther 2016-07-26 14:53:27 +02:00 committed by redPanther
parent 6840d93206
commit b7d1fbf378

View File

@ -180,7 +180,7 @@ void QJsonSchemaChecker::checkProperties(const QJsonObject & value, const QJsonO
{ {
validate(value[property], propertyValue.toObject()); validate(value[property], propertyValue.toObject());
} }
else if (required != schema.end() && required.value().toBool()) else if (required != propertyValue.toObject().end() && required.value().toBool())
{ {
_error = true; _error = true;
setMessage("missing member"); setMessage("missing member");
@ -208,7 +208,7 @@ void QJsonSchemaChecker::checkAdditionalProperties(const QJsonObject & value, co
} }
else else
{ {
validate(value[property], schema.toObject()); validate(value[property].toObject(), schema.toObject());
} }
_currentPath.pop_back(); _currentPath.pop_back();
} }