Sha256: a326f0120ce2674d86280300f09ad5c6c295477f970588796c1df93745f8ab93

Contents?: true

Size: 1.89 KB

Versions: 22

Compression:

Stored size: 1.89 KB

Contents

[
    {
        "description": "disallow",
        "schema": {
            "disallow": "integer"
        },
        "tests": [
            {
                "description": "allowed",
                "data": "foo",
                "valid": true
            },
            {
                "description": "disallowed",
                "data": 1,
                "valid": false
            }
        ]
    },
    {
        "description": "multiple disallow",
        "schema": {
            "disallow": ["integer", "boolean"]
        },
        "tests": [
            {
                "description": "valid",
                "data": "foo",
                "valid": true
            },
            {
                "description": "mismatch",
                "data": 1,
                "valid": false
            },
            {
                "description": "other mismatch",
                "data": true,
                "valid": false
            }
        ]
    },
    {
        "description": "multiple disallow subschema",
        "schema": {
            "disallow":
                ["string",
                 {
                    "type": "object",
                    "properties": {
                        "foo": {
                            "type": "string"
                        }
                    }
                 }]
        },
        "tests": [
            {
                "description": "match",
                "data": 1,
                "valid": true
            },
            {
                "description": "other match",
                "data": {"foo": 1},
                "valid": true
            },
            {
                "description": "mismatch",
                "data": "foo",
                "valid": false
            },
            {
                "description": "other mismatch",
                "data": {"foo": "bar"},
                "valid": false
            }
        ]
    }
]

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/disallow.json
rj_schema-1.0.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-1.0.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-1.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-1.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-1.0.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.2.6 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.2.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.2.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.2.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.2.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
json_schemer-0.2.9 JSON-Schema-Test-Suite/tests/draft3/disallow.json
json_schemer-0.2.8 JSON-Schema-Test-Suite/tests/draft3/disallow.json
json_schemer-0.2.7 JSON-Schema-Test-Suite/tests/draft3/disallow.json
rj_schema-0.2.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.1.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.1.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.1.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.1.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json
rj_schema-0.1.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft3/disallow.json