Extracts the deeply typed retrieval template from a Lazy shape.
Resolves the shape eagerly and returns its model, an ergonomic shortcut for obtaining a typed template without
explicit field access. The return type is computed by Schema, which preserves cardinality-driven optionality,
nested resource models, and union variants in full structural detail. For a lazy factory the model is derived once
on first request and memoised, so repeated calls reuse it.
Scalar and reference models are returned as the stored placeholder; a
union model is rebuilt from its per-variant models, and dictionary and resource models are
likewise returned as stored. A resource template is derived by recursing through its entries, resolving the target
on access to support the circular and self-referential definitions the resource factory
admits.
Extracts the deeply typed retrieval template from a Lazy shape.
Resolves the shape eagerly and returns its model, an ergonomic shortcut for obtaining a typed template without explicit field access. The return type is computed by Schema, which preserves cardinality-driven optionality, nested resource models, and union variants in full structural detail. For a lazy factory the model is derived once on first request and memoised, so repeated calls reuse it.
Scalar and reference models are returned as the stored placeholder; a union model is rebuilt from its per-variant models, and dictionary and resource models are likewise returned as stored. A resource template is derived by recursing through its entries, resolving the target on access to support the circular and self-referential definitions the resource factory admits.