summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json')
-rw-r--r--3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json33
1 files changed, 33 insertions, 0 deletions
diff --git a/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json
new file mode 100644
index 00000000000..3f09158deef
--- /dev/null
+++ b/3rdparty/rapidjson/bin/jsonschema/tests/draft3/minLength.json
@@ -0,0 +1,33 @@
+[
+ {
+ "description": "minLength validation",
+ "schema": {"minLength": 2},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "exact length is valid",
+ "data": "fo",
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": "f",
+ "valid": false
+ },
+ {
+ "description": "ignores non-strings",
+ "data": 1,
+ "valid": true
+ },
+ {
+ "description": "one supplementary Unicode code point is not long enough",
+ "data": "\uD83D\uDCA9",
+ "valid": false
+ }
+ ]
+ }
+]