Sha256: bf2211cf8fd220bf6b42f9545507ced63830de067f37f74477faf2dd97dcf144

Contents?: true

Size: 857 Bytes

Versions: 69

Compression:

Stored size: 857 Bytes

Contents

[
    {
        "description": "pattern validation",
        "schema": {"pattern": "^a*$"},
        "tests": [
            {
                "description": "a matching pattern is valid",
                "data": "aaa",
                "valid": true
            },
            {
                "description": "a non-matching pattern is invalid",
                "data": "abc",
                "valid": false
            },
            {
                "description": "ignores non-strings",
                "data": true,
                "valid": true
            }
        ]
    },
    {
        "description": "pattern is not anchored",
        "schema": {"pattern": "a+"},
        "tests": [
            {
                "description": "matches a substring",
                "data": "xxaayy",
                "valid": true
            }
        ]
    }
]

Version data entries

69 entries across 38 versions & 3 rubygems

Version Path
rj_schema-0.1.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json
rj_schema-0.1.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json
rj_schema-0.1.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json
rj_schema-0.1.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json
rj_schema-0.1.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json
rj_schema-0.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json
rj_schema-0.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json
rj_schema-0.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/pattern.json
rj_schema-0.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/pattern.json