Skip to content

Commit 565084f

Browse files
committed
Added test for a draft 3 hyperschema using $ref on a link.
1 parent 470a8c6 commit 565084f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

json/tests/draft3/hyperschema.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"description": "Hyper Schema Test with ref",
4+
"schema": {
5+
"$ref": "http://json-schema.org/draft-03/hyper-schema#"
6+
},
7+
"tests": [
8+
{
9+
"description": "External ref should be valid",
10+
"data": {
11+
"$schema": "http://json-schema.org/draft-03/hyper-schema#",
12+
"links": [
13+
{
14+
"href": "{id}",
15+
"method": "POST",
16+
"rel": "create",
17+
"schema": {
18+
"$ref": "#"
19+
}
20+
}
21+
]
22+
},
23+
"valid": true
24+
}
25+
]
26+
}
27+
]

0 commit comments

Comments
 (0)