Debian Codegraph @

share/tests/draft4/definitions.json

raw
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 ]