diff options
Diffstat (limited to 'json/tests/draft2020-12/minLength.json')
-rw-r--r-- | json/tests/draft2020-12/minLength.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft2020-12/minLength.json b/json/tests/draft2020-12/minLength.json index 3f09158..64db948 100644 --- a/json/tests/draft2020-12/minLength.json +++ b/json/tests/draft2020-12/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 + } + ] } ] |