xref: /aosp_15_r20/external/json-schema-validator/src/test/resources/schema/ref-main-schema-resource.json (revision 78c4dd6aa35290980cdcd1623a7e337e8d021c7c)
1{
2    "$schema": "http://json-schema.org/draft-04/schema#",
3    "id": "https://www.example.org/driver",
4    "type": "object",
5    "required": [
6        "DriverProperties"
7    ],
8    "properties": {
9        "DriverProperties": {
10            "type": "object",
11            "properties": {
12                "CommonProperties": {
13                    "$ref": "common#/definitions/DriverProperties"
14                }
15            },
16            "required": [
17                "CommonProperties"
18            ],
19            "additionalProperties": false
20        }
21    },
22    "additionalProperties": false,
23    "definitions": {
24        "common": {
25            "$schema": "http://json-schema.org/draft-07/schema#",
26            "$id": "https://www.example.org/common",
27            "type": "object",
28            "additionalProperties": false,
29            "definitions": {
30                "DriverProperties": {
31                    "type": "object",
32                    "properties": {
33                        "field1": {
34                            "type": "string",
35                            "minLength": 1,
36                            "maxLength": 512
37                        },
38                        "field2": {
39                            "type": "string",
40                            "minLength": 1,
41                            "maxLength": 512
42                        }
43                    },
44                    "required": [
45                        "field1"
46                    ],
47                    "additionalProperties": false
48                }
49            }
50        }
51    }
52}