Skip to content

Commit 0015d52

Browse files
authored
Merge pull request #583 from santhosh-tekuri/defs
Replace '$defs' with 'definitions' in drafts 6,7
2 parents c4341bd + e14c68b commit 0015d52

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

tests/draft6/id.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{
5353
"description": "non-schema object containing a plain-name $id property",
5454
"schema": {
55-
"$defs": {
55+
"definitions": {
5656
"const_not_anchor": {
5757
"const": {
5858
"$id": "#not_a_real_anchor"
@@ -71,7 +71,7 @@
7171
}
7272
},
7373
{
74-
"$ref": "#/$defs/const_not_anchor"
74+
"$ref": "#/definitions/const_not_anchor"
7575
}
7676
]
7777
}
@@ -93,7 +93,7 @@
9393
{
9494
"description": "non-schema object containing an $id property",
9595
"schema": {
96-
"$defs": {
96+
"definitions": {
9797
"const_not_id": {
9898
"const": {
9999
"$id": "not_a_real_id"
@@ -112,7 +112,7 @@
112112
}
113113
},
114114
{
115-
"$ref": "#/$defs/const_not_id"
115+
"$ref": "#/definitions/const_not_id"
116116
}
117117
]
118118
}

tests/draft6/ref.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,9 +737,9 @@
737737
"schema": {
738738
"$id": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed",
739739
"properties": {
740-
"foo": {"$ref": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed#/$defs/bar"}
740+
"foo": {"$ref": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed#/definitions/bar"}
741741
},
742-
"$defs": {
742+
"definitions": {
743743
"bar": {"type": "string"}
744744
}
745745
},

tests/draft7/id.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
{
5353
"description": "non-schema object containing a plain-name $id property",
5454
"schema": {
55-
"$defs": {
55+
"definitions": {
5656
"const_not_anchor": {
5757
"const": {
5858
"$id": "#not_a_real_anchor"
@@ -64,7 +64,7 @@
6464
},
6565
"then": true,
6666
"else" : {
67-
"$ref": "#/$defs/const_not_anchor"
67+
"$ref": "#/definitions/const_not_anchor"
6868
}
6969
},
7070
"tests": [
@@ -83,7 +83,7 @@
8383
{
8484
"description": "non-schema object containing an $id property",
8585
"schema": {
86-
"$defs": {
86+
"definitions": {
8787
"const_not_id": {
8888
"const": {
8989
"$id": "not_a_real_id"
@@ -95,7 +95,7 @@
9595
},
9696
"then": true,
9797
"else" : {
98-
"$ref": "#/$defs/const_not_id"
98+
"$ref": "#/definitions/const_not_id"
9999
}
100100
},
101101
"tests": [

tests/draft7/ref.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,9 +773,9 @@
773773
"schema": {
774774
"$id": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed",
775775
"properties": {
776-
"foo": {"$ref": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed#/$defs/bar"}
776+
"foo": {"$ref": "urn:uuid:deadbeef-1234-0000-0000-4321feebdaed#/definitions/bar"}
777777
},
778-
"$defs": {
778+
"definitions": {
779779
"bar": {"type": "string"}
780780
}
781781
},

0 commit comments

Comments
 (0)