Sha256: 08511ada9dccc03e942880b7d87e59adce1a5e613159dea7e44a0f2577ebd74a

Contents?: true

Size: 895 Bytes

Versions: 22

Compression:

Stored size: 895 Bytes

Contents

[
    {
        "description": "maxLength validation",
        "schema": {"maxLength": 2},
        "tests": [
            {
                "description": "shorter is valid",
                "data": "f",
                "valid": true
            },
            {
                "description": "exact length is valid",
                "data": "fo",
                "valid": true
            },
            {
                "description": "too long is invalid",
                "data": "foo",
                "valid": false
            },
            {
                "description": "ignores non-strings",
                "data": 10,
                "valid": true
            },
            {
                "description": "two supplementary Unicode code points is long enough",
                "data": "\uD83D\uDCA9\uD83D\uDCA9",
                "valid": true
            }
        ]
    }
]

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
rj_schema-1.0.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-1.0.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-1.0.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-1.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-1.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-1.0.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.2.6 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.2.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.2.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.2.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.2.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
json_schemer-0.2.9 JSON-Schema-Test-Suite/tests/draft3/maxLength.json
json_schemer-0.2.8 JSON-Schema-Test-Suite/tests/draft3/maxLength.json
json_schemer-0.2.7 JSON-Schema-Test-Suite/tests/draft3/maxLength.json
rj_schema-0.2.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.1.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.1.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.1.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.1.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json
rj_schema-0.1.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/maxLength.json