maxLength.json revision 268896
150479Speter[
213244Sgraichen    {
3264996Sjmmv        "description": "maxLength validation",
4264996Sjmmv        "schema": {"maxLength": 2},
513244Sgraichen        "tests": [
6126878Strhodes            {
7119998Sgad                "description": "shorter is valid",
874816Sru                "data": "f",
9264996Sjmmv                "valid": true
10264996Sjmmv            },
11264996Sjmmv            {
12264996Sjmmv                "description": "exact length is valid",
1313244Sgraichen                "data": "fo",
14                "valid": true
15            },
16            {
17                "description": "too long is invalid",
18                "data": "foo",
19                "valid": false
20            },
21            {
22                "description": "ignores non-strings",
23                "data": 10,
24                "valid": true
25            }
26        ]
27    }
28]
29