Closed
Description
It's not entirely consistent as it was a late change.
In most cases, we want to be talking about schema resources, and the root object within a schema resource. We only want to talk about documents when we mean the actual text (or octet stream, I suppose is what it technically is), no matter how many resources are contained in it.
We should also make sure that keywords confined to a root object ($schema
, $recursiveAnchor
, $vocabulary
) are confined to the root of the correct thing. I think that should be the resource root, not the document root, even if (as is currently the case) we note that switching the $schema
value within the same document does not have well-defined behavior (that's in a CREF).