Skip to content

Commit 2a68cdd

Browse files
committed
updated some references to previous drafts; created new name remote for $defs
1 parent 19803ce commit 2a68cdd

File tree

4 files changed

+15
-4
lines changed

4 files changed

+15
-4
lines changed

remotes/name-defs.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$defs": {
3+
"orNull": {
4+
"anyOf": [
5+
{"type": "null"},
6+
{"$ref": "#"}
7+
]
8+
}
9+
},
10+
"type": "string"
11+
}

tests/draft2019-06/defs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[
22
{
33
"description": "valid definition",
4-
"schema": {"$ref": "http://json-schema.org/draft-07/schema#"},
4+
"schema": {"$ref": "http://json-schema.org/draft/2019-06/schema#"},
55
"tests": [
66
{
77
"description": "valid definition schema",
@@ -12,7 +12,7 @@
1212
},
1313
{
1414
"description": "invalid definition",
15-
"schema": {"$ref": "http://json-schema.org/draft-07/schema#"},
15+
"schema": {"$ref": "http://json-schema.org/draft/2019-06/schema#"},
1616
"tests": [
1717
{
1818
"description": "invalid definition schema",

tests/draft2019-06/ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
},
176176
{
177177
"description": "remote ref, containing refs itself",
178-
"schema": {"$ref": "http://json-schema.org/draft-07/schema#"},
178+
"schema": {"$ref": "http://json-schema.org/draft/2019-06/schema#"},
179179
"tests": [
180180
{
181181
"description": "remote ref valid",

tests/draft2019-06/refRemote.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"$id": "http://localhost:1234/object",
136136
"type": "object",
137137
"properties": {
138-
"name": {"$ref": "name.json#/$defs/orNull"}
138+
"name": {"$ref": "name-defs.json#/$defs/orNull"}
139139
}
140140
},
141141
"tests": [

0 commit comments

Comments
 (0)