Skip to content

Commit cd9a4b9

Browse files
committed
change schemas with duplicate URIs http://localhost:1234/folder/
1 parent 43e190e commit cd9a4b9

File tree

9 files changed

+24
-16
lines changed

9 files changed

+24
-16
lines changed

bin/jsonschema_suite

+3-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ REMOTES = {
5151
u"refToInteger": {u"$ref": u"#/$defs/integer"},
5252
}
5353
},
54-
"folder/folderInteger.json": {u"type": u"integer"}
54+
"baseUriChange/folderInteger.json": {u"type": u"integer"},
55+
"baseUriChangeFolder/folderInteger.json": {u"type": u"integer"},
56+
"baseUriChangeFolderInSubschema/folderInteger.json": {u"type": u"integer"},
5557
}
5658
REMOTES_DIR = os.path.join(ROOT_DIR, "remotes")
5759

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "integer"
3+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"type": "integer"
3+
}

tests/draft2019-09/refRemote.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schema": {
5555
"$id": "http://localhost:1234/",
5656
"items": {
57-
"$id": "folder/",
57+
"$id": "baseUriChange/",
5858
"items": {"$ref": "folderInteger.json"}
5959
}
6060
},
@@ -76,10 +76,10 @@
7676
"schema": {
7777
"$id": "http://localhost:1234/scope_change_defs1.json",
7878
"type" : "object",
79-
"properties": {"list": {"$ref": "folder/"}},
79+
"properties": {"list": {"$ref": "baseUriChangeFolder/"}},
8080
"$defs": {
8181
"baz": {
82-
"$id": "folder/",
82+
"$id": "baseUriChangeFolder/",
8383
"type": "array",
8484
"items": {"$ref": "folderInteger.json"}
8585
}
@@ -103,10 +103,10 @@
103103
"schema": {
104104
"$id": "http://localhost:1234/scope_change_defs2.json",
105105
"type" : "object",
106-
"properties": {"list": {"$ref": "folder/#/$defs/bar"}},
106+
"properties": {"list": {"$ref": "baseUriChangeFolderInSubschema/#/$defs/bar"}},
107107
"$defs": {
108108
"baz": {
109-
"$id": "folder/",
109+
"$id": "baseUriChangeFolderInSubschema/",
110110
"$defs": {
111111
"bar": {
112112
"type": "array",

tests/draft3/refRemote.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schema": {
5555
"id": "http://localhost:1234/",
5656
"items": {
57-
"id": "folder/",
57+
"id": "baseUriChange/",
5858
"items": {"$ref": "folderInteger.json"}
5959
}
6060
},

tests/draft4/refRemote.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schema": {
5555
"id": "http://localhost:1234/",
5656
"items": {
57-
"id": "folder/",
57+
"id": "baseUriChange/",
5858
"items": {"$ref": "folderInteger.json"}
5959
}
6060
},
@@ -81,7 +81,7 @@
8181
},
8282
"definitions": {
8383
"baz": {
84-
"id": "folder/",
84+
"id": "baseUriChangeFolder/",
8585
"type": "array",
8686
"items": {"$ref": "folderInteger.json"}
8787
}
@@ -110,7 +110,7 @@
110110
},
111111
"definitions": {
112112
"baz": {
113-
"id": "folder/",
113+
"id": "baseUriChangeFolderInSubschema/",
114114
"definitions": {
115115
"bar": {
116116
"type": "array",

tests/draft6/refRemote.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schema": {
5555
"$id": "http://localhost:1234/",
5656
"items": {
57-
"$id": "folder/",
57+
"$id": "baseUriChange/",
5858
"items": {"$ref": "folderInteger.json"}
5959
}
6060
},
@@ -81,7 +81,7 @@
8181
},
8282
"definitions": {
8383
"baz": {
84-
"$id": "folder/",
84+
"$id": "baseUriChangeFolder/",
8585
"type": "array",
8686
"items": {"$ref": "folderInteger.json"}
8787
}
@@ -110,7 +110,7 @@
110110
},
111111
"definitions": {
112112
"baz": {
113-
"$id": "folder/",
113+
"$id": "baseUriChangeFolderInSubschema/",
114114
"definitions": {
115115
"bar": {
116116
"type": "array",

tests/draft7/refRemote.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"schema": {
5555
"$id": "http://localhost:1234/",
5656
"items": {
57-
"$id": "folder/",
57+
"$id": "baseUriChange/",
5858
"items": {"$ref": "folderInteger.json"}
5959
}
6060
},
@@ -81,7 +81,7 @@
8181
},
8282
"definitions": {
8383
"baz": {
84-
"$id": "folder/",
84+
"$id": "baseUriChangeFolder/",
8585
"type": "array",
8686
"items": {"$ref": "folderInteger.json"}
8787
}
@@ -110,7 +110,7 @@
110110
},
111111
"definitions": {
112112
"baz": {
113-
"$id": "folder/",
113+
"$id": "baseUriChangeFolderInSubschema/",
114114
"definitions": {
115115
"bar": {
116116
"type": "array",

0 commit comments

Comments
 (0)