Skip to content

Commit 9e7387d

Browse files
committed
Squashed 'json/' changes from 91ecacf60..0015d5242
0015d5242 Merge pull request #583 from santhosh-tekuri/defs e14c68bb4 Replace '$defs' with 'definitions' in drafts 6,7 c4341bd0a Merge pull request #582 from santhosh-tekuri/defs 4ae2c9b93 Replace '$defs' with 'definitions' in draft 6,7 git-subtree-dir: json git-subtree-split: 0015d5242d146248cb47850a08012b4829462d3b
1 parent b9ff8c4 commit 9e7387d

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
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: 3 additions & 3 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
},
@@ -763,7 +763,7 @@
763763
"properties": {
764764
"foo": {"$ref": "urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something"}
765765
},
766-
"$defs": {
766+
"definitions": {
767767
"bar": {
768768
"$id": "#something",
769769
"type": "string"

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: 3 additions & 3 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
},
@@ -799,7 +799,7 @@
799799
"properties": {
800800
"foo": {"$ref": "urn:uuid:deadbeef-1234-ff00-00ff-4321feebdaed#something"}
801801
},
802-
"$defs": {
802+
"definitions": {
803803
"bar": {
804804
"$id": "#something",
805805
"type": "string"

0 commit comments

Comments
 (0)