summaryrefslogtreecommitdiffstats
path: root/src/qtjsonschema/jsonobjecttypes_p.h
diff options
context:
space:
mode:
authorAlexei Rousskikh <ext-alexei.rousskikh@nokia.com>2012-03-05 10:46:52 -0500
committerChris Craig <ext-chris.craig@nokia.com>2012-03-05 21:46:26 +0100
commitc84ef3980f2d0f7e214c002f03db4be3e03f73b8 (patch)
tree99151de305d4052a28001a2d200f0bb80b887da6 /src/qtjsonschema/jsonobjecttypes_p.h
parent5c55284cceea22fcd4768f4b41fcfb7e0f893d0c (diff)
implemented self reference ({"$ref" : "#"}) (required for a self validation)
Change-Id: I0ebb0c3c1a26e7f734ccd9784cfbe11fcc5b5e30 Reviewed-by: Chris Craig <ext-chris.craig@nokia.com>
Diffstat (limited to 'src/qtjsonschema/jsonobjecttypes_p.h')
-rw-r--r--src/qtjsonschema/jsonobjecttypes_p.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qtjsonschema/jsonobjecttypes_p.h b/src/qtjsonschema/jsonobjecttypes_p.h
index 11f0fbe..6ee0097 100644
--- a/src/qtjsonschema/jsonobjecttypes_p.h
+++ b/src/qtjsonschema/jsonobjecttypes_p.h
@@ -164,6 +164,9 @@ public:
inline Service(SchemaManagerBase *schemas);
inline QJsonObject error() const;
+ void setRootSchema(const SchemaValidation::Schema<JsonObjectTypes> & _schema) { m_rootSchema = _schema; }
+ const SchemaValidation::Schema<JsonObjectTypes> &rootSchema() const { return m_rootSchema; }
+
// interface
inline void setValidationError(const QString &message);
inline void setLoadError(const QString &message);
@@ -173,6 +176,7 @@ public:
private:
SchemaManagerBase *m_schemas;
QJsonObject m_errorMap;
+ SchemaValidation::Schema<JsonObjectTypes> m_rootSchema;
};
};