From 96bc1ec560198f7b087ecd60e2f221389a10a0e4 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Tue, 8 Oct 2024 10:17:39 -0700 Subject: [PATCH] move draft-specific files to the dedicated dir for its draft ..otherwise, draft-specific test suites won't know to skip adding the file --- .../locationIndependentIdentifier.json} | 0 .../locationIndependentIdentifier.json} | 0 remotes/draft7/locationIndependentIdentifier.json | 11 +++++++++++ tests/draft4/refRemote.json | 2 +- tests/draft6/refRemote.json | 2 +- tests/draft7/refRemote.json | 2 +- 6 files changed, 14 insertions(+), 3 deletions(-) rename remotes/{locationIndependentIdentifierDraft4.json => draft4/locationIndependentIdentifier.json} (100%) rename remotes/{locationIndependentIdentifierPre2019.json => draft6/locationIndependentIdentifier.json} (100%) create mode 100644 remotes/draft7/locationIndependentIdentifier.json diff --git a/remotes/locationIndependentIdentifierDraft4.json b/remotes/draft4/locationIndependentIdentifier.json similarity index 100% rename from remotes/locationIndependentIdentifierDraft4.json rename to remotes/draft4/locationIndependentIdentifier.json diff --git a/remotes/locationIndependentIdentifierPre2019.json b/remotes/draft6/locationIndependentIdentifier.json similarity index 100% rename from remotes/locationIndependentIdentifierPre2019.json rename to remotes/draft6/locationIndependentIdentifier.json diff --git a/remotes/draft7/locationIndependentIdentifier.json b/remotes/draft7/locationIndependentIdentifier.json new file mode 100644 index 00000000..e72815cd --- /dev/null +++ b/remotes/draft7/locationIndependentIdentifier.json @@ -0,0 +1,11 @@ +{ + "definitions": { + "refToInteger": { + "$ref": "#foo" + }, + "A": { + "$id": "#foo", + "type": "integer" + } + } +} diff --git a/tests/draft4/refRemote.json b/tests/draft4/refRemote.json index 64a618b8..42c72149 100644 --- a/tests/draft4/refRemote.json +++ b/tests/draft4/refRemote.json @@ -171,7 +171,7 @@ { "description": "Location-independent identifier in remote ref", "schema": { - "$ref": "http://localhost:1234/locationIndependentIdentifierDraft4.json#/definitions/refToInteger" + "$ref": "http://localhost:1234/draft4/locationIndependentIdentifier.json#/definitions/refToInteger" }, "tests": [ { diff --git a/tests/draft6/refRemote.json b/tests/draft6/refRemote.json index 28459c4a..cf0eb797 100644 --- a/tests/draft6/refRemote.json +++ b/tests/draft6/refRemote.json @@ -196,7 +196,7 @@ { "description": "Location-independent identifier in remote ref", "schema": { - "$ref": "http://localhost:1234/locationIndependentIdentifierPre2019.json#/definitions/refToInteger" + "$ref": "http://localhost:1234/draft6/locationIndependentIdentifier.json#/definitions/refToInteger" }, "tests": [ { diff --git a/tests/draft7/refRemote.json b/tests/draft7/refRemote.json index 22185d67..066fc6e1 100644 --- a/tests/draft7/refRemote.json +++ b/tests/draft7/refRemote.json @@ -196,7 +196,7 @@ { "description": "Location-independent identifier in remote ref", "schema": { - "$ref": "http://localhost:1234/locationIndependentIdentifierPre2019.json#/definitions/refToInteger" + "$ref": "http://localhost:1234/draft7/locationIndependentIdentifier.json#/definitions/refToInteger" }, "tests": [ {