|
QGroundControl
Ground Control Station for MAVLink Drones
|
Functions | |
| bool | validate (const QJsonDocument &doc, const QString &schemaResourcePath, QString &errorString) |
| bool JsonSchemaValidator::validate | ( | const QJsonDocument & | doc, |
| const QString & | schemaResourcePath, | ||
| QString & | errorString | ||
| ) |
Validates doc against the JSON-Schema bundled at schemaResourcePath (e.g. ":/json/component_metadata/parameter.schema.json").
doc conforms; on failure returns false and fills errorString with the validation failures. Definition at line 76 of file JsonSchemaValidator.cc.
References error, errorString, and validate().
Referenced by CompInfoActuators::setJson(), CompInfoGeneral::setJson(), CompInfoParam::setJson(), ComponentInformationTranslation::translateJsonUsingTS(), and validate().