Skip to content

Commit e44820e

Browse files
committed
Fix some remote categorization for easier dialect-specific loading
1 parent 29965c0 commit e44820e

8 files changed

Lines changed: 33 additions & 5 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$id": "http://localhost:1234/draft2019-09/integer.json",
3+
"$schema": "http://json-schema.org/draft-07/schema#",
4+
"dependentRequired": {
5+
"foo": ["bar"]
6+
}
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$id": "http://localhost:1234/draft2020-12/prefixItems.json",
3+
"$schema": "https://json-schema.org/draft/2020-12/schema",
4+
"prefixItems": [
5+
{"type": "string"}
6+
]
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$id": "http://localhost:1234/draft2020-12/ignore-prefixItems.json",
3+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4+
"prefixItems": [
5+
{"type": "string"}
6+
]
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$id": "http://localhost:1234/draft7/dependentRequired.json",
3+
"$schema": "https://json-schema.org/draft/2019-09/schema",
4+
"dependentRequired": {
5+
"foo": ["bar"]
6+
}
7+
}

tests/draft2019-09/optional/cross-draft.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2019-09/schema",
66
"type": "array",
7-
"$ref": "http://localhost:1234/draft2020-12/prefixItems.json"
7+
"$ref": "http://localhost:1234/draft2019-09/prefixItems.json"
88
},
99
"tests": [
1010
{
@@ -26,7 +26,7 @@
2626
"type": "object",
2727
"allOf": [
2828
{ "properties": { "foo": true } },
29-
{ "$ref": "http://localhost:1234/draft7/ignore-dependentRequired.json" }
29+
{ "$ref": "http://localhost:1234/draft2019-09/ignore-dependentRequired.json" }
3030
]
3131
},
3232
"tests": [

tests/draft2020-12/optional/cross-draft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"schema": {
55
"$schema": "https://json-schema.org/draft/2020-12/schema",
66
"type": "array",
7-
"$ref": "http://localhost:1234/draft2019-09/ignore-prefixItems.json"
7+
"$ref": "http://localhost:1234/draft2020-12/ignore-prefixItems.json"
88
},
99
"tests": [
1010
{

tests/draft7/optional/cross-draft.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "object",
66
"allOf": [
77
{ "properties": { "foo": true } },
8-
{ "$ref": "http://localhost:1234/draft2019-09/dependentRequired.json" }
8+
{ "$ref": "http://localhost:1234/draft7/dependentRequired.json" }
99
]
1010
},
1111
"tests": [

tests/v1/ref.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"description": "remote ref, containing refs itself",
186186
"schema": {
187187
"$schema": "https://json-schema.org/v1",
188-
"$ref": "http://localhost:1234/v1/ref-and-defs"
188+
"$ref": "http://localhost:1234/v1/ref-and-defs.json"
189189
},
190190
"tests": [
191191
{

0 commit comments

Comments
 (0)