Skip to content

Commit bc51361

Browse files
committed
improving the testcase for #182 a bit
1 parent 22d8145 commit bc51361

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"definitions": {
3+
"str": {
4+
"type": "string",
5+
"enum": [
6+
"valueC1",
7+
"valueC2"
8+
]
9+
}
10+
},
11+
"$ref": "#/definitions/str"
12+
}
13+
Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
{
2-
"$schema": "http://json-schema.org/draft-07/schema#",
3-
"type": "array",
4-
"items": {
5-
"oneOf": [
6-
{
7-
"$ref": "http://localhost:1234/schemaA.json#"
8-
},
9-
{
10-
"$ref": "http://localhost:1234/schemaB.json#"
11-
}
12-
]
13-
}
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "array",
4+
"items": {
5+
"$id": "http://localhost:1234/neverAccessed",
6+
"oneOf": [
7+
{
8+
"$ref": "http://localhost:1234/schemaA.json#"
9+
},
10+
{
11+
"$ref": "http://localhost:1234/schemaB.json#"
12+
},
13+
{
14+
"$ref": "schemaC.json"
15+
}
16+
]
17+
}
1418
}
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[
2-
"valueA1",
3-
"valueB1"
2+
"valueA1",
3+
"valueB1",
4+
"valueC1"
45
]

0 commit comments

Comments
 (0)