Sha256: a850e2a1729f2cf099d42c912860ecd21906718135199e473331a6db565d5192

Contents?: true

Size: 1.49 KB

Versions: 55

Compression:

Stored size: 1.49 KB

Contents

[
    {
        "description": "by int",
        "schema": {"multipleOf": 2},
        "tests": [
            {
                "description": "int by int",
                "data": 10,
                "valid": true
            },
            {
                "description": "int by int fail",
                "data": 7,
                "valid": false
            },
            {
                "description": "ignores non-numbers",
                "data": "foo",
                "valid": true
            }
        ]
    },
    {
        "description": "by number",
        "schema": {"multipleOf": 1.5},
        "tests": [
            {
                "description": "zero is multiple of anything",
                "data": 0,
                "valid": true
            },
            {
                "description": "4.5 is multiple of 1.5",
                "data": 4.5,
                "valid": true
            },
            {
                "description": "35 is not multiple of 1.5",
                "data": 35,
                "valid": false
            }
        ]
    },
    {
        "description": "by small number",
        "schema": {"multipleOf": 0.0001},
        "tests": [
            {
                "description": "0.0075 is multiple of 0.0001",
                "data": 0.0075,
                "valid": true
            },
            {
                "description": "0.00751 is not multiple of 0.0001",
                "data": 0.00751,
                "valid": false
            }
        ]
    }
]

Version data entries

55 entries across 46 versions & 6 rubygems

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