Debian Codegraph @

t/additional-tests-draft7/badRef.json

raw
1 [
2 {
3 "description": "good references in schemas",
4 "schema": {
5 "if": false,
6 "then": {
7 "allOf": [
8 { "$ref": "foo/bar.json" },
9 { "$ref": "foo/bar.json#" },
10 { "$ref": "foo/bar.json#anchor" },
11 { "$ref": "foo/bar.json#/" },
12 { "$ref": "foo/bar.json#/foo" },
13 { "$ref": "foo/bar.json#/~1/foo" },
14 { "$recursiveRef": "foo/bar.json" },
15 { "$recursiveRef": "foo/bar.json#" },
16 { "$recursiveRef": "foo/bar.json#anchor" },
17 { "$recursiveRef": "foo/bar.json#/" },
18 { "$recursiveRef": "foo/bar.json#/foo" },
19 { "$recursiveRef": "foo/bar.json#/~1/foo" }
20 ]
21 }
22 },
23 "tests": [
24 {
25 "description": "this data is never used",
26 "data": "ignore",
27 "valid": true
28 }
29 ]
30 },
31 {
32 "description": "bad $ref in schema: not a valid anchor fragment",
33 "schema": {
34 "if": false,
35 "then": {
36 "$ref": "foo/bar.json#!!not-an-anchor"
37 }
38 },
39 "tests": [
40 {
41 "description": "this data is never used",
42 "data": "ignore",
43 "valid": false
44 }
45 ]
46 },
47 {
48 "description": "bad $ref in schema: not a valid json pointer fragment",
49 "schema": {
50 "if": false,
51 "then": {
52 "$ref": "foo/bar.json#/~foo"
53 }
54 },
55 "tests": [
56 {
57 "description": "this data is never used",
58 "data": "ignore",
59 "valid": false
60 }
61 ]
62 }
63 ]