ReferenceA named reference to a definition in the References map.
When to use
Use when a representation should point to a named definition instead of embedding the definition inline.
Details
$ref is the key into Document.references or MultiDocument.references.
References are resolved lazily by toSchema and
toCodeDocument.
Gotchas
Resolution throws at runtime if the key is not found in the references map.
Source effect/SchemaRepresentation.ts:1054 lines
export interface Reference {
readonly Reference._tag: "Reference"_tag: "Reference"
readonly Reference.$ref: string$ref: string
}Referenced by 2 symbols