function
ReferenceCase
ReferenceCase binds an embedded tree case during config resolution, as ReferenceTypes does.
Arguments
| Argument | Type | Description |
|---|---|---|
c | EmbeddedTreeCase | The c value. |
definitions | *BlockDefinitions | The definitions value. |
resource | StableID | The resource value. |
path | []string | The path value. |
Returns
The declared result.
EmbeddedTreeCaseFull signature
func ReferenceCase(
c EmbeddedTreeCase,
definitions *BlockDefinitions,
resource StableID,
path []string,
) EmbeddedTreeCaseRelated types
EmbeddedTreeCaseEmbeddedTreeCase declares schema-owned payloads for one structural node tag. Like a Blocks field, it selects block definitions by slug; an empty selection reserves the envelope while admitting no payloads.
BlockDefinitionsBlockDefinitions holds the block definitions of one schema and the definition views shared by all of their placements. A builder may add definitions while it resolves configuration; views are created on first use.
StableIDA deterministic identifier for schema evolution.