summaryrefslogtreecommitdiff
path: root/json/output-tests/draft2020-12/content/escape.json
blob: c329c919c7ca0a327e8ec089ab30041ea410a8f0 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
[
    {
        "description": "tilde and forward slash in json-pointer",
        "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "$id": "https://json-schema.org/tests/content/draft2020-12/escape/0",
            "properties": {
                "~a/b": {"type": "number"}
            }
        },
        "tests": [
            {
                "description": "incorrect type must be reported, but a message is not required",
                "data": {"~a/b": "foobar"},
                "output": {
                    "basic": {
                        "$id": "https://json-schema.org/tests/content/draft2020-12/escape/0/tests/0/basic",
                        "$ref": "/draft/2020-12/output/schema",
                        "properties": {
                            "errors": {
                                "contains": {
                                    "properties": {
                                        "keywordLocation": {"const": "/properties/~0a~1b/type"},
                                        "absoluteKeywordLocation": {"const": "https://json-schema.org/tests/content/draft2020-12/escape/0#/properties/~0a~1b/type"},
                                        "instanceLocation": {"const": "/~0a~1b"},
                                        "annotation": false
                                    },
                                    "required": ["keywordLocation", "instanceLocation"]
                                }
                            }
                        },
                        "required": ["errors"]
                    }
                }
            }
        ]
    }
]