Skip to content

Commit 882688c

Browse files
jgraettingerJulian
authored andcommitted
back out subSchemas.json changes, and instead add subSchemas-defs.json
1 parent 0d6e164 commit 882688c

File tree

4 files changed

+21
-9
lines changed

4 files changed

+21
-9
lines changed

bin/jsonschema_suite

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ REMOTES = {
4242
},
4343
},
4444
"subSchemas.json": {
45+
u"integer": {u"type": u"integer"},
46+
u"refToInteger": {u"$ref": u"#/integer"},
47+
},
48+
"subSchemas-defs.json": {
4549
u"$defs": {
4650
u"integer": {u"type": u"integer"},
4751
u"refToInteger": {u"$ref": u"#/$defs/integer"},

remotes/subSchemas-defs.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$defs": {
3+
"integer": {
4+
"type": "integer"
5+
},
6+
"refToInteger": {
7+
"$ref": "#/$defs/integer"
8+
}
9+
}
10+
}

remotes/subSchemas.json

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
2-
"$defs": {
3-
"integer": {
4-
"type": "integer"
5-
},
6-
"refToInteger": {
7-
"$ref": "#/$defs/integer"
8-
}
2+
"integer": {
3+
"type": "integer"
4+
},
5+
"refToInteger": {
6+
"$ref": "#/integer"
97
}
108
}

tests/draft2019-09/refRemote.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
{
1919
"description": "fragment within remote ref",
20-
"schema": {"$ref": "http://localhost:1234/subSchemas.json#/$defs/integer"},
20+
"schema": {"$ref": "http://localhost:1234/subSchemas-defs.json#/$defs/integer"},
2121
"tests": [
2222
{
2323
"description": "remote fragment valid",
@@ -34,7 +34,7 @@
3434
{
3535
"description": "ref within remote ref",
3636
"schema": {
37-
"$ref": "http://localhost:1234/subSchemas.json#/$defs/refToInteger"
37+
"$ref": "http://localhost:1234/subSchemas-defs.json#/$defs/refToInteger"
3838
},
3939
"tests": [
4040
{

0 commit comments

Comments
 (0)