[ { "description": "minLength validation", "database": { "schemas": [ { "minLength": 2, "$id": "minLength_0_0" } ] }, "tests": [ { "description": "longer is valid", "data": "foo", "valid": true, "schema_id": "minLength_0_0" }, { "description": "exact length is valid", "data": "fo", "valid": true, "schema_id": "minLength_0_0" }, { "description": "too short is invalid", "data": "f", "valid": false, "schema_id": "minLength_0_0" }, { "description": "ignores non-strings", "data": 1, "valid": true, "schema_id": "minLength_0_0" }, { "description": "one grapheme is not long enough", "data": "💩", "valid": false, "schema_id": "minLength_0_0" } ] }, { "description": "minLength validation with a decimal", "database": { "schemas": [ { "minLength": 2, "$id": "minLength_1_0" } ] }, "tests": [ { "description": "longer is valid", "data": "foo", "valid": true, "schema_id": "minLength_1_0" }, { "description": "too short is invalid", "data": "f", "valid": false, "schema_id": "minLength_1_0" } ] } ]