Skip to content

Commit 60a9ad3

Browse files
committed
testcase for #65
1 parent 36b7d3f commit 60a9ad3

File tree

2 files changed

+80
-0
lines changed

2 files changed

+80
-0
lines changed
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"required": [
3+
"arrayOfObjs",
4+
"AnotherArrayOfObjs"
5+
],
6+
"properties": {
7+
"arrayOfObjs": {
8+
"type": "array",
9+
"items": {
10+
"type": "object",
11+
"properties": {
12+
"ipRanges": {
13+
"type": "array",
14+
"minItems": 1,
15+
"items": {
16+
"enum": [
17+
"testString"
18+
]
19+
}
20+
},
21+
"NumberObj": {
22+
"type": "number",
23+
"maximum": -1
24+
}
25+
}
26+
}
27+
},
28+
"AnotherArrayOfObjs": {
29+
"type": "array",
30+
"items": {
31+
"type": "object",
32+
"properties": {
33+
"StringArrayObj": {
34+
"type": "array",
35+
"minItems": 1,
36+
"items": {
37+
"type": "string",
38+
"enum": [
39+
"testString"
40+
]
41+
},
42+
"NumberObj": {
43+
"type": "number",
44+
"maximum": -1
45+
}
46+
}
47+
}
48+
}
49+
}
50+
}
51+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
3+
"objectArray1": [
4+
{
5+
"numObj": 3,
6+
"StringArrayObj": [
7+
"NotATestString"
8+
]
9+
},
10+
{
11+
"numObj": 8,
12+
"StringArrayObj": [
13+
"NotATestString1",
14+
"NotATestString2",
15+
"NotATestString3"
16+
]
17+
},
18+
{
19+
"numObj": 4,
20+
"numObj2": 43,
21+
"StringArrayObj": [
22+
"NotATestString5",
23+
"NotATestString6"
24+
]
25+
}
26+
],
27+
"objectArray2": []
28+
}
29+

0 commit comments

Comments
 (0)