json-schema-org / referencing

Proposals for a possible specification encompassing the varying uses of "$ref"
MIT License
6 stars 1 forks source link

Non-object root values #5

Open gregsdennis opened 2 years ago

gregsdennis commented 2 years ago

(Breaking out https://github.com/json-schema-org/referencing/pull/2#discussion_r1004993311 into an issue.)

While it probably makes sense in most use cases, it's possible that the root value of a document could be an array or other valid JSON value.

The spec should have language that accounts for this.