Created
January 29, 2013 14:29
-
-
Save geraintluff/4664645 to your computer and use it in GitHub Desktop.
When using canonical addressing, these two schemas should behave *exactly* the same. Canonical addressing means that the use of "id" has *no* effect on schema lookup/dereferencing- so *neither* of these examples would have any effect on references to "http://example.com/other-schema#" anywhere else.
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
{ | |
"title": "Some schema", | |
"items": { | |
"id": "http://example.com/other-schema", | |
"type": "array", | |
"items": {"$ref": "#"} | |
} | |
} |
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
{ | |
"title": "Some schema", | |
"items": { | |
"type": "array", | |
"items": {"$ref": "http://example.com/other-schema#"} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment