summaryrefslogtreecommitdiff
path: root/json/tests/draft7/optional/cross-draft.json
blob: 8ff5373629ab08fb8fd25b3711aba92253876841 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[
    {
        "description": "refs to future drafts are processed as future drafts",
        "schema": {
            "type": "object",
            "allOf": [
                { "properties": { "foo": true } },
                { "$ref": "http://localhost:1234/draft2019-09/dependentRequired.json" }
            ]
        },
        "tests": [
            {
                "description": "missing bar is invalid",
                "comment": "if the implementation is not processing the $ref as a 2019-09 schema, this test will fail",
                "data": {"foo": "any value"},
                "valid": false
            },
            {
                "description": "present bar is valid",
                "data": {"foo": "any value", "bar": "also any value"},
                "valid": true
            }
        ]
    }
]