summaryrefslogtreecommitdiff
path: root/json/tests/draft6/minLength.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft6/minLength.json')
-rw-r--r--json/tests/draft6/minLength.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft6/minLength.json b/json/tests/draft6/minLength.json
index 3f09158..64db948 100644
--- a/json/tests/draft6/minLength.json
+++ b/json/tests/draft6/minLength.json
@@ -29,5 +29,21 @@
"valid": false
}
]
+ },
+ {
+ "description": "minLength validation with a decimal",
+ "schema": {"minLength": 2.0},
+ "tests": [
+ {
+ "description": "longer is valid",
+ "data": "foo",
+ "valid": true
+ },
+ {
+ "description": "too short is invalid",
+ "data": "f",
+ "valid": false
+ }
+ ]
}
]