Debian Codegraph @

t/additional-tests-draft2019-09/vocabulary.json

raw
1 [
2 {
3 "description": "valid $vocabulary",
4 "schema": {
5 "$id": "https://mymetaschema",
6 "$vocabulary": {
7 "https://json-schema.org/draft/2019-09/vocab/core": true,
8 "https://foo.com": false
9 }
10 },
11 "tests": [
12 {
13 "description": "a valid $vocabulary value",
14 "data": 1,
15 "valid": true
16 }
17 ]
18 },
19 {
20 "description": "invalid $vocabulary (wrong specification version), but not until we evaluate with this metaschema",
21 "schema": {
22 "$id": "https://mymetaschema2",
23 "$vocabulary": {
24 "https://json-schema.org/draft/2020-12/vocab/core": true
25 }
26 },
27 "tests": [
28 {
29 "description": "invalid $vocabulary (wrong specification version): register this metaschema",
30 "data": 1,
31 "valid": true
32 }
33 ]
34 },
35 {
36 "description": "use schema (invalid $vocabulary) as a metaschema",
37 "schema": {
38 "$id": "https://mychema2",
39 "$schema": "https://mymetaschema2"
40 },
41 "tests": [
42 {
43 "description": "invalid $vocabulary value: wrong specification version",
44 "data": 1,
45 "valid": false
46 }
47 ]
48 },
49 {
50 "description": "invalid $vocabulary (unknown URI), but not until we evaluate with this metaschema",
51 "schema": {
52 "$id": "https://mymetaschema3",
53 "$vocabulary": {
54 "https://json-schema.org/draft/2019-09/vocab/core": true,
55 "https://foo.com": true
56 }
57 },
58 "tests": [
59 {
60 "description": "invalid $vocabulary (unknown URI): register this metaschema",
61 "data": 1,
62 "valid": true
63 }
64 ]
65 },
66 {
67 "description": "use schema (unknown URI) as a metaschema",
68 "schema": {
69 "$id": "https://myschema3",
70 "$schema": "https://mymetaschema3"
71 },
72 "tests": [
73 {
74 "description": "invalid $vocabulary value: unknown URI",
75 "data": 1,
76 "valid": false
77 }
78 ]
79 }
80 ]