Description
Hello,
I updated the test suite which pulled in this test.
The schema's id is http://localhost:1234/tree
and it contains {"$ref": "node"}
. When my validator encounters the reference it resolves to http://localhost:1234/node
. At this point it attempts to load http://localhost:1234/node
and fails because that schema cannot be loaded via HTTP.
I see that http://localhost:1234/node
is defined below within the same schema but I don't see which part of the Draft-04 spec says that you should attempt to load the schema from within the same document first.
It looks like Draft-05 covers that in section 8.2.1 but that section does not exist in Draft-04. The closest thing I see is section 7.2.3. It seems like this might be considered inline dereferencing but that isn't required by the spec.
Am I interpreting the spec incorrectly or should this behavior not be required for Draft-04?