Skip to content

Commit fcc2734

Browse files
committed
adding reproduction test for #225
1 parent 1b4b699 commit fcc2734

File tree

2 files changed

+46
-0
lines changed

2 files changed

+46
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"id": "https://example.com/arrays.schema.json",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"description": "A representation of a person, company, organization, or place",
5+
"type": "object",
6+
"properties": {
7+
"fruits": {
8+
"type": "array",
9+
"items": {
10+
"type": "string"
11+
}
12+
},
13+
"vegetables": {
14+
"type": "array",
15+
"items": { "$ref": "#/definitions/veggie" }
16+
}
17+
},
18+
"definitions": {
19+
"veggie": {
20+
"type": "object",
21+
"required": [ "veggieName", "veggieLike" ],
22+
"properties": {
23+
"veggieName": {
24+
"type": "string",
25+
"description": "The name of the vegetable."
26+
},
27+
"veggieLike": {
28+
"type": "boolean",
29+
"description": "Do I like this vegetable?"
30+
}
31+
}
32+
}
33+
}
34+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"fruits": [ "apple", "orange", "pear" ],
3+
"vegetables": [
4+
{
5+
"veggieName": "potato"
6+
},
7+
{
8+
"veggieName": "broccoli",
9+
"veggieLike": false
10+
}
11+
]
12+
}

0 commit comments

Comments
 (0)