Skip to content

Commit 25836f7

Browse files
committed
update draft-06 tests: "id" -> "$id"
1 parent 671bad6 commit 25836f7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

tests/draft6/ref.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
{
245245
"description": "Recursive references between schemas",
246246
"schema": {
247-
"id": "http://localhost:1234/tree",
247+
"$id": "http://localhost:1234/tree",
248248
"description": "tree of nodes",
249249
"type": "object",
250250
"properties": {
@@ -257,7 +257,7 @@
257257
"required": ["meta", "nodes"],
258258
"definitions": {
259259
"node": {
260-
"id": "http://localhost:1234/node",
260+
"$id": "http://localhost:1234/node",
261261
"description": "node",
262262
"type": "object",
263263
"properties": {

tests/draft6/refRemote.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -74,14 +74,14 @@
7474
{
7575
"description": "base URI change - change folder",
7676
"schema": {
77-
"id": "http://localhost:1234/scope_change_defs1.json",
77+
"$id": "http://localhost:1234/scope_change_defs1.json",
7878
"type" : "object",
7979
"properties": {
8080
"list": {"$ref": "#/definitions/baz"}
8181
},
8282
"definitions": {
8383
"baz": {
84-
"id": "folder/",
84+
"$id": "folder/",
8585
"type": "array",
8686
"items": {"$ref": "folderInteger.json"}
8787
}
@@ -103,14 +103,14 @@
103103
{
104104
"description": "base URI change - change folder in subschema",
105105
"schema": {
106-
"id": "http://localhost:1234/scope_change_defs2.json",
106+
"$id": "http://localhost:1234/scope_change_defs2.json",
107107
"type" : "object",
108108
"properties": {
109109
"list": {"$ref": "#/definitions/baz/definitions/bar"}
110110
},
111111
"definitions": {
112112
"baz": {
113-
"id": "folder/",
113+
"$id": "folder/",
114114
"definitions": {
115115
"bar": {
116116
"type": "array",
@@ -136,7 +136,7 @@
136136
{
137137
"description": "root ref in remote ref",
138138
"schema": {
139-
"id": "http://localhost:1234/object",
139+
"$id": "http://localhost:1234/object",
140140
"type": "object",
141141
"properties": {
142142
"name": {"$ref": "name.json#/definitions/orNull"}

0 commit comments

Comments
 (0)