summaryrefslogtreecommitdiff
path: root/src/test/suite/output-tests/draft-next/content/readOnly.json
blob: d387d932467a2d2bcecbe233198fc2eda5131911 (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
40
41
[
    {
        "description": "readOnly generates its value as an annotation",
        "schema": {
            "$schema": "https://json-schema.org/draft/next/schema",
            "$id": "https://json-schema.org/tests/content/draft-next/readOnly/0",
            "readOnly": true
        },
        "tests": [
            {
                "description": "readOnly is true",
                "data": 1,
                "output": {
                    "list": {
                        "$id": "https://json-schema.org/tests/content/draft-next/readOnly/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/readOnly/0"},
                                        "instanceLocation": {"const": ""},
                                        "annotations": {
                                            "properties": {
                                                "readOnly": {"const": true}
                                            },
                                            "required": ["readOnly"]
                                        }
                                    },
                                    "required": ["evaluationPath", "schemaLocation", "instanceLocation", "annotations"]
                                }
                            }
                        },
                        "required": ["details"]
                    }
                }
            }
        ]
    }
]