summaryrefslogtreecommitdiff
path: root/output-tests/draft-next/content/type.json
blob: e17f1f5301d8cc35723e2cb64b7579f0905f18c3 (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
39
[
    {
        "description": "incorrect type",
        "schema": {
            "$schema": "https://json-schema.org/draft/next/schema",
            "$id": "https://json-schema.org/tests/content/draft-next/type/0",
            "type": "string"
        },
        "tests": [
            {
                "description": "incorrect type must be reported, but a message is not required",
                "data": 1,
                "output": {
                    "list": {
                        "$id": "https://json-schema.org/tests/content/draft-next/type/0/tests/0/basic",
                        "$ref": "/draft/next/output/schema",
                        "properties": {
                            "details": {
                                "contains": {
                                    "properties": {
                                        "evaluationPath": {"const": ""},
                                        "schemaLocation": {"const": "https://json-schema.org/tests/content/draft-next/type/0"},
                                        "instanceLocation": {"const": ""},
                                        "annotations": false,
                                        "errors": {
                                            "required": ["type"]
                                        }
                                    },
                                    "required": ["evaluationPath", "schemaLocation", "instanceLocation"]
                                }
                            }
                        },
                        "required": ["details"]
                    }
                }
            }
        ]
    }
]