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
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/source/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
tck-lambdas-0.2.0 lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
tck-lambdas-0.1.6 lib/tck/lambdas/chistacojs/source/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
brwy_rails-0.0.6 test/dummy/node_modules/fsevents/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
brwy_rails-0.0.5 test/dummy/node_modules/fsevents/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
blackboard-3.1.9 lib/site_template/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
brwy_rails-0.0.4 test/dummy/node_modules/fsevents/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
brwy_rails-0.0.3 test/dummy/node_modules/fsevents/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
brwy_rails-0.0.2 test/dummy/node_modules/fsevents/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
brwy_rails-0.0.1 test/dummy/node_modules/fsevents/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
es6_tilt-0.1.2 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
es6_tilt-0.1.1 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
es6_tilt-0.1.0 test/dummy/app/assets/javascripts/node_modules/fsevents/node_modules/node-pre-gyp/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
eslint_node_modules-1.6.0.1 vendor/node_modules/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
eslint_node_modules-1.6.0 vendor/node_modules/eslint/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
gulp_assets-1.0.0.pre.5 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
gulp_assets-1.0.0.pre.4 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json
gulp_assets-1.0.0.pre.3 template/node_modules/gulp-sass/node_modules/node-sass/node_modules/request/node_modules/har-validator/node_modules/is-my-json-valid/test/json-schema-draft4/anyOf.json