Documentation
¶
Overview ¶
Package contractmeta describes a closed set of framework-owned wire structs. Application DTOs always supply their generated typed contract explicitly.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComposePage ¶ added in v0.3.0
func ComposePage(template contract.Schema, parameter, row, root contract.TypeID, includes ...contract.Type) contract.Schema
ComposePage substitutes the explicit row parameter in a pagination template. The template owns every page field; includes retain typed codec providers when constructing runtime contracts and normalized nodes when inspecting metadata.
func Struct ¶
func Struct(root reflect.Type, structures []reflect.Type, overrides map[reflect.Type]contract.Type, includes ...contract.Type) (contract.Schema, error)
Struct uses actual JSON fields/tags and the shared promotion rules. Only listed structs may be inspected. Overrides and includes retain existing typed providers, so their native codecs are not erased by serialization.
Types ¶
Click to show internal directories.
Click to hide internal directories.