Debian Codegraph @

share/tests/draft2020-12/defs.json

raw
1 [
2 {
3 "description": "validate definition against metaschema",
4 "schema": {
5 "$schema": "https://json-schema.org/draft/2020-12/schema",
6 "$ref": "https://json-schema.org/draft/2020-12/schema"
7 },
8 "tests": [
9 {
10 "description": "valid definition schema",
11 "data": {"$defs": {"foo": {"type": "integer"}}},
12 "valid": true
13 },
14 {
15 "description": "invalid definition schema",
16 "data": {"$defs": {"foo": {"type": 1}}},
17 "valid": false
18 }
19 ]
20 }
21 ]