We should support JSON Schema $ref resolution so linked entity structures can be discovered and shown to requesters.
Current handling does not properly use $ref to traverse schema relationships. Because of that, only directly visible fields/entities are considered, while referenced definitions are missed.
This blocks a key use case: showing complete linked data structures.
Example: a Person entity can be linked to n Biosample entities through references. If $ref is not resolved, this relation is incomplete or invisible.
Example use case
- Linked entities are defined as an array of
$ref entries.
- Reference format is
#/definitions/<trustdeckId>.
- Linked entities:
[{"$ref": "#/definitions/<trustdeckId>"}, ...]
- Example relation:
Person -> Biosample (1:n)
- Result should expose that
Person is linked to multiple Biosample entities via schema references.
Reference:
https://json-schema.org/understanding-json-schema/structuring#dollarref
We should support JSON Schema
$refresolution so linked entity structures can be discovered and shown to requesters.Current handling does not properly use
$refto traverse schema relationships. Because of that, only directly visible fields/entities are considered, while referenced definitions are missed.This blocks a key use case: showing complete linked data structures.
Example: a
Personentity can be linked tonBiosampleentities through references. If$refis not resolved, this relation is incomplete or invisible.Example use case
$refentries.#/definitions/<trustdeckId>.[{"$ref": "#/definitions/<trustdeckId>"}, ...]Person->Biosample(1:n)Personis linked to multipleBiosampleentities via schema references.Reference:
https://json-schema.org/understanding-json-schema/structuring#dollarref