Hello,
There seems to be, as I expected, quite a lot of strife about these
two keywords. If you are interested, there is a discussion here:
https://github.com/json-schema/json-schema/issues/17
However, before you click the link above, I'd appreciate to have
_your_ usages of both of these keywords.
I'll start with my own:
* my (validation only) implementation has "$ref" support, with the
ability to add handlers for arbitrary URI schemes;
* it has loop detection support, dangling reference support etc;
* $ref resolution failures are always fatal errors;
* I use "id" in two situations:
* if a schema is loaded without a URI and has an "id" keyword at
the top level, I use this as the schema's URI _if and only if_ it is
an absolute URI and has no, or an empty, fragment;
* I use them as anchors in subschemas. This means, among other
things, that I _do not_ resolve "id" against the schema's URI.
And that's it.
How do you use it? In particular, do you use "id" for addressing
purposes? In what context?
Thank you all in advance,
--
Francis Galiegue,
fgal...@gmail.com
JSON Schema:
https://github.com/json-schema
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)