Mapping examples
Real mapsFrom definitions pulled from the reference domains. A mapping lives on the model it imports into and holds only the mapping — which incoming fields to read, where they land, and an optional transform chain. Validate the incoming object against its own source model first.
2 mappings
Each bare string (like "id") is a 1:1 copy onto a same-named target property. Objects rename or reshape: { "{ from": "created", "to": "createdAt", "transform": [...] }" } moves created to createdAt. The formatDate step takes only the source format ("unix" or a dref token pattern); output comes from the domain's defaults.formats for the field type, else ISO 8601 — with named "iso8601"/"epoch"/"epochMillis" forcing that output form.