Skip to content

Commit 15d190c

Browse files
Add test for #182
1 parent 4e85cb1 commit 15d190c

File tree

4 files changed

+43
-0
lines changed

4 files changed

+43
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"definitions": {
3+
"str": {
4+
"type": "string",
5+
"enum": [
6+
"valueA1",
7+
"valueA2"
8+
]
9+
}
10+
},
11+
"$ref": "#/definitions/str"
12+
}
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+
"valueB1",
7+
"valueB2"
8+
]
9+
}
10+
},
11+
"$ref": "#/definitions/str"
12+
}
13+
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
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+
}
14+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[
2+
"valueA1",
3+
"valueB1"
4+
]

0 commit comments

Comments
 (0)