maxLength.json revision 263646
1263646Sbapt[ 2263646Sbapt { 3263646Sbapt "description": "maxLength validation", 4263646Sbapt "schema": {"maxLength": 2}, 5263646Sbapt "tests": [ 6263646Sbapt { 7263646Sbapt "description": "shorter is valid", 8263646Sbapt "data": "f", 9263646Sbapt "valid": true 10263646Sbapt }, 11263646Sbapt { 12263646Sbapt "description": "exact length is valid", 13263646Sbapt "data": "fo", 14263646Sbapt "valid": true 15263646Sbapt }, 16263646Sbapt { 17263646Sbapt "description": "too long is invalid", 18263646Sbapt "data": "foo", 19263646Sbapt "valid": false 20263646Sbapt }, 21263646Sbapt { 22263646Sbapt "description": "ignores non-strings", 23263646Sbapt "data": 10, 24263646Sbapt "valid": true 25263646Sbapt } 26263646Sbapt ] 27263646Sbapt } 28263646Sbapt] 29