summaryrefslogtreecommitdiff
path: root/json/tests/draft2020-12/optional/cross-draft.json
blob: 5113bd649009296c7dd1b59cb152a239f5ad6cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[
    {
        "description": "refs to historic drafts are processed as historic drafts",
        "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "array",
            "$ref": "http://localhost:1234/draft2019-09/ignore-prefixItems.json"
        },
        "tests": [
            {
                "description": "first item not a string is valid",
                "comment": "if the implementation is not processing the $ref as a 2019-09 schema, this test will fail",
                "data": [1, 2, 3],
                "valid": true
            }
        ]
    }
]