Sha256: b59cfcf89c32b3ae136f189ae9b4caecf9928775378935c45b8afd1d2f66e761

Contents?: true

Size: 1.57 KB

Versions: 79

Compression:

Stored size: 1.57 KB

Contents

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

Version data entries

79 entries across 74 versions & 14 rubygems

Version Path
couchbase-3.0.0.alpha.1-universal-darwin-19 ext/third_party/json/tests/draft4/oneOf.json
couchbase-3.0.0.alpha.1 ext/third_party/json/tests/draft4/oneOf.json
rj_schema-0.2.6 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.2.5 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.2.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.2.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.2.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
optimacms-0.4.3 spec/dummy/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json
optimacms-0.4.2 spec/dummy/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json
locomotivecms-3.4.0 app/javascript/node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json
rj_schema-0.2.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.1.4 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.1.3 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.1.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.1.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.1.0 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.0.2 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
rj_schema-0.0.1 ext/rj_schema/rapidjson/bin/jsonschema/tests/draft4/oneOf.json
guard-sass-lint-0.1.2 node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json
guard-sass-lint-0.1.1 node_modules/is-my-json-valid/test/json-schema-draft4/oneOf.json