How does a JSON pointer relate to the actual retrieval of a schema

49 views
Skip to first unread message

Yury Skanavy

unread,
Feb 26, 2016, 4:19:20 PM2/26/16
to JSON Schema
Hi,

Another basic question about dereferencing.

If I have a schema with
"#ref": "http://somewhere-over-the-rainbow/schema#"

is it in any way presumed that the referred schema should be actually read from http://somewhere-over-the-rainbow/

Or is it like in XSD, where the namespace is simply unique identifier and practically never read from that URI/URL?

Much appreciated,

Yury

Simon Sprott

unread,
Mar 15, 2016, 4:51:16 AM3/15/16
to JSON Schema
my understanding of this is reader can choose. 

If any of the schemas the reader is aware of declare an id scope "http://somewhere-over-the-rainbow" then it can try to resolve "schema" based on the id's and names within the schemas, or it could choose to treat it as a URL and open it directly.


Simon
Reply all
Reply to author
Forward
0 new messages