Skip to content

Commit 892120b

Browse files
committed
added test output
1 parent 14cbe88 commit 892120b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+33353
-790
lines changed

tests/draft2019-06/additionalItems.json

Lines changed: 465 additions & 9 deletions
Large diffs are not rendered by default.

tests/draft2019-06/additionalProperties.json

Lines changed: 731 additions & 15 deletions
Large diffs are not rendered by default.

tests/draft2019-06/allOf.json

Lines changed: 1569 additions & 20 deletions
Large diffs are not rendered by default.

tests/draft2019-06/anyOf.json

Lines changed: 1170 additions & 16 deletions
Large diffs are not rendered by default.

tests/draft2019-06/boolean_schema.json

Lines changed: 415 additions & 18 deletions
Large diffs are not rendered by default.

tests/draft2019-06/const.json

Lines changed: 371 additions & 12 deletions
Large diffs are not rendered by default.

tests/draft2019-06/contains.json

Lines changed: 852 additions & 13 deletions
Large diffs are not rendered by default.

tests/draft2019-06/default.json

Lines changed: 159 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,85 @@
66
{
77
"description": "valid when property is specified",
88
"data": {"foo": 13},
9-
"valid": true
9+
"valid": true,
10+
"output": {
11+
"basic": {
12+
"valid": true,
13+
"keywordLocation": "#/properties/foo/default",
14+
"instanceLocation": "#/foo",
15+
"keyword": "default"
16+
},
17+
"detailed": {
18+
"valid": true,
19+
"keywordLocation": "#/properties/foo/default",
20+
"instanceLocation": "#/foo",
21+
"keyword": "default"
22+
},
23+
"verbose": {
24+
"valid": true,
25+
"keywordLocation": "#",
26+
"instanceLocation": "#",
27+
"annotations": [
28+
{
29+
"valid": true,
30+
"keywordLocation": "#/properties",
31+
"instanceLocation": "#",
32+
"keyword": "properties",
33+
"annotations": [
34+
{
35+
"valid": true,
36+
"keywordLocation": "#/properties/foo",
37+
"instanceLocation": "#/foo",
38+
"annotations": [
39+
{
40+
"valid": true,
41+
"keywordLocation": "#/properties/foo/type",
42+
"instanceLocation": "#/foo",
43+
"keyword": "type"
44+
},
45+
{
46+
"valid": true,
47+
"keywordLocation": "#/properties/foo/default",
48+
"instanceLocation": "#/foo",
49+
"keyword": "default"
50+
}
51+
]
52+
}
53+
]
54+
}
55+
]
56+
}
57+
}
1058
},
1159
{
1260
"description": "still valid when the invalid default is used",
1361
"data": {},
14-
"valid": true
62+
"valid": true,
63+
"output": {
64+
"basic": {
65+
"valid": true,
66+
"keywordLocation": "#",
67+
"instanceLocation": "#"
68+
},
69+
"detailed": {
70+
"valid": true,
71+
"keywordLocation": "#",
72+
"instanceLocation": "#"
73+
},
74+
"verbose": {
75+
"valid": true,
76+
"keywordLocation": "#",
77+
"instanceLocation": "#",
78+
"annotations": [
79+
{
80+
"valid": true,
81+
"keywordLocation": "#/properties",
82+
"instanceLocation": "#",
83+
"keyword": "properties"
84+
}
85+
]
86+
}
87+
}
1588
}
1689
]
1790
},
@@ -26,12 +99,94 @@
2699
{
27100
"description": "valid when property is specified",
28101
"data": {"bar": "good"},
29-
"valid": true
102+
"valid": true,
103+
"output": {
104+
"basic": {
105+
"valid": true,
106+
"keywordLocation": "#/properties/bar/default",
107+
"instanceLocation": "#/bar",
108+
"keyword": "default",
109+
"annotation": "bad"
110+
},
111+
"detailed": {
112+
"valid": true,
113+
"keywordLocation": "#/properties/bar/default",
114+
"instanceLocation": "#/bar",
115+
"keyword": "default",
116+
"annotation": "bad"
117+
},
118+
"verbose": {
119+
"valid": true,
120+
"keywordLocation": "#",
121+
"instanceLocation": "#",
122+
"annotations": [
123+
{
124+
"valid": true,
125+
"keywordLocation": "#/properties",
126+
"instanceLocation": "#",
127+
"keyword": "properties",
128+
"annotations": [
129+
{
130+
"valid": true,
131+
"keywordLocation": "#/properties/bar",
132+
"instanceLocation": "#/bar",
133+
"annotations": [
134+
{
135+
"valid": true,
136+
"keywordLocation": "#/properties/bar/type",
137+
"instanceLocation": "#/bar",
138+
"keyword": "type"
139+
},
140+
{
141+
"valid": true,
142+
"keywordLocation": "#/properties/bar/minLength",
143+
"instanceLocation": "#/bar",
144+
"keyword": "minLength"
145+
},
146+
{
147+
"valid": true,
148+
"keywordLocation": "#/properties/bar/default",
149+
"instanceLocation": "#/bar",
150+
"keyword": "default",
151+
"annotation": "bad"
152+
}
153+
]
154+
}
155+
]
156+
}
157+
]
158+
}
159+
}
30160
},
31161
{
32162
"description": "still valid when the invalid default is used",
33163
"data": {},
34-
"valid": true
164+
"valid": true,
165+
"output": {
166+
"basic": {
167+
"valid": true,
168+
"keywordLocation": "#",
169+
"instanceLocation": "#"
170+
},
171+
"detailed": {
172+
"valid": true,
173+
"keywordLocation": "#",
174+
"instanceLocation": "#"
175+
},
176+
"verbose": {
177+
"valid": true,
178+
"keywordLocation": "#",
179+
"instanceLocation": "#",
180+
"annotations": [
181+
{
182+
"valid": true,
183+
"keywordLocation": "#/properties",
184+
"instanceLocation": "#",
185+
"keyword": "properties"
186+
}
187+
]
188+
}
189+
}
35190
}
36191
]
37192
}

0 commit comments

Comments
 (0)