VERSION: jsonschema-1.3.0
If an ID attribute is present in at the root in a schema, the validator tries to retrieve the referenced ID value which causes problems in off-line mode.
AFAIK this ID attribute servers only as identifier for others. Therefore, there is no need to retrieve it (at least not for the described case).
EXAMPLE:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"id": "https://raw.github.com/xxx/zzz/master/etc/json/my.json-schema#",
...
}
When I validate it (in off-line mode), I get the following error:
RefResolutionError: HTTPSConnectionPool(host='raw.github.com', port=443): Max retries exceeded with url: /xxx/zzz/master/etc/json/my.json-schema
After removal of the id attribute, everything is OK.
Is the ID usage wrong or does jsonschema have a problem?