-
-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4557f5d
commit 0e431c6
Showing
6 changed files
with
29 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
[ | ||
{ | ||
"description": "Location-independent identifier with base URI change in subschema", | ||
"description": "same $anchor with different base uri", | ||
"schema": { | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "http://localhost:1234/draft2019-09/root", | ||
"$ref": "http://localhost:1234/draft2019-09/nested.json#foo", | ||
"$id": "http://localhost:1234/draft2019-09/foobar", | ||
"$defs": { | ||
"A": { | ||
"$id": "nested.json", | ||
"$defs": { | ||
"B": { | ||
"$anchor": "foo", | ||
"type": "integer" | ||
"$id": "child1", | ||
"allOf": [ | ||
{ | ||
"$id": "child2", | ||
"$anchor": "my_anchor", | ||
"type": "number" | ||
}, | ||
{ | ||
"$anchor": "my_anchor", | ||
"type": "string" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"$ref": "child1#my_anchor" | ||
}, | ||
"tests": [ | ||
{ | ||
"data": 1, | ||
"description": "match", | ||
"description": "$ref resolves to /$defs/A/allOf/1", | ||
"data": "a", | ||
"valid": true | ||
} | ||
}/*, | ||
{ | ||
"description": "$ref does not resolve to /$defs/A/allOf/0", | ||
"data": 1, | ||
"valid": false | ||
}*/ | ||
] | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,5 @@ | ||
./jsonschema/JSON-Schema-Test-Suite/remotes/draft2019-09/nested.json | ||
Could not open ./jsonschema/JSON-Schema-Test-Suite/remotes/child1 for schema loading | ||
|
||
"$id": "http://localhost:1234/draft2019-09/root" | ||
"$ref": "http://localhost:1234/draft2019-09/nested.json#foo", | ||
|
||
|
||
Anchor | ||
|
||
"http://localhost:1234/draft2019-09/root" | ||
"http://localhost:1234/draft2019-09/root/nested.json" | ||
"http://localhost:1234/draft2019-09/root/nested.json#foo" | ||
"$id": "http://localhost:1234/draft2019-09/foobar" | ||
|
||
"$id": "child1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters