Skip to content

Commit d0df6d6

Browse files
committed
adding integ tests for oneOf handling in early failure mode
1 parent 45c8584 commit d0df6d6

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"oneOf": [
3+
{
4+
"properties": {
5+
"bar": {
6+
"type": "integer"
7+
}
8+
},
9+
"required": [
10+
"bar"
11+
]
12+
},
13+
{
14+
"properties": {
15+
"foo": {
16+
"type": "string"
17+
}
18+
},
19+
"required": [
20+
"foo"
21+
]
22+
}
23+
]
24+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"bar": "quux",
3+
"foo": 2
4+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"failEarly":true}

0 commit comments

Comments
 (0)