Skip to content

Commit 76dae88

Browse files
authored
Merge pull request #640 from santhosh-tekuri/refRemote-anchor
test/refRemote: anchor within remote ref
2 parents cb82e23 + e39c6ea commit 76dae88

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed

tests/draft-next/refRemote.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@
3737
}
3838
]
3939
},
40+
{
41+
"description": "anchor within remote ref",
42+
"schema": {
43+
"$schema": "https://json-schema.org/draft/next/schema",
44+
"$ref": "http://localhost:1234/draft-next/locationIndependentIdentifier.json#foo"
45+
},
46+
"tests": [
47+
{
48+
"description": "remote anchor valid",
49+
"data": 1,
50+
"valid": true
51+
},
52+
{
53+
"description": "remote anchor invalid",
54+
"data": "a",
55+
"valid": false
56+
}
57+
]
58+
},
4059
{
4160
"description": "ref within remote ref",
4261
"schema": {

tests/draft2019-09/refRemote.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@
3737
}
3838
]
3939
},
40+
{
41+
"description": "anchor within remote ref",
42+
"schema": {
43+
"$schema": "https://json-schema.org/draft/2010-09/schema",
44+
"$ref": "http://localhost:1234/draft2019-09/locationIndependentIdentifier.json#foo"
45+
},
46+
"tests": [
47+
{
48+
"description": "remote anchor valid",
49+
"data": 1,
50+
"valid": true
51+
},
52+
{
53+
"description": "remote anchor invalid",
54+
"data": "a",
55+
"valid": false
56+
}
57+
]
58+
},
4059
{
4160
"description": "ref within remote ref",
4261
"schema": {

tests/draft2020-12/refRemote.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,25 @@
3737
}
3838
]
3939
},
40+
{
41+
"description": "anchor within remote ref",
42+
"schema": {
43+
"$schema": "https://json-schema.org/draft/2020-12/schema",
44+
"$ref": "http://localhost:1234/draft2020-12/locationIndependentIdentifier.json#foo"
45+
},
46+
"tests": [
47+
{
48+
"description": "remote anchor valid",
49+
"data": 1,
50+
"valid": true
51+
},
52+
{
53+
"description": "remote anchor invalid",
54+
"data": "a",
55+
"valid": false
56+
}
57+
]
58+
},
4059
{
4160
"description": "ref within remote ref",
4261
"schema": {

0 commit comments

Comments
 (0)