summaryrefslogtreecommitdiff
path: root/json/tests/draft2019-09/defs.json
blob: 3f9088c3c39cbcac629b39f3201b51c055660cfb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[
    {
        "description": "validate definition against metaschema",
        "schema": {
            "$schema": "https://json-schema.org/draft/2019-09/schema",
            "$ref": "https://json-schema.org/draft/2019-09/schema"
        },
        "tests": [
            {
                "description": "valid definition schema",
                "data": {"$defs": {"foo": {"type": "integer"}}},
                "valid": true
            },
            {
                "description": "invalid definition schema",
                "data": {"$defs": {"foo": {"type": 1}}},
                "valid": false
            }
        ]
    }
]