Skip to content

Commit c2b28e9

Browse files
committed
Forward port the just-added test to 2020 and draft-next.
1 parent 6409010 commit c2b28e9

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

tests/draft-next/refRemote.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,23 @@
186186
"valid": true
187187
}
188188
]
189+
},
190+
{
191+
"description": "Location-independent identifier in remote ref",
192+
"schema": {
193+
"$ref": "http://localhost:1234/locationIndependentIdentifier.json#/definitions/refToInteger"
194+
},
195+
"tests": [
196+
{
197+
"description": "integer is valid",
198+
"data": 1,
199+
"valid": true
200+
},
201+
{
202+
"description": "string is invalid",
203+
"data": "foo",
204+
"valid": false
205+
}
206+
]
189207
}
190208
]

tests/draft2020-12/refRemote.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,23 @@
186186
"valid": true
187187
}
188188
]
189+
},
190+
{
191+
"description": "Location-independent identifier in remote ref",
192+
"schema": {
193+
"$ref": "http://localhost:1234/locationIndependentIdentifier.json#/definitions/refToInteger"
194+
},
195+
"tests": [
196+
{
197+
"description": "integer is valid",
198+
"data": 1,
199+
"valid": true
200+
},
201+
{
202+
"description": "string is invalid",
203+
"data": "foo",
204+
"valid": false
205+
}
206+
]
189207
}
190208
]

0 commit comments

Comments
 (0)