diff options
author | Alexei Rousskikh <ext-alexei.rousskikh@nokia.com> | 2012-02-08 21:19:57 -0500 |
---|---|---|
committer | Andrew Christian <andrew.christian@nokia.com> | 2012-02-09 16:34:38 +0100 |
commit | d4f4c6011b03045c0ecc869de4c9082e0a4d1180 (patch) | |
tree | 47d09bc6478588115c3d3e71241e4e1371b9cceb /tests | |
parent | 1bafa9fae27587a126c03893031cb370df505dca (diff) |
fixed exclusiveMin/Max bug (moved info from per schema into per property)
Change-Id: I5d79a6efaa5a57c5f0bd532ef068a8cc4ee5d7fb
Reviewed-by: Andrew Christian <andrew.christian@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/jsonschema/create-test.json | 9 | ||||
-rw-r--r-- | tests/auto/jsonschema/tst_jsonschema.cpp | 3 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tests/auto/jsonschema/create-test.json b/tests/auto/jsonschema/create-test.json index 742909f..4cb225a 100644 --- a/tests/auto/jsonschema/create-test.json +++ b/tests/auto/jsonschema/create-test.json @@ -4,7 +4,14 @@ "properties": { "create-test": { "type": "number", - "required": true + "required": true, + "minimum": 10, + "exclusiveMinimum": true + }, + "create-test0": { + "type": "number", + "required": true, + "minimum": 1 }, "another-field": { "type": "string", diff --git a/tests/auto/jsonschema/tst_jsonschema.cpp b/tests/auto/jsonschema/tst_jsonschema.cpp index 8bd090a..1a66283 100644 --- a/tests/auto/jsonschema/tst_jsonschema.cpp +++ b/tests/auto/jsonschema/tst_jsonschema.cpp @@ -114,7 +114,8 @@ void tst_JsonSchema::schemaTest() // Create an item that matches the schema QJsonObject item; - item.insert("create-test", 22); + item.insert("create-test", 11); + item.insert("create-test0", 1); item.insert("another-field", QLatin1String("a string")); result = validator.validateSchema("SchemaTestObject", item); |