summaryrefslogtreecommitdiff
path: root/json/tests/draft-next/refRemote.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft-next/refRemote.json')
-rw-r--r--json/tests/draft-next/refRemote.json34
1 files changed, 24 insertions, 10 deletions
diff --git a/json/tests/draft-next/refRemote.json b/json/tests/draft-next/refRemote.json
index a844039..43070a8 100644
--- a/json/tests/draft-next/refRemote.json
+++ b/json/tests/draft-next/refRemote.json
@@ -1,7 +1,10 @@
[
{
"description": "remote ref",
- "schema": {"$ref": "http://localhost:1234/integer.json"},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$ref": "http://localhost:1234/draft-next/integer.json"
+ },
"tests": [
{
"description": "remote ref valid",
@@ -17,7 +20,10 @@
},
{
"description": "fragment within remote ref",
- "schema": {"$ref": "http://localhost:1234/subSchemas-defs.json#/$defs/integer"},
+ "schema": {
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$ref": "http://localhost:1234/draft-next/subSchemas-defs.json#/$defs/integer"
+ },
"tests": [
{
"description": "remote fragment valid",
@@ -34,7 +40,8 @@
{
"description": "ref within remote ref",
"schema": {
- "$ref": "http://localhost:1234/subSchemas-defs.json#/$defs/refToInteger"
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$ref": "http://localhost:1234/draft-next/subSchemas-defs.json#/$defs/refToInteger"
},
"tests": [
{
@@ -52,7 +59,8 @@
{
"description": "base URI change",
"schema": {
- "$id": "http://localhost:1234/",
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$id": "http://localhost:1234/draft-next/",
"items": {
"$id": "baseUriChange/",
"items": {"$ref": "folderInteger.json"}
@@ -74,7 +82,8 @@
{
"description": "base URI change - change folder",
"schema": {
- "$id": "http://localhost:1234/scope_change_defs1.json",
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$id": "http://localhost:1234/draft-next/scope_change_defs1.json",
"type" : "object",
"properties": {"list": {"$ref": "baseUriChangeFolder/"}},
"$defs": {
@@ -101,7 +110,8 @@
{
"description": "base URI change - change folder in subschema",
"schema": {
- "$id": "http://localhost:1234/scope_change_defs2.json",
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$id": "http://localhost:1234/draft-next/scope_change_defs2.json",
"type" : "object",
"properties": {"list": {"$ref": "baseUriChangeFolderInSubschema/#/$defs/bar"}},
"$defs": {
@@ -132,7 +142,8 @@
{
"description": "root ref in remote ref",
"schema": {
- "$id": "http://localhost:1234/object",
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$id": "http://localhost:1234/draft-next/object",
"type": "object",
"properties": {
"name": {"$ref": "name-defs.json#/$defs/orNull"}
@@ -167,7 +178,8 @@
{
"description": "remote ref with ref to defs",
"schema": {
- "$id": "http://localhost:1234/schema-remote-ref-ref-defs1.json",
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$id": "http://localhost:1234/draft-next/schema-remote-ref-ref-defs1.json",
"$ref": "ref-and-defs.json"
},
"tests": [
@@ -190,7 +202,8 @@
{
"description": "Location-independent identifier in remote ref",
"schema": {
- "$ref": "http://localhost:1234/locationIndependentIdentifier.json#/$defs/refToInteger"
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$ref": "http://localhost:1234/draft-next/locationIndependentIdentifier.json#/$defs/refToInteger"
},
"tests": [
{
@@ -208,7 +221,8 @@
{
"description": "retrieved nested refs resolve relative to their URI not $id",
"schema": {
- "$id": "http://localhost:1234/some-id",
+ "$schema": "https://json-schema.org/draft/next/schema",
+ "$id": "http://localhost:1234/draft-next/some-id",
"properties": {
"name": {"$ref": "nested/foo-ref-string.json"}
}