Scale Intelligence■ Docs
Docs / The model / SourceField

SourceField.

A field of a source object

Figure 1SourceFieldspecified
SOURCEFIELDvalue at none scopenametextone of the register's primitives, or free-form for what lands in the payloadtypeenum:text|count|number|money|share…requiredboolthe registered code system a coded field's value belongs to, so a mapping resolves it to a codecode_systemtextoptionalthe source's own description of the field, in its words, when it has onedeclaredtextoptionalwhere in the artefact's record the field is read when it is not a key of the record: a key, a.b for a nested field, list[key=value].field for an item of a list of named pairs, or literal:<value> for a value the object declares itselfpathtextoptionalpoints at no other object
SourceField is a value at none scope. The drawing shows its fields and the objects that they point at.
kind
value
scope
none
key
none
store
none
family
sources

Fields#

fieldtyperequirednote
nametextyes
typeone of text | count | number | money | share | chance | time | date | duration | bool | hash | id | json | address | bytes | free-formyesone of the register’s primitives, or free-form for what lands in the payload
requiredboolyes
code_systemtextnothe registered code system a coded field’s value belongs to, so a mapping resolves it to a code
declaredtextnothe source’s own description of the field, in its words, when it has one
pathtextnowhere in the artefact’s record the field is read when it is not a key of the record: a key, a.b for a nested field, list[key=value].field for an item of a list of named pairs, or literal: for a value the object declares itself

Routes that use it#

No route takes or returns SourceField directly. The record holds it, and the objects that point at it reach it.