From c94b92aa3b5527fdb4d47eb23c59268a0a651a92 Mon Sep 17 00:00:00 2001 From: Matt Allan Date: Mon, 22 Aug 2016 10:43:22 -0400 Subject: [PATCH] Test change resolution scope with absolute reference --- tests/draft4/refRemote.json | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/tests/draft4/refRemote.json b/tests/draft4/refRemote.json index 4ca80473..0a466eec 100644 --- a/tests/draft4/refRemote.json +++ b/tests/draft4/refRemote.json @@ -70,5 +70,27 @@ "valid": false } ] + }, + { + "description": "change resolution scope with absolute reference", + "schema": { + "id": "http://localhost:1234/", + "items": { + "id": "http://localhost:1234/folder/", + "items": {"$ref": "folderInteger.json"} + } + }, + "tests": [ + { + "description": "changed scope ref valid", + "data": [[1]], + "valid": true + }, + { + "description": "changed scope ref invalid", + "data": [["a"]], + "valid": false + } + ] } ]