Skip to content

Commit 7baaab0

Browse files
committed
Add end-to-end test
1 parent 06bc67b commit 7baaab0

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed

test/input-output/complex/input.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"address": {
3+
"streetAddress": "21 2nd Street",
4+
"city": "New York"
5+
},
6+
"phoneNumber": [
7+
{
8+
"location": "home",
9+
"code": 44
10+
}
11+
]
12+
}

test/input-output/complex/output.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"type": "object",
3+
"properties": {
4+
"address": {
5+
"type": "object",
6+
"properties": {
7+
"streetAddress": {
8+
"type": "string"
9+
},
10+
"city": {
11+
"type": "string"
12+
}
13+
},
14+
"required": [
15+
"streetAddress",
16+
"city"
17+
]
18+
},
19+
"phoneNumber": {
20+
"type": "array",
21+
"items": {
22+
"type": "object",
23+
"properties": {
24+
"location": {
25+
"type": "string"
26+
},
27+
"code": {
28+
"type": "integer"
29+
}
30+
}
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)