Sha256: d0d124e0e14a427b8865d22e197fbba47329ecc6c0f105518a93ea86980919a3

Contents?: true

Size: 1.57 KB

Versions: 79

Compression:

Stored size: 1.57 KB

Contents

[
    {
        "description": "anyOf",
        "schema": {
            "anyOf": [
                {
                    "type": "integer"
                },
                {
                    "minimum": 2
                }
            ]
        },
        "tests": [
            {
                "description": "first anyOf valid",
                "data": 1,
                "valid": true
            },
            {
                "description": "second anyOf valid",
                "data": 2.5,
                "valid": true
            },
            {
                "description": "both anyOf valid",
                "data": 3,
                "valid": true
            },
            {
                "description": "neither anyOf valid",
                "data": 1.5,
                "valid": false
            }
        ]
    },
    {
        "description": "anyOf with base schema",
        "schema": {
            "type": "string",
            "anyOf" : [
                {
                    "maxLength": 2
                },
                {
                    "minLength": 4
                }
            ]
        },
        "tests": [
            {
                "description": "mismatch base schema",
                "data": 3,
                "valid": false
            },
            {
                "description": "one anyOf valid",
                "data": "foobar",
                "valid": true
            },
            {
                "description": "both anyOf invalid",
                "data": "foo",
                "valid": false
            }
        ]
    }
]

Version data entries

79 entries across 74 versions & 14 rubygems

Version Path
rj_schema-1.0.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
rj_schema-1.0.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
rj_schema-1.0.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
rj_schema-1.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
rj_schema-1.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
rj_schema-1.0.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.4-x86_64-linux ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.4-x86_64-darwin-19 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.4-universal-darwin-19 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.4 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.3-x86_64-linux ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.3-x86_64-darwin-19 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.3-universal-darwin-19 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.3 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.2-x86_64-linux ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.2-x86_64-darwin-19 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.2-universal-darwin-19 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.2 ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.1-x86_64-linux ext/third_party/json/tests/draft4/anyOf.json
couchbase-3.0.0.alpha.1-x86_64-darwin-19 ext/third_party/json/tests/draft4/anyOf.json