Skip to content

Commit 8f90b95

Browse files
committed
adding reprodcution test for issue 246
1 parent b16dd24 commit 8f90b95

File tree

3 files changed

+51
-0
lines changed

3 files changed

+51
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"schemaLocation": "#",
3+
"pointerToViolation": "#",
4+
"causingExceptions": [
5+
{
6+
"pointerToViolation": "#",
7+
"causingExceptions": [],
8+
"keyword": "type",
9+
"message": "expected: null, found: JSONArray"
10+
},
11+
{
12+
"schemaLocation": "#/items",
13+
"pointerToViolation": "#/3",
14+
"causingExceptions": [
15+
{
16+
"pointerToViolation": "#/3",
17+
"causingExceptions": [],
18+
"keyword": "enum",
19+
"message": "jibberish is not a valid enum value"
20+
}
21+
],
22+
"keyword": "allOf",
23+
"message": "#: only 1 subschema matches out of 2"
24+
}
25+
],
26+
"keyword": "anyOf",
27+
"message": "#: no subschema matched out of the total 2 subschemas"
28+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"uniqueItems": true,
3+
"type": [
4+
"array",
5+
"null"
6+
],
7+
"items": {
8+
"type": "string",
9+
"enum": [
10+
"Happy",
11+
"Sad",
12+
"Excited",
13+
"Angry"
14+
]
15+
}
16+
}
17+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
"Happy",
3+
"Sad",
4+
"Excited",
5+
"jibberish"
6+
]

0 commit comments

Comments
 (0)