xref: /aosp_15_r20/external/json-schema-validator/src/test/suite/tests/draft4/definitions.json (revision 78c4dd6aa35290980cdcd1623a7e337e8d021c7c)
1[
2    {
3        "description": "validate definition against metaschema",
4        "schema": {"$ref": "http://json-schema.org/draft-04/schema#"},
5        "tests": [
6            {
7                "description": "valid definition schema",
8                "data": {
9                    "definitions": {
10                        "foo": {"type": "integer"}
11                    }
12                },
13                "valid": true
14            },
15            {
16                "description": "invalid definition schema",
17                "data": {
18                    "definitions": {
19                        "foo": {"type": 1}
20                    }
21                },
22                "valid": false
23            }
24        ]
25    }
26]
27