xref: /aosp_15_r20/external/json-schema-validator/src/main/resources/draft/2020-12/schema (revision 78c4dd6aa35290980cdcd1623a7e337e8d021c7c)
1{
2    "$schema": "https://json-schema.org/draft/2020-12/schema",
3    "$id": "https://json-schema.org/draft/2020-12/schema",
4    "$vocabulary": {
5        "https://json-schema.org/draft/2020-12/vocab/core": true,
6        "https://json-schema.org/draft/2020-12/vocab/applicator": true,
7        "https://json-schema.org/draft/2020-12/vocab/unevaluated": true,
8        "https://json-schema.org/draft/2020-12/vocab/validation": true,
9        "https://json-schema.org/draft/2020-12/vocab/meta-data": true,
10        "https://json-schema.org/draft/2020-12/vocab/format-annotation": true,
11        "https://json-schema.org/draft/2020-12/vocab/content": true
12    },
13    "$dynamicAnchor": "meta",
14
15    "title": "Core and Validation specifications meta-schema",
16    "allOf": [
17        {"$ref": "meta/core"},
18        {"$ref": "meta/applicator"},
19        {"$ref": "meta/unevaluated"},
20        {"$ref": "meta/validation"},
21        {"$ref": "meta/meta-data"},
22        {"$ref": "meta/format-annotation"},
23        {"$ref": "meta/content"}
24    ],
25    "type": ["object", "boolean"],
26    "$comment": "This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",
27    "properties": {
28        "definitions": {
29            "$comment": "\"definitions\" has been replaced by \"$defs\".",
30            "type": "object",
31            "additionalProperties": { "$dynamicRef": "#meta" },
32            "deprecated": true,
33            "default": {}
34        },
35        "dependencies": {
36            "$comment": "\"dependencies\" has been split and replaced by \"dependentSchemas\" and \"dependentRequired\" in order to serve their differing semantics.",
37            "type": "object",
38            "additionalProperties": {
39                "anyOf": [
40                    { "$dynamicRef": "#meta" },
41                    { "$ref": "meta/validation#/$defs/stringArray" }
42                ]
43            },
44            "deprecated": true,
45            "default": {}
46        },
47        "$recursiveAnchor": {
48            "$comment": "\"$recursiveAnchor\" has been replaced by \"$dynamicAnchor\".",
49            "$ref": "meta/core#/$defs/anchorString",
50            "deprecated": true
51        },
52        "$recursiveRef": {
53            "$comment": "\"$recursiveRef\" has been replaced by \"$dynamicRef\".",
54            "$ref": "meta/core#/$defs/uriReferenceString",
55            "deprecated": true
56        }
57    }
58}
59