How JSON References are resolved during parsing
masterDuring the parsing process, Valijson identifies JSON References (objects containing the "$ref": "..." key).
- Internal References: If the reference points to another part of the current document, it is resolved locally.
- External References: If the reference points to an external document, Valijson uses the
fetchDoccallback provided topopulateSchema()to retrieve the document. - Caching: Resolved external documents are stored in a
DocumentCacheto minimize redundant network/file operations and to help resolve circular references.