mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
parent
6840d93206
commit
b7d1fbf378
@ -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();
|
||||||
}
|
}
|
||||||
@ -372,4 +372,4 @@ void QJsonSchemaChecker::checkEnum(const QJsonValue & value, const QJsonValue &
|
|||||||
QString strJson(doc.toJson(QJsonDocument::Compact));
|
QString strJson(doc.toJson(QJsonDocument::Compact));
|
||||||
oss << strJson.toStdString() << ")";
|
oss << strJson.toStdString() << ")";
|
||||||
setMessage(oss.str());
|
setMessage(oss.str());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user