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());
}
else if (required != schema.end() && required.value().toBool())
else if (required != propertyValue.toObject().end() && required.value().toBool())
{
_error = true;
setMessage("missing member");
@ -208,7 +208,7 @@ void QJsonSchemaChecker::checkAdditionalProperties(const QJsonObject & value, co
}
else
{
validate(value[property], schema.toObject());
validate(value[property].toObject(), schema.toObject());
}
_currentPath.pop_back();
}
@ -372,4 +372,4 @@ void QJsonSchemaChecker::checkEnum(const QJsonValue & value, const QJsonValue &
QString strJson(doc.toJson(QJsonDocument::Compact));
oss << strJson.toStdString() << ")";
setMessage(oss.str());
}
}