QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
JsonValidation.h File Reference
#include <QtCore/QJsonObject>
#include <QtCore/QStringList>
+ Include dependency graph for JsonValidation.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  JsonParsing::KeyValidateInfo
 

Namespaces

namespace  JsonParsing
 

Functions

bool JsonParsing::validateRequiredKeys (const QJsonObject &jsonObject, const QStringList &keys, QString &errorString)
 Validates that all listed keys are present in the object.
 
bool JsonParsing::validateKeyTypes (const QJsonObject &jsonObject, const QStringList &keys, const QList< QJsonValue::Type > &types, QString &errorString)
 
bool JsonParsing::validateKeys (const QJsonObject &jsonObject, const QList< KeyValidateInfo > &keyInfo, QString &errorString)
 Validates that all required keys are present and that listed keys have the expected type.
 
bool JsonParsing::validateKeysStrict (const QJsonObject &jsonObject, const QList< KeyValidateInfo > &keyInfo, QString &errorString)
 Validates keys like validateKeys but also rejects any keys not listed in keyInfo.