xref: /aosp_15_r20/external/json-schema-validator/src/test/resources/schema/issue313-2019-09.json (revision 78c4dd6aa35290980cdcd1623a7e337e8d021c7c)
1{
2  "$schema": "https://json-schema.org/draft/2019-09/schema",
3  "$id": "https://json-schema.org/draft/2019-09/schema",
4  "$vocabulary": {
5    "https://json-schema.org/draft/2019-09/vocab/core": true,
6    "https://json-schema.org/draft/2019-09/vocab/applicator": true,
7    "https://json-schema.org/draft/2019-09/vocab/validation": true,
8    "https://json-schema.org/draft/2019-09/vocab/meta-data": true,
9    "https://json-schema.org/draft/2019-09/vocab/format": false,
10    "https://json-schema.org/draft/2019-09/vocab/content": true
11  },
12  "$recursiveAnchor": true,
13  "title": "Core and Validation specifications meta-schema",
14  "allOf": [
15    {"$ref": "meta/core"},
16    {"$ref": "meta/applicator"},
17    {"$ref": "meta/validation"},
18    {"$ref": "meta/meta-data"},
19    {"$ref": "meta/format"},
20    {"$ref": "meta/content"}
21  ],
22  "type": ["object", "boolean"],
23  "properties": {
24    "definitions": {
25      "$comment": "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
26      "type": "object",
27      "additionalProperties": { "$recursiveRef": "#" },
28      "default": {}
29    },
30    "dependencies": {
31      "$comment": "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
32      "type": "object",
33      "additionalProperties": {
34        "anyOf": [
35          { "$recursiveRef": "#" },
36          { "$ref": "meta/validation#/$defs/stringArray" }
37        ]
38      }
39    }
40  }
41}
42